Skip to content

Instantly share code, notes, and snippets.

@pquerna
Forked from jslatts/wscript
Created May 26, 2011 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pquerna/992598 to your computer and use it in GitHub Desktop.
Save pquerna/992598 to your computer and use it in GitHub Desktop.
attempting to link in dependency in deps dir
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 = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.includes = " deps/ "
obj.target = 'cytoseg'
obj.source = 'cytoseg.cc'
# link to something in libpath
obj.lib = 'foo'
# link to something here.
obj.uselib_local = 'bar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment