Skip to content

Commit b02312a

Browse files
committed
vcxproj: move vcxproj target outside the MSVC block
The `vcxproj` target does not, in fact, depend on MSVC being defined, so let's just move it outside of that block. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1536827 commit b02312a

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed

config.mak.uname

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -440,65 +440,6 @@ endif
440440
X = .exe
441441

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

0 commit comments

Comments
 (0)