build: fix windows smp build with gyp

Gyp will try a parallel build if it detect the system has >1 processor.
This functionality depends on the Python "multiprocessing" package. The
multiprocessing package on Windows requires that the top-level module is
importable as a module, see:

  http://docs.python.org/2/library/multiprocessing.html#windows

This fixes issue #984.
This commit is contained in:
Geert Jansen 2013-11-05 08:43:40 +01:00 committed by Ben Noordhuis
parent 7f44933c43
commit 2445467810
4 changed files with 4 additions and 4 deletions

View File

@ -83,14 +83,14 @@ project tree manually:
Run:
$ ./gyp_uv -f make
$ ./gyp_uv.py -f make
$ make -C out
### OS X
Run:
$ ./gyp_uv -f xcode
$ ./gyp_uv.py -f xcode
$ xcodebuild -project uv.xcodeproj -configuration Release -target All
### Android

View File

@ -16,5 +16,5 @@ export PLATFORM=android
if [ $2 -a $2 == 'gyp' ]
then
./gyp_uv -Dtarget_arch=arm -DOS=android
./gyp_uv.py -Dtarget_arch=arm -DOS=android
fi

View File

View File

@ -91,7 +91,7 @@ exit /b 1
:have_gyp
if not defined PYTHON set PYTHON="python"
%PYTHON% gyp_uv -Dtarget_arch=%target_arch% -Dlibrary=%library%
%PYTHON% gyp_uv.py -Dtarget_arch=%target_arch% -Dlibrary=%library%
if errorlevel 1 goto create-msvs-files-failed
if not exist uv.sln goto create-msvs-files-failed
echo Project files generated.