Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-03-16 02:17:25 +0400
committerNathan Rajlich <nathan@tootallnate.net>2012-03-16 03:12:19 +0400
commitdc752327bbd700e686e14169c7d635960eafe456 (patch)
treefc2d9e2b40d17f872fe97876b0a47f4629454679 /vcbuild.bat
parent1a9799864481c789950388b3c344110ff923e30a (diff)
vcbuild: run the 'configure' script in vcbuild.bat
So that a 'config.gypi' file gets generated, which is required for the `process.config` object (see #2928).
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat14
1 files changed, 5 insertions, 9 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 632668e4b0f..fc4d94ea6d0 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -15,6 +15,8 @@ if /i "%1"=="/?" goto help
set config=Release
set target=Build
set target_arch=ia32
+set debug_arg=
+set nosnapshot_arg=
set noprojgen=
set nobuild=
set nosign=
@@ -57,21 +59,15 @@ goto next-arg
if defined upload goto upload
if defined jslint goto jslint
+if "%config%"=="Debug" set debug_arg=--debug
+if defined nosnapshot set nosnapshot_arg=--without-snapshot
:project-gen
@rem Skip project generation if requested.
if defined noprojgen goto msbuild
@rem Generate the VS project.
-if defined nosnapshot goto nosnapshotgen
-python tools\gyp_node -f msvs -G msvs_version=2010 -Dtarget_arch=%target_arch%
-if errorlevel 1 goto create-msvs-files-failed
-if not exist node.sln goto create-msvs-files-failed
-echo Project files generated.
-goto msbuild
-
-:nosnapshotgen
-python tools\gyp_node -f msvs -G msvs_version=2010 -D v8_use_snapshot='false' -Dtarget_arch=%target_arch%
+python configure %debug_arg% %nosnapshot_arg% --dest-cpu=%target_arch%
if errorlevel 1 goto create-msvs-files-failed
if not exist node.sln goto create-msvs-files-failed
echo Project files generated.