diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2010-10-13 01:13:44 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-13 12:49:33 +0400 |
commit | 045bd4c7a49b83a9e6cd4083763f12a698c48845 (patch) | |
tree | 23ef3f267c8a10d7d0c6b556a4aa02af7fd5ddc1 /wscript | |
parent | 6691aca2297b76cd3eb14506447f16a213dae2c6 (diff) |
Preliminary pkg-config support.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -530,6 +530,7 @@ def build(bld): , 'CPPFLAGS' : " ".join(program.env["CPPFLAGS"]).replace('"', '\\"') , 'LIBFLAGS' : " ".join(program.env["LIBFLAGS"]).replace('"', '\\"') , '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 @@ -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', '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(): Options.options.debug # HACK to get binding.node out of build directory. |