Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (36 sloc) 0.907 kb
# vim: ft=python
import os
import os.path
def set_options(opt):
opt.tool_options("compiler_cc")
opt.tool_options("compiler_cxx")
couchnode_mods = [
"args",
"couchbase",
"namemap",
"notify",
"operations",
"cas"
]
lcb_luv_mods = [
"common",
"socket",
"read",
"write",
"timer",
"plugin-libuv",
os.path.join("util", "lcb_luv_yolog"),
os.path.join("util", "hexdump")
]
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("compiler_cc")
conf.check_tool("node_addon")
def build(bld):
obj = bld.new_task_gen("cc", "cxx", "node_addon", "cshlib")
obj.cxxflags = ["-g", "-I.."]
obj.cppflags = obj.cxxflags
obj.ldflags = ["-lcouchbase" ]
obj.target = "couchbase"
obj.source = [ os.path.join("src", mod) + ".cc" for mod in couchnode_mods ]
obj.source += [ os.path.join("io", mod) + ".c" for mod in lcb_luv_mods ]
Jump to Line
Something went wrong with that request. Please try again.