Browse Source

Preliminary pkg-config support.

v0.7.4-release
Ben Noordhuis 14 years ago
committed by Ryan Dahl
parent
commit
045bd4c7a4
  1. 1
      .gitignore
  2. 9
      tools/nodejs.pc.in
  3. 9
      wscript

1
.gitignore

@ -8,6 +8,7 @@ doc/api.xml
doc/api.html
doc/changelog.html
doc/node.1
tools/nodejs.pc
test/fixtures/hello.txt
tmp/
node

9
tools/nodejs.pc.in

@ -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

@ -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.

Loading…
Cancel
Save