File tree 3 files changed +55
-1
lines changed
3 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ REM ================================================================
99
99
100
100
SET sdk_dir = %WindowsSdkDir%
101
101
SET sdk_ver = %WindowsSDKVersion%
102
+ SET sdk_ver_bin_dir = %WindowsSdkVerBinPath%%tgt%
102
103
SET si = %sdk_dir% Include\%sdk_ver%
103
104
SET sdk_includes = -I" %si% ucrt" -I" %si% um" -I" %si% shared"
104
105
SET sl = %sdk_dir% lib\%sdk_ver%
@@ -130,6 +131,7 @@ REM ================================================================
130
131
131
132
SET sdk_dir = %WindowsSdkDir%
132
133
SET sdk_ver = %WindowsSDKVersion%
134
+ SET sdk_ver_bin_dir = %WindowsSdkVerBinPath% bin\amd64
133
135
SET si = %sdk_dir% Include\%sdk_ver%
134
136
SET sdk_includes = -I" %si% ucrt" -I" %si% um" -I" %si% shared" -I" %si% winrt"
135
137
SET sl = %sdk_dir% lib\%sdk_ver%
@@ -160,6 +162,11 @@ REM ================================================================
160
162
echo msvc_includes=%msvc_includes%
161
163
echo msvc_libs=%msvc_libs%
162
164
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
+
163
170
echo sdk_includes=%sdk_includes%
164
171
echo sdk_libs=%sdk_libs%
165
172
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 @@ -425,7 +425,7 @@ ifeq ($(uname_S),Windows)
425
425
# link.exe next to, and required by, cl.exe, we have to prepend this
426
426
# onto the existing $PATH.
427
427
#
428
- SANE_TOOL_PATH ?= $(msvc_bin_dir_msys)
428
+ SANE_TOOL_PATH ?= $(msvc_bin_dir_msys):$(sdk_ver_bin_dir_msys)
429
429
HAVE_ALLOCA_H = YesPlease
430
430
NO_PREAD = YesPlease
431
431
NEEDS_CRYPTO_WITH_SSL = YesPlease
@@ -494,6 +494,7 @@ endif
494
494
# See https://msdn.microsoft.com/en-us/library/ms235330.aspx
495
495
EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj kernel32.lib ntdll.lib
496
496
PTHREAD_LIBS =
497
+ RC = compat/vcbuild/scripts/rc.pl
497
498
lib =
498
499
BASIC_CFLAGS += $(vcpkg_inc) $(sdk_includes) $(msvc_includes)
499
500
ifndef DEBUG
You can’t perform that action at this time.
0 commit comments