this repo has no description

Add conf-msvc32.1 and conf-msvc64.1

These packages can only be installed if a suitable Visual Studio
installation containing the Microsoft C compiler and macro assembler can
be found.

The two packages use msvs-detect to construct a .config file containing
the required environment variable changes necessary to make this
compiler available. These variables can then be used in the build-env or
setenv fields of dependent packages.

Both packages can be installed simultaneously; dependent packages are
required to ensure that only one toolchain is actually in the
environment at any given time.

The packages fail to install if a compiler cannot be found - opam
presently lacks an expressive enough depext system to be able to do
anything further.

Changed files
+84
packages
conf-msvc32
conf-msvc32.1
conf-msvc64
conf-msvc64.1
+42
packages/conf-msvc32/conf-msvc32.1/opam
···
+
opam-version: "2.0"
+
synopsis: "Microsoft C Compiler Environment Settings (32-bit x86)"
+
description: """
+
This package uses msvs-tools to find additional values required for the
+
environment in order to use the x86 (32-bit) Microsoft C compiler (cl).
+
+
After installation, the package's variables indicate the required values:
+
- conf-msvc32:msvs-bin, conf-msvc32:msvs-inc and conf-msvc32:msvc-lib are values
+
to be added to PATH, INCLUDE and LIB respectively. In opam 2.2, they should be
+
added using x-env-path-rewrite set to false, as they contain multiple
+
directories.
+
- conf-msvc32:package is the name of the Visual Studio package providing the
+
compiler (e.g. Visual Studio Community 2022)
+
- conf-msvc32:ml is the name of the assembler (usually "ml")
+
- conf-msvc32:script is the vcvarsall or setenv script which was queried by
+
msvs-detect to provide this information
+
"""
+
maintainer: "David Allsopp <david.allsopp@metastack.com>"
+
authors: "David Allsopp"
+
license: "BSD-3-clause"
+
homepage: "https://github.com/metastack/msvs-tools#readme"
+
bug-reports: "https://github.com/metastack/msvs-tools/issues"
+
depends: ["msvs-detect"]
+
available: os = "win32"
+
flags: conf
+
build: ["bash" "%{msvs-detect:share}%\\msvs-opam" "x86_32" name "%{msvs-detect:share}%\\msvs-detect"]
+
post-messages: [
+
"""
+
A suitable Visual Studio installation could not be found for x86.
+
Visual Studio can be obtained from https://visualstudio.microsoft.com"""
+
{failure}
+
+
"""
+
The Microsoft C compiler has been located in the environment which suggests opam
+
is running either from a Tools Command Prompt or from another wrapper which is
+
updating the environment variables.
+
+
opam has not altered these environment settings, but you will need to ensure
+
that future invocations of opam are done from the same environment, or the
+
compiler will be unavailable."""
+
{success & _:msvs-bin = ""}
+
]
+42
packages/conf-msvc64/conf-msvc64.1/opam
···
+
opam-version: "2.0"
+
synopsis: "Microsoft C Compiler Environment Settings (64-bit x86_64)"
+
description: """
+
This package uses msvs-tools to find additional values required for the
+
environment in order to use the x86_64 (64-bit) Microsoft C compiler (cl).
+
+
After installation, the package's variables indicate the required values:
+
- conf-msvc64:msvs-bin, conf-msvc64:msvs-inc and conf-msvc64:msvc-lib are values
+
to be added to PATH, INCLUDE and LIB respectively. In opam 2.2, they should be
+
added using x-env-path-rewrite set to false, as they contain multiple
+
directories.
+
- conf-msvc64:package is the name of the Visual Studio package providing the
+
compiler (e.g. Visual Studio Community 2022)
+
- conf-msvc64:ml is the name of the assembler (usually "ml64")
+
- conf-msvc64:script is the vcvarsall or setenv script which was queried by
+
msvs-detect to provide this information
+
"""
+
maintainer: "David Allsopp <david.allsopp@metastack.com>"
+
authors: "David Allsopp"
+
license: "BSD-3-clause"
+
homepage: "https://github.com/metastack/msvs-tools#readme"
+
bug-reports: "https://github.com/metastack/msvs-tools/issues"
+
depends: ["msvs-detect"]
+
available: os = "win32"
+
flags: conf
+
build: ["bash" "%{msvs-detect:share}%\\msvs-opam" "x86_64" name "%{msvs-detect:share}%\\msvs-detect"]
+
post-messages: [
+
"""
+
A suitable Visual Studio installation could not be found for x86_64.
+
Visual Studio can be obtained from https://visualstudio.microsoft.com"""
+
{failure}
+
+
"""
+
The Microsoft C compiler has been located in the environment which suggests opam
+
is running either from a Tools Command Prompt or from another wrapper which is
+
updating the environment variables.
+
+
opam has not altered these environment settings, but you will need to ensure
+
that future invocations of opam are done from the same environment, or the
+
compiler will be unavailable."""
+
{success & _:msvs-bin = ""}
+
]