Preliminary pkg-config support.
This commit is contained in:
parent
6691aca229
commit
045bd4c7a4
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@ doc/api.xml
|
|||||||
doc/api.html
|
doc/api.html
|
||||||
doc/changelog.html
|
doc/changelog.html
|
||||||
doc/node.1
|
doc/node.1
|
||||||
|
tools/nodejs.pc
|
||||||
test/fixtures/hello.txt
|
test/fixtures/hello.txt
|
||||||
tmp/
|
tmp/
|
||||||
node
|
node
|
||||||
|
9
tools/nodejs.pc.in
Normal file
9
tools/nodejs.pc.in
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version=@VERSION@
|
||||||
|
prefix=@PREFIX@
|
||||||
|
libdir=${prefix}/lib
|
||||||
|
includedir=${prefix}/include/node
|
||||||
|
|
||||||
|
Name: nodejs
|
||||||
|
Description: Evented I/O for V8 JavaScript.
|
||||||
|
Version: ${version}
|
||||||
|
Cflags: -I${includedir}
|
9
wscript
9
wscript
@ -530,6 +530,7 @@ def build(bld):
|
|||||||
, 'CPPFLAGS' : " ".join(program.env["CPPFLAGS"]).replace('"', '\\"')
|
, 'CPPFLAGS' : " ".join(program.env["CPPFLAGS"]).replace('"', '\\"')
|
||||||
, 'LIBFLAGS' : " ".join(program.env["LIBFLAGS"]).replace('"', '\\"')
|
, 'LIBFLAGS' : " ".join(program.env["LIBFLAGS"]).replace('"', '\\"')
|
||||||
, 'PREFIX' : program.env["PREFIX"]
|
, 'PREFIX' : program.env["PREFIX"]
|
||||||
|
, 'VERSION' : '0.3.0-pre' # FIXME should not be hard-coded, see NODE_VERSION_STRING in src/node_version.h
|
||||||
}
|
}
|
||||||
return x
|
return x
|
||||||
|
|
||||||
@ -571,6 +572,14 @@ def build(bld):
|
|||||||
bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py')
|
bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py')
|
||||||
bld.install_files('${PREFIX}/lib/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py')
|
bld.install_files('${PREFIX}/lib/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py')
|
||||||
|
|
||||||
|
# create a pkg-config(1) file
|
||||||
|
node_conf = bld.new_task_gen('subst', before="cxx")
|
||||||
|
node_conf.source = 'tools/nodejs.pc.in'
|
||||||
|
node_conf.target = 'tools/nodejs.pc'
|
||||||
|
node_conf.dict = subflags(node)
|
||||||
|
|
||||||
|
bld.install_files('${PREFIX}/lib/pkgconfig', 'tools/nodejs.pc')
|
||||||
|
|
||||||
def shutdown():
|
def shutdown():
|
||||||
Options.options.debug
|
Options.options.debug
|
||||||
# HACK to get binding.node out of build directory.
|
# HACK to get binding.node out of build directory.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user