@@ -441,65 +441,6 @@ endif
441
441
X = .exe
442
442
443
443
compat/msvc.o: compat/msvc.c compat/mingw.c GIT-CFLAGS
444
-
445
- vcxproj:
446
- # Require clean work tree
447
- git update-index -q --refresh && \
448
- git diff-files --quiet && \
449
- git diff-index --cached --quiet HEAD --
450
-
451
- # Make .vcxproj files and add them
452
- unset QUIET_GEN QUIET_BUILT_IN; \
453
- perl contrib/buildsystems/generate -g Vcxproj
454
- git add -f git.sln {*,*/lib,t/helper/*}/*.vcxproj
455
-
456
- # Add common-cmds.h
457
- $(MAKE) MSVC=1 prefix=/mingw64 common-cmds.h
458
- git add -f common-cmds.h
459
-
460
- # Add scripts
461
- rm -f perl/perl.mak
462
- $(MAKE) MSVC=1 prefix=/mingw64 \
463
- $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
464
- # Strip out the sane tool path, needed only for building
465
- sed -i '/^git_broken_path_fix ".*/d' git-sh-setup
466
- git add -f $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
467
-
468
- # Add Perl module
469
- $(MAKE) -C perl
470
- git add -f perl/blib/lib
471
-
472
- # Add bin-wrappers, for testing
473
- rm -rf bin-wrappers/
474
- $(MAKE) MSVC=1 prefix=/mingw64 $(test_bindir_programs)
475
- # Ensure that the GIT_EXEC_PATH is a Unix-y one, and that the absolute
476
- # path of the repository is not hard-coded (GIT_EXEC_PATH will be set
477
- # by test-lib.sh according to the current setup)
478
- sed -i -e 's/^\(GIT_EXEC_PATH\)=.*/test -n "$${\1##*:*}" ||\
479
- \1="$$(cygpath -u "$$\1")"/' \
480
- -e "s|'$$(pwd)|\"\$$GIT_EXEC_PATH\"'|g" bin-wrappers/*
481
- # Ensure that test-* helpers find the .dll files copied to top-level
482
- sed -i 's|^PATH=.*|&:"$$GIT_EXEC_PATH"|' bin-wrappers/test-*
483
- # We do not want to force hard-linking builtins
484
- sed -i 's|\(git\)-\([-a-z]*\)\.exe"|\1.exe" \2|g' \
485
- bin-wrappers/git-{receive-pack,upload-archive}
486
- git add -f $(test_bindir_programs)
487
- # remote-ext is a builtin, but invoked as if it were external
488
- sed 's|receive-pack|remote-ext|g' \
489
- <bin-wrappers/git-receive-pack >bin-wrappers/git-remote-ext
490
- git add -f bin-wrappers/git-remote-ext
491
-
492
- # Add templates
493
- $(MAKE) -C templates
494
- git add -f templates/boilerplates.made templates/blt/
495
-
496
- # Add build options
497
- $(MAKE) MSVC=1 prefix=/mingw64 GIT-BUILD-OPTIONS
498
- git add -f GIT-BUILD-OPTIONS
499
-
500
- # Commit the whole shebang
501
- git commit -m "Generate Visual Studio solution" \
502
- -m "Auto-generated by \`$(MAKE)$(MAKEFLAGS) $@\`"
503
444
endif
504
445
ifeq ($(uname_S),Interix)
505
446
NO_INITGROUPS = YesPlease
@@ -761,3 +702,62 @@ ifeq ($(uname_S),QNX)
761
702
NO_STRCASESTR = YesPlease
762
703
NO_STRLCPY = YesPlease
763
704
endif
705
+
706
+ vcxproj:
707
+ # Require clean work tree
708
+ git update-index -q --refresh && \
709
+ git diff-files --quiet && \
710
+ git diff-index --cached --quiet HEAD --
711
+
712
+ # Make .vcxproj files and add them
713
+ unset QUIET_GEN QUIET_BUILT_IN; \
714
+ perl contrib/buildsystems/generate -g Vcxproj
715
+ git add -f git.sln {*,*/lib,t/helper/*}/*.vcxproj
716
+
717
+ # Add common-cmds.h
718
+ $(MAKE) MSVC=1 prefix=/mingw64 common-cmds.h
719
+ git add -f common-cmds.h
720
+
721
+ # Add scripts
722
+ rm -f perl/perl.mak
723
+ $(MAKE) MSVC=1 prefix=/mingw64 \
724
+ $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
725
+ # Strip out the sane tool path, needed only for building
726
+ sed -i '/^git_broken_path_fix ".*/d' git-sh-setup
727
+ git add -f $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
728
+
729
+ # Add Perl module
730
+ $(MAKE) -C perl
731
+ git add -f perl/blib/lib
732
+
733
+ # Add bin-wrappers, for testing
734
+ rm -rf bin-wrappers/
735
+ $(MAKE) MSVC=1 prefix=/mingw64 $(test_bindir_programs)
736
+ # Ensure that the GIT_EXEC_PATH is a Unix-y one, and that the absolute
737
+ # path of the repository is not hard-coded (GIT_EXEC_PATH will be set
738
+ # by test-lib.sh according to the current setup)
739
+ sed -i -e 's/^\(GIT_EXEC_PATH\)=.*/test -n "$${\1##*:*}" ||\
740
+ \1="$$(cygpath -u "$$\1")"/' \
741
+ -e "s|'$$(pwd)|\"\$$GIT_EXEC_PATH\"'|g" bin-wrappers/*
742
+ # Ensure that test-* helpers find the .dll files copied to top-level
743
+ sed -i 's|^PATH=.*|&:"$$GIT_EXEC_PATH"|' bin-wrappers/test-*
744
+ # We do not want to force hard-linking builtins
745
+ sed -i 's|\(git\)-\([-a-z]*\)\.exe"|\1.exe" \2|g' \
746
+ bin-wrappers/git-{receive-pack,upload-archive}
747
+ git add -f $(test_bindir_programs)
748
+ # remote-ext is a builtin, but invoked as if it were external
749
+ sed 's|receive-pack|remote-ext|g' \
750
+ <bin-wrappers/git-receive-pack >bin-wrappers/git-remote-ext
751
+ git add -f bin-wrappers/git-remote-ext
752
+
753
+ # Add templates
754
+ $(MAKE) -C templates
755
+ git add -f templates/boilerplates.made templates/blt/
756
+
757
+ # Add build options
758
+ $(MAKE) MSVC=1 prefix=/mingw64 GIT-BUILD-OPTIONS
759
+ git add -f GIT-BUILD-OPTIONS
760
+
761
+ # Commit the whole shebang
762
+ git commit -m "Generate Visual Studio solution" \
763
+ -m "Auto-generated by \`$(MAKE)$(MAKEFLAGS) $@\`"
0 commit comments