@@ -460,65 +460,6 @@ endif
460
460
X = .exe
461
461
462
462
compat/msvc.o: compat/msvc.c compat/mingw.c GIT-CFLAGS
463
-
464
- vcxproj:
465
- # Require clean work tree
466
- git update-index -q --refresh && \
467
- git diff-files --quiet && \
468
- git diff-index --cached --quiet HEAD --
469
-
470
- # Make .vcxproj files and add them
471
- unset QUIET_GEN QUIET_BUILT_IN; \
472
- perl contrib/buildsystems/generate -g Vcxproj
473
- git add -f git.sln {*,*/lib,t/helper/*}/*.vcxproj
474
-
475
- # Add command-list.h
476
- $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 command-list.h
477
- git add -f command-list.h
478
-
479
- # Add scripts
480
- rm -f perl/perl.mak
481
- $(MAKE) MSVC=1 prefix=/mingw64 \
482
- $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
483
- # Strip out the sane tool path, needed only for building
484
- sed -i '/^git_broken_path_fix ".*/d' git-sh-setup
485
- git add -f $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
486
-
487
- # Add Perl module
488
- $(MAKE) $(LIB_PERL_GEN)
489
- git add -f perl/build
490
-
491
- # Add bin-wrappers, for testing
492
- rm -rf bin-wrappers/
493
- $(MAKE) MSVC=1 prefix=/mingw64 $(test_bindir_programs)
494
- # Ensure that the GIT_EXEC_PATH is a Unix-y one, and that the absolute
495
- # path of the repository is not hard-coded (GIT_EXEC_PATH will be set
496
- # by test-lib.sh according to the current setup)
497
- sed -i -e 's/^\(GIT_EXEC_PATH\)=.*/test -n "$${\1##*:*}" ||\
498
- \1="$$(cygpath -u "$$\1")"/' \
499
- -e "s|'$$(pwd)|\"\$$GIT_EXEC_PATH\"'|g" bin-wrappers/*
500
- # Ensure that test-* helpers find the .dll files copied to top-level
501
- sed -i 's|^PATH=.*|&:"$$GIT_EXEC_PATH"|' bin-wrappers/test-*
502
- # We do not want to force hard-linking builtins
503
- sed -i 's|\(git\)-\([-a-z]*\)\.exe"|\1.exe" \2|g' \
504
- bin-wrappers/git-{receive-pack,upload-archive}
505
- git add -f $(test_bindir_programs)
506
- # remote-ext is a builtin, but invoked as if it were external
507
- sed 's|receive-pack|remote-ext|g' \
508
- <bin-wrappers/git-receive-pack >bin-wrappers/git-remote-ext
509
- git add -f bin-wrappers/git-remote-ext
510
-
511
- # Add templates
512
- $(MAKE) -C templates
513
- git add -f templates/boilerplates.made templates/blt/
514
-
515
- # Add build options
516
- $(MAKE) MSVC=1 prefix=/mingw64 GIT-BUILD-OPTIONS
517
- git add -f GIT-BUILD-OPTIONS
518
-
519
- # Commit the whole shebang
520
- git commit -m "Generate Visual Studio solution" \
521
- -m "Auto-generated by \`$(MAKE)$(MAKEFLAGS) $@\`"
522
463
endif
523
464
ifeq ($(uname_S),Interix)
524
465
NO_INITGROUPS = YesPlease
@@ -781,3 +722,62 @@ ifeq ($(uname_S),QNX)
781
722
NO_STRCASESTR = YesPlease
782
723
NO_STRLCPY = YesPlease
783
724
endif
725
+
726
+ vcxproj:
727
+ # Require clean work tree
728
+ git update-index -q --refresh && \
729
+ git diff-files --quiet && \
730
+ git diff-index --cached --quiet HEAD --
731
+
732
+ # Make .vcxproj files and add them
733
+ unset QUIET_GEN QUIET_BUILT_IN; \
734
+ perl contrib/buildsystems/generate -g Vcxproj
735
+ git add -f git.sln {*,*/lib,t/helper/*}/*.vcxproj
736
+
737
+ # Add command-list.h
738
+ $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 command-list.h
739
+ git add -f command-list.h
740
+
741
+ # Add scripts
742
+ rm -f perl/perl.mak
743
+ $(MAKE) MSVC=1 prefix=/mingw64 \
744
+ $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
745
+ # Strip out the sane tool path, needed only for building
746
+ sed -i '/^git_broken_path_fix ".*/d' git-sh-setup
747
+ git add -f $(SCRIPT_LIB) $(SCRIPT_SH_GEN) $(SCRIPT_PERL_GEN)
748
+
749
+ # Add Perl module
750
+ $(MAKE) $(LIB_PERL_GEN)
751
+ git add -f perl/build
752
+
753
+ # Add bin-wrappers, for testing
754
+ rm -rf bin-wrappers/
755
+ $(MAKE) MSVC=1 prefix=/mingw64 $(test_bindir_programs)
756
+ # Ensure that the GIT_EXEC_PATH is a Unix-y one, and that the absolute
757
+ # path of the repository is not hard-coded (GIT_EXEC_PATH will be set
758
+ # by test-lib.sh according to the current setup)
759
+ sed -i -e 's/^\(GIT_EXEC_PATH\)=.*/test -n "$${\1##*:*}" ||\
760
+ \1="$$(cygpath -u "$$\1")"/' \
761
+ -e "s|'$$(pwd)|\"\$$GIT_EXEC_PATH\"'|g" bin-wrappers/*
762
+ # Ensure that test-* helpers find the .dll files copied to top-level
763
+ sed -i 's|^PATH=.*|&:"$$GIT_EXEC_PATH"|' bin-wrappers/test-*
764
+ # We do not want to force hard-linking builtins
765
+ sed -i 's|\(git\)-\([-a-z]*\)\.exe"|\1.exe" \2|g' \
766
+ bin-wrappers/git-{receive-pack,upload-archive}
767
+ git add -f $(test_bindir_programs)
768
+ # remote-ext is a builtin, but invoked as if it were external
769
+ sed 's|receive-pack|remote-ext|g' \
770
+ <bin-wrappers/git-receive-pack >bin-wrappers/git-remote-ext
771
+ git add -f bin-wrappers/git-remote-ext
772
+
773
+ # Add templates
774
+ $(MAKE) -C templates
775
+ git add -f templates/boilerplates.made templates/blt/
776
+
777
+ # Add build options
778
+ $(MAKE) MSVC=1 prefix=/mingw64 GIT-BUILD-OPTIONS
779
+ git add -f GIT-BUILD-OPTIONS
780
+
781
+ # Commit the whole shebang
782
+ git commit -m "Generate Visual Studio solution" \
783
+ -m "Auto-generated by \`$(MAKE)$(MAKEFLAGS) $@\`"
0 commit comments