File tree Expand file tree Collapse file tree 3 files changed +55
-1
lines changed Expand file tree Collapse file tree 3 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ REM ================================================================
9999
100100 SET sdk_dir = %WindowsSdkDir%
101101 SET sdk_ver = %WindowsSDKVersion%
102+ SET sdk_ver_bin_dir = %WindowsSdkVerBinPath%%tgt%
102103 SET si = %sdk_dir% Include\%sdk_ver%
103104 SET sdk_includes = -I" %si% ucrt" -I" %si% um" -I" %si% shared"
104105 SET sl = %sdk_dir% lib\%sdk_ver%
@@ -130,6 +131,7 @@ REM ================================================================
130131
131132 SET sdk_dir = %WindowsSdkDir%
132133 SET sdk_ver = %WindowsSDKVersion%
134+ SET sdk_ver_bin_dir = %WindowsSdkVerBinPath% bin\amd64
133135 SET si = %sdk_dir% Include\%sdk_ver%
134136 SET sdk_includes = -I" %si% ucrt" -I" %si% um" -I" %si% shared" -I" %si% winrt"
135137 SET sl = %sdk_dir% lib\%sdk_ver%
@@ -160,6 +162,11 @@ REM ================================================================
160162 echo msvc_includes=%msvc_includes%
161163 echo msvc_libs=%msvc_libs%
162164
165+ echo sdk_ver_bin_dir=%sdk_ver_bin_dir%
166+ SET X1 = %sdk_ver_bin_dir:C: =/C %
167+ SET X2 = %X1:\ =/ %
168+ echo sdk_ver_bin_dir_msys=%X2%
169+
163170 echo sdk_includes=%sdk_includes%
164171 echo sdk_libs=%sdk_libs%
165172
Original file line number Diff line number Diff line change 1+ # !/usr/bin/perl -w
2+ # #####################################################################
3+ # Compile Resources on Windows
4+ #
5+ # This is a wrapper to facilitate the compilation of Git with MSVC
6+ # using GNU Make as the build system. So, instead of manipulating the
7+ # Makefile into something nasty, just to support non-space arguments
8+ # etc, we use this wrapper to fix the command line options
9+ #
10+ # #####################################################################
11+ use strict;
12+ my @args = ();
13+ my @input = ();
14+
15+ while (@ARGV ) {
16+ my $arg = shift @ARGV ;
17+ if (" $arg " =~ / ^-[dD]/ ) {
18+ # GIT_VERSION gets passed with too many
19+ # layers of dquote escaping.
20+ $arg =~ s /\\ "/ "/ g ;
21+
22+ push (@args , $arg );
23+
24+ } elsif (" $arg " eq " -i" ) {
25+ my $arg = shift @ARGV ;
26+ # TODO complain if NULL or is dashed ??
27+ push (@input , $arg );
28+
29+ } elsif (" $arg " eq " -o" ) {
30+ my $arg = shift @ARGV ;
31+ # TODO complain if NULL or is dashed ??
32+ push (@args , " -fo$arg " );
33+
34+ } else {
35+ push (@args , $arg );
36+ }
37+ }
38+
39+ push (@args , " -nologo" );
40+ push (@args , " -v" );
41+ push (@args , @input );
42+
43+ unshift (@args , " rc.exe" );
44+ printf (" **** @args \n " );
45+
46+ exit (system (@args ) != 0);
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ ifeq ($(uname_S),Windows)
439439 # link.exe next to, and required by, cl.exe, we have to prepend this
440440 # onto the existing $PATH.
441441 #
442- SANE_TOOL_PATH ?= $(msvc_bin_dir_msys)
442+ SANE_TOOL_PATH ?= $(msvc_bin_dir_msys):$(sdk_ver_bin_dir_msys)
443443 HAVE_ALLOCA_H = YesPlease
444444 NO_PREAD = YesPlease
445445 NEEDS_CRYPTO_WITH_SSL = YesPlease
@@ -508,6 +508,7 @@ endif
508508 # See https://msdn.microsoft.com/en-us/library/ms235330.aspx
509509 EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj kernel32.lib ntdll.lib
510510 PTHREAD_LIBS =
511+ RC = compat/vcbuild/scripts/rc.pl
511512 lib =
512513 BASIC_CFLAGS += $(vcpkg_inc) $(sdk_includes) $(msvc_includes)
513514ifndef DEBUG
You can’t perform that action at this time.
0 commit comments