Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Fix ms/setVSvars.bat for new windows.foundation.foundationcontract & windows.foundation.universalapicontract #31

Open
brodycj opened this issue Jun 22, 2016 · 2 comments

Comments

@brodycj
Copy link

brodycj commented Jun 22, 2016

I had to make the following change to build the OpenSSL_1_0_2_WinRT-stable branch using a recent Visual Studio Community 2015 update:

diff --git a/ms/setVSvars.bat b/ms/setVSvars.bat
index 5da96bb..7bc3f8a 100644
--- a/ms/setVSvars.bat
+++ b/ms/setVSvars.bat
@@ -177,7 +177,7 @@ exit /b
    set PATH=%_VS14VC\Bin%;%PATH%
    set INCLUDE=%_VS14VC%\include;%_WKITS10%\Include\%_WKITS10VER%\um;%_WKITS10%\Include\%_WKITS10VER%\shared;%_WKITS10%\Include\%_WKITS10VER%\winrt;%_WKITS10%\Include\%_WKITS10VER%\ucrt;
    set LIB=%_VS14VC%\lib\store\%_VCLibPlat%;%_WKITS10%\lib\%_WKITS10VER%\um\%_VCPlatform%;%_WKITS10%\Lib\%_WKITS10VER%\ucrt\%_VCPlatform%;
-   set LIBPATH=%_WKITS10%\UnionMetadata\Facade;%_VS14VC%\vcpackages;;%_WKITS10%\references\windows.foundation.foundationcontract\1.0.0.0\;;%_WKITS10%\references\windows.foundation.universalapicontract\1.0.0.0\
+   set LIBPATH=%_WKITS10%\UnionMetadata\Facade;%_VS14VC%\vcpackages;;%_WKITS10%\references\windows.foundation.foundationcontract\2.0.0.0\;;%_WKITS10%\references\windows.foundation.universalapicontract\2.0.0.0\
    goto :eof

 :end

I suspect almost the same change will be needed to the WinRT branch.

FYI @sgrebnov (Sergey Grebnov) made an excellent tool for newcomers like myself to build OpenSSL for Windows 8.1 and Windows 10 UWP at: https://github.com/sgrebnov/OpenSSL-WinRT-build

@khouzam
Copy link

khouzam commented Jun 22, 2016

This is great. Thank you. And thanks for the project pointer.

@joycepg
Copy link

joycepg commented Nov 10, 2017

just FYI i rebuilt my machine with a new SSD and reinstalled VS2015.3, thus i didn't have any legacy SDKs or older versions. I had to modify ms/setVSvars.bat to v3.0.0.0 of universalapicontract. i'm not sure how you are supposed to tell what is there without poking around in file explorer.

set "LIBPATH=%_WKITS10%UnionMetadata\Facade;%_VS14VC%vcpackages;%_WKITS10%references\windows.foundation.foundationcontract\2.0.0.0\;%_WKITS10%references\windows.foundation.universalapicontract\3.0.0.0\"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants