Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 779 Bytes
import Options
from os import unlink, symlink, popen
from os.path import exists
srcdir = "."
blddir = "build"
VERSION = "1.1.0"
def set_options(opt):
opt.tool_options("compiler_cxx")
opt.add_option('--debug', dest='debug', action='store_true', default=False)
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
conf.env.DEFINES = []
conf.env.USELIB = []
conf.env.CXXFLAGS = ['-O3']
conf.env.LDFLAGS = ['-lz']
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = ["-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.ldflags = ["-lz"]
obj.target = "compress-buffer-bindings"
obj.source = "src/compress-buffer.cc"
obj.defines = bld.env.DEFINES
obj.uselib = bld.env.USELIB