Skip to content

Instantly share code, notes, and snippets.

@jslatts
Created May 26, 2011 05:13
Show Gist options
  • Select an option

  • Save jslatts/992592 to your computer and use it in GitHub Desktop.

Select an option

Save jslatts/992592 to your computer and use it in GitHub Desktop.

Revisions

  1. Justin Slattery created this gist May 26, 2011.
    17 changes: 17 additions & 0 deletions wscript
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    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'