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