forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --with-private-runtime configure option
If opam is compiled with the mingw-w64 version of Windows OCaml and an internal solver, then additional DLLs are required at runtime. These can either: 1. Be included in a directory in PATH (this is very bad, if done by other packages) 2. Be included in the same directory as opam.exe (this is similarly bad, because opam.exe is likely to end up in PATH) 3. Be manifested in another directory The --with-private-runtime option sets up the appropriate DLLs in the directory Opam.Runtime.amd64 (or Opam.Runtime.x86) and adds them and the manifest to opam.install. It also overrides the manifest automatically included by gcc to instruct the Windows loader to search for the DLLs in the runtime directory.
- Loading branch information
Showing
15 changed files
with
234 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | ||
<assemblyIdentity type="win32" name="Opam.Runtime.amd64" version="1.0.0.0" processorArchitecture="amd64"/> | ||
<file name="libstdc++-6.dll"/> | ||
<file name="libgcc_s_seh-1.dll"/> | ||
<file name="libwinpthread-1.dll"/> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | ||
<assemblyIdentity type="win32" name="Opam.Runtime.x86" version="1.0.0.0" processorArchitecture="x86"/> | ||
<file name="libstdc++-6.dll"/> | ||
<file name="libgcc_s_sjlj-1.dll"/> | ||
<file name="libwinpthread-1.dll"/> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- git://sourceware.org/git/cygwin-apps/windows-default-manifest.git | ||
Tag release-6_4 transcribed from default-manifest.rc --> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<security> | ||
<requestedPrivileges> | ||
<requestedExecutionLevel level="asInvoker"/> | ||
</requestedPrivileges> | ||
</security> | ||
</trustInfo> | ||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
<!--The ID below indicates application support for Windows Vista --> | ||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> | ||
<!--The ID below indicates application support for Windows 7 --> | ||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> | ||
<!--The ID below indicates application support for Windows 8 --> | ||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> | ||
<!--The ID below indicates application support for Windows 8.1 --> | ||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> | ||
<!--The ID below indicates application support for Windows 10 --> | ||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> | ||
</application> | ||
</compatibility> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(rule | ||
((targets (opam-manifest.o)) | ||
(deps (opam.rc)) | ||
(action (run @TOOL_ARCH@-w64-mingw32-windres ${^} ${@})))) | ||
|
||
(rule | ||
(with-stdout-to opam.exe.manifest | ||
(progn (echo "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n") | ||
(echo "<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">\n") | ||
(cat opam-@[email protected]) | ||
(cat default-manifest.xmlf) | ||
(echo "</assembly>")))) | ||
|
||
(rule | ||
((targets (opam.rc)) | ||
(deps (opam.exe.manifest)) | ||
(action (with-stdout-to opam.rc (echo "#include <winuser.h>\nCREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST opam.exe.manifest"))))) | ||
|
||
(install | ||
((section bin) | ||
(files ((Opam.Runtime.@[email protected] as Opam.Runtime.@MANIFEST_ARCH@\Opam.Runtime.@[email protected]) | ||
(libstdc++-6.dll as Opam.Runtime.@MANIFEST_ARCH@\libstdc++-6.dll) | ||
(libwinpthread-1.dll as Opam.Runtime.@MANIFEST_ARCH@\libwinpthread-1.dll) | ||
(@[email protected] as Opam.Runtime.@MANIFEST_ARCH@\@[email protected]))) | ||
(package opam))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(@CONF_MANIFEST_O@) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<assemblyIdentity type="win32" name="opam" version="1.0.0.0" processorArchitecture="x86"/> | ||
<description>OCaml Package Manager</description> | ||
<dependency> | ||
<dependentAssembly> | ||
<assemblyIdentity type="win32" name="Opam.Runtime.x86" version="1.0.0.0" language="*" processorArchitecture="x86"/> | ||
</dependentAssembly> | ||
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<assemblyIdentity type="win32" name="opam" version="1.0.0.0" processorArchitecture="amd64"/> | ||
<description>OCaml Package Manager</description> | ||
<dependency> | ||
<dependentAssembly> | ||
<assemblyIdentity type="win32" name="Opam.Runtime.amd64" version="1.0.0.0" language="*" processorArchitecture="amd64"/> | ||
</dependentAssembly> | ||
</dependency> |
Oops, something went wrong.