File tree Expand file tree Collapse file tree 2 files changed +1
-32
lines changed Expand file tree Collapse file tree 2 files changed +1
-32
lines changed Original file line number Diff line number Diff line change 22
33BUILDTYPE ?= Release
44PYTHON ?= python
5- NINJA ?= ninja
65DESTDIR ?=
76SIGN ?=
87PREFIX ?= /usr/local
@@ -20,13 +19,6 @@ NODE_G_EXE = iojs_g$(EXEEXT)
2019# or set the V environment variable to an empty string.
2120V ?= 1
2221
23- USE_NINJA ?= 0
24- ifeq ($(USE_NINJA ) ,1)
25- ifneq ($(V ) ,)
26- NINJA := $(NINJA ) -v
27- endif
28- endif
29-
3022# BUILDTYPE=Debug builds both release and debug builds. If you want to compile
3123# just the debug build, run `make -C out BUILDTYPE=Debug` instead.
3224ifeq ($(BUILDTYPE ) ,Release)
@@ -39,31 +31,16 @@ endif
3931# to check for changes.
4032.PHONY : $(NODE_EXE ) $(NODE_G_EXE )
4133
42- ifeq ($(USE_NINJA ) ,1)
43- $(NODE_EXE ) : config.gypi
44- $(NINJA ) -C out/Release/
45- ln -fs out/Release/$(NODE_EXE ) $@
46-
47- $(NODE_G_EXE ) : config.gypi
48- $(NINJA ) -C out/Debug/
49- ln -fs out/Debug/$(NODE_EXE ) $@
50- else
5134$(NODE_EXE ) : config.gypi out/Makefile
5235 $(MAKE ) -C out BUILDTYPE=Release V=$(V )
5336 ln -fs out/Release/$(NODE_EXE ) $@
5437
5538$(NODE_G_EXE ) : config.gypi out/Makefile
5639 $(MAKE ) -C out BUILDTYPE=Debug V=$(V )
5740 ln -fs out/Debug/$(NODE_EXE ) $@
58- endif
5941
6042out/Makefile : common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/toolchain.gypi deps/v8/build/features.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
61- ifeq ($(USE_NINJA ) ,1)
62- touch out/Makefile
63- $(PYTHON) tools/gyp_node.py -f ninja
64- else
6543 $(PYTHON ) tools/gyp_node.py -f make
66- endif
6744
6845config.gypi : configure
6946 if [ -f $@ ]; then
Original file line number Diff line number Diff line change @@ -51,11 +51,6 @@ parser.add_option('--gdb',
5151 dest = 'gdb' ,
5252 help = 'add gdb support' )
5353
54- parser .add_option ('--ninja' ,
55- action = 'store_true' ,
56- dest = 'use_ninja' ,
57- help = 'generate files for the ninja build system' )
58-
5954parser .add_option ('--no-ifaddrs' ,
6055 action = 'store_true' ,
6156 dest = 'no_ifaddrs' ,
@@ -972,7 +967,6 @@ write('config.gypi', do_not_edit +
972967
973968config = {
974969 'BUILDTYPE' : 'Debug' if options .debug else 'Release' ,
975- 'USE_NINJA' : str (int (options .use_ninja or 0 )),
976970 'USE_XCODE' : str (int (options .use_xcode or 0 )),
977971 'PYTHON' : sys .executable ,
978972}
@@ -987,9 +981,7 @@ write('config.mk',
987981
988982gyp_args = [sys .executable , 'tools/gyp_node.py' , '--no-parallel' ]
989983
990- if options .use_ninja :
991- gyp_args += ['-f' , 'ninja-' + flavor ]
992- elif options .use_xcode :
984+ if options .use_xcode :
993985 gyp_args += ['-f' , 'xcode' ]
994986elif flavor == 'win' and sys .platform != 'msys' :
995987 gyp_args += ['-f' , 'msvs' , '-G' , 'msvs_version=auto' ]
You can’t perform that action at this time.
0 commit comments