Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.75 kB
import os
import Options
import Utils
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')
Utils.exec_command('./configure', cwd = './deps/libsnappy')
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
# -D_FILE_OFFSET_BITS and -D_LARGEFILE_SOURCE needed for libeio
obj.cxxflags = ['-Wall', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE']
obj.target = 'binding'
obj.source = 'src/binding.cc deps/libsnappy/snappy.cc deps/libsnappy/snappy-sinksource.cc'
obj.includes = 'deps/libsnappy/'
obj.install_path = None
def test(tsk):
Utils.exec_command('vows --spec -i')
Jump to Line
Something went wrong with that request. Please try again.