-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS2017 vcxproj #1302
VS2017 vcxproj #1302
Conversation
Also, the PERL script always generates v140 / ToolVersion 14 files. I think we could use |
Toolset v120 corresponds to Visual Studio 2013. We already used dependencies that were hardcoded to v140 (i.e. Visual Studio 2015), so let's just remove the cruft. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add .LIBs for zlib and openssl to <AdditionalDependencies> to help linker when building with VS2017. This closes git-for-windows#1234 Note: this patch still leaves a couple of TODOs: - It should be possible to add GEN.DEPS\lib to <AdditionalLibraryDependencies> and then just set <AdditionalDependencies> to the library basenames. - Likewise, you should be able to copy GEN.DEPS\bin\*.dll to the destination directory rather than using the full paths in the $afterTargets lines. (This is in line with items in <AdditionalIncludeDirectories> referencing GEN.DEPS\include.) Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
9af9a7d
to
8a8fa14
Compare
Thanks for your contribution, this is excellent and also closes #1234.
A valid point. However, my primary concern with the |
The `vs/master` branch [can now be built in Visual Studio 2017](git-for-windows/git#1302), too Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…proj VS2017 vcxproj
…proj VS2017 vcxproj
…proj VS2017 vcxproj
…proj VS2017 vcxproj
…proj VS2017 vcxproj
…proj VS2017 vcxproj
…proj VS2017 vcxproj
…proj VS2017 vcxproj
Here is a fix for building inside VS2017 using the generated SLN and VCXPROJ files in vs/master.
For some reason, the existing PERL-generated project files built fine using VS2015, but failed to
link when building with VS2017 (with unsatisfied references in zlib and then openssl).
The fix here, adds explicit .lib references to the AdditionalDependencies parameter. I left a TODO
in the commit message describing a possibly simpler fix.
@dscho Please see if this looks right to you. I managed to get everything to compile and link, but
I wasn't sure how you were using some of the project dependencies and error handling at the bottom
of the resulting vcxproj files, so you may want to refactor this. However you want to handle this is
fine with me. Thanks!