From 5ee89cf13ee8d1bfd2f56bca0432e23ba1009f1f Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Thu, 4 Nov 2010 15:21:59 +0000 Subject: Updated PC/VS8.0. (mainly to follow r86137: use temporary dir in make_buildinfo.c) --- PC/VS8.0/bz2.vcproj | 16 +++---- PC/VS8.0/make_buildinfo.c | 42 +++++++++++++----- PC/VS8.0/make_buildinfo.vcproj | 61 --------------------------- PC/VS8.0/pythoncore.vcproj | 96 +++++++++++++++++++++++++++++++++++------- 4 files changed, 120 insertions(+), 95 deletions(-) diff --git a/PC/VS8.0/bz2.vcproj b/PC/VS8.0/bz2.vcproj index fead640..ebecea6 100644 --- a/PC/VS8.0/bz2.vcproj +++ b/PC/VS8.0/bz2.vcproj @@ -43,7 +43,7 @@ 3) { + fprintf(stderr, "make_buildinfo $(ConfigurationName) [tmpdir]\n"); return EXIT_FAILURE; } if (strcmp(argv[1], "Release") == 0) { @@ -78,16 +88,28 @@ int main(int argc, char*argv[]) fprintf(stderr, "unsupported configuration %s\n", argv[1]); return EXIT_FAILURE; } + if (argc > 2) { + tmpdir = argv[2]; + strcat_s(tmppath, _countof(tmppath), tmpdir); + strcat_s(tmppath, _countof(tmppath), "\\"); + } - if ((do_unlink = make_buildinfo2())) + if ((do_unlink = make_buildinfo2(tmppath))) { + strcat_s(command, CMD_SIZE, tmppath); strcat_s(command, CMD_SIZE, "getbuildinfo2.c -DSUBWCREV "); - else + } else strcat_s(command, CMD_SIZE, "..\\..\\Modules\\getbuildinfo.c"); - strcat_s(command, CMD_SIZE, " -Fogetbuildinfo.o -I..\\..\\Include -I..\\..\\PC"); + strcat_s(command, CMD_SIZE, " -Fo"); + strcat_s(command, CMD_SIZE, tmppath); + strcat_s(command, CMD_SIZE, "getbuildinfo.o -I..\\..\\Include -I..\\..\\PC"); puts(command); fflush(stdout); result = system(command); - if (do_unlink) - _unlink("getbuildinfo2.c"); + if (do_unlink) { + command[0] = '\0'; + strcat_s(command, CMD_SIZE, tmppath); + strcat_s(command, CMD_SIZE, "getbuildinfo2.c"); + _unlink(command); + } if (result < 0) return EXIT_FAILURE; return 0; diff --git a/PC/VS8.0/make_buildinfo.vcproj b/PC/VS8.0/make_buildinfo.vcproj index 619f056..512a7a0 100644 --- a/PC/VS8.0/make_buildinfo.vcproj +++ b/PC/VS8.0/make_buildinfo.vcproj @@ -12,9 +12,6 @@ - @@ -84,64 +81,6 @@ Name="VCPostBuildEventTool" /> - - - - - - - - - - - - - - - - - - - diff --git a/PC/VS8.0/pythoncore.vcproj b/PC/VS8.0/pythoncore.vcproj index 1638311..5199ea2 100644 --- a/PC/VS8.0/pythoncore.vcproj +++ b/PC/VS8.0/pythoncore.vcproj @@ -59,11 +59,11 @@ + + + + + + + + + + + + + + + + + + + + + + + +