File tree 2 files changed +1
-32
lines changed
2 files changed +1
-32
lines changed Original file line number Diff line number Diff line change 2
2
3
3
BUILDTYPE ?= Release
4
4
PYTHON ?= python
5
- NINJA ?= ninja
6
5
DESTDIR ?=
7
6
SIGN ?=
8
7
PREFIX ?= /usr/local
@@ -20,13 +19,6 @@ NODE_G_EXE = iojs_g$(EXEEXT)
20
19
# or set the V environment variable to an empty string.
21
20
V ?= 1
22
21
23
- USE_NINJA ?= 0
24
- ifeq ($(USE_NINJA ) ,1)
25
- ifneq ($(V ) ,)
26
- NINJA := $(NINJA ) -v
27
- endif
28
- endif
29
-
30
22
# BUILDTYPE=Debug builds both release and debug builds. If you want to compile
31
23
# just the debug build, run `make -C out BUILDTYPE=Debug` instead.
32
24
ifeq ($(BUILDTYPE ) ,Release)
@@ -39,31 +31,16 @@ endif
39
31
# to check for changes.
40
32
.PHONY : $(NODE_EXE ) $(NODE_G_EXE )
41
33
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
51
34
$(NODE_EXE ) : config.gypi out/Makefile
52
35
$(MAKE ) -C out BUILDTYPE=Release V=$(V )
53
36
ln -fs out/Release/$(NODE_EXE ) $@
54
37
55
38
$(NODE_G_EXE ) : config.gypi out/Makefile
56
39
$(MAKE ) -C out BUILDTYPE=Debug V=$(V )
57
40
ln -fs out/Debug/$(NODE_EXE ) $@
58
- endif
59
41
60
42
out/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
65
43
$(PYTHON ) tools/gyp_node.py -f make
66
- endif
67
44
68
45
config.gypi : configure
69
46
if [ -f $@ ]; then
Original file line number Diff line number Diff line change @@ -51,11 +51,6 @@ parser.add_option('--gdb',
51
51
dest = 'gdb' ,
52
52
help = 'add gdb support' )
53
53
54
- parser .add_option ('--ninja' ,
55
- action = 'store_true' ,
56
- dest = 'use_ninja' ,
57
- help = 'generate files for the ninja build system' )
58
-
59
54
parser .add_option ('--no-ifaddrs' ,
60
55
action = 'store_true' ,
61
56
dest = 'no_ifaddrs' ,
@@ -972,7 +967,6 @@ write('config.gypi', do_not_edit +
972
967
973
968
config = {
974
969
'BUILDTYPE' : 'Debug' if options .debug else 'Release' ,
975
- 'USE_NINJA' : str (int (options .use_ninja or 0 )),
976
970
'USE_XCODE' : str (int (options .use_xcode or 0 )),
977
971
'PYTHON' : sys .executable ,
978
972
}
@@ -987,9 +981,7 @@ write('config.mk',
987
981
988
982
gyp_args = [sys .executable , 'tools/gyp_node.py' , '--no-parallel' ]
989
983
990
- if options .use_ninja :
991
- gyp_args += ['-f' , 'ninja-' + flavor ]
992
- elif options .use_xcode :
984
+ if options .use_xcode :
993
985
gyp_args += ['-f' , 'xcode' ]
994
986
elif flavor == 'win' and sys .platform != 'msys' :
995
987
gyp_args += ['-f' , 'msvs' , '-G' , 'msvs_version=auto' ]
You can’t perform that action at this time.
0 commit comments