File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,21 @@ SHELL ["powershell", "-Command"]
21
21
ADD https://github.com/Microsoft/vcpkg/archive/master.zip C:\T EMP\v cpkg-master.zip
22
22
RUN $ErrorActionPreference = 'Stop' ; `
23
23
Expand-Archive -Path C:\T EMP\v cpkg-master.zip -DestinationPath .; `
24
+ rm C:\T EMP\v cpkg-master.zip `
24
25
cd .\v cpkg-master; `
25
26
.\b ootstrap-vcpkg.bat; `
26
27
.\v cpkg integrate install
27
28
28
29
# Install packages
30
+ #
31
+ # The `vcpkg` crate searches for libraries matching the target architecture
32
+ # exactly. It won't use x86 libraries on a 64-bit system. Setting the default
33
+ # triplet tells `vcpkg` to install 64-bit versions.
34
+ ENV VCPKG_DEFAULT_TRIPLET=x64-windows
29
35
COPY vc-packages.txt C:\
30
36
RUN .\v cpkg-master\v cpkg install @(Get-Content C:\v c-packages.txt)
31
37
38
+ # Tell the `vcpkg` crate to generate dynamically linked executables
39
+ ENV VCPKGRS_DYNAMIC=1
40
+
32
41
CMD ["powershell.exe" , "-NoLogo" , "-ExecutionPolicy" , "Bypass" ]
You can’t perform that action at this time.
0 commit comments