stop supporting node-waf.
This commit is contained in:
parent
957bf97ade
commit
2136e14e8c
14
Makefile
14
Makefile
@ -1,20 +1,8 @@
|
|||||||
all:
|
all:
|
||||||
@type node-gyp > /dev/null 2>&1 && make gyp || make waf
|
|
||||||
|
|
||||||
waf:
|
|
||||||
node-waf configure build
|
|
||||||
|
|
||||||
gyp:
|
|
||||||
node-gyp configure
|
node-gyp configure
|
||||||
node-gyp build
|
node-gyp build
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@type node-gyp > /dev/null 2>&1 && make clean-gyp || make clean-waf
|
|
||||||
|
|
||||||
clean-waf:
|
|
||||||
@rm -rf ./build .lock-wscript
|
|
||||||
|
|
||||||
clean-gyp:
|
|
||||||
@node-gyp clean 2>/dev/null
|
@node-gyp clean 2>/dev/null
|
||||||
|
|
||||||
.PHONY: all waf gyp clean clean-waf clean-gyp
|
.PHONY: all clean
|
||||||
|
|||||||
17
wscript
17
wscript
@ -1,17 +0,0 @@
|
|||||||
srcdir = "."
|
|
||||||
blddir = "build"
|
|
||||||
VERSION = "0.0.1"
|
|
||||||
|
|
||||||
def set_options(opt):
|
|
||||||
opt.tool_options("compiler_cxx")
|
|
||||||
|
|
||||||
def configure(conf):
|
|
||||||
conf.check_tool("compiler_cxx")
|
|
||||||
conf.check_tool("node_addon")
|
|
||||||
|
|
||||||
def build(bld):
|
|
||||||
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
|
|
||||||
obj.cxxflags = ["-Wall"]
|
|
||||||
obj.linkflags = []
|
|
||||||
obj.target = "bitcoindjs"
|
|
||||||
obj.source = "src/bitcoindjs.cc"
|
|
||||||
Loading…
Reference in New Issue
Block a user