Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (36 sloc) 0.907 kB
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
1 # vim: ft=python
2
3 import os
4 import os.path
5
e95076f @trondn Add the first implementation of the library
trondn authored
6 def set_options(opt):
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
7 opt.tool_options("compiler_cc")
e95076f @trondn Add the first implementation of the library
trondn authored
8 opt.tool_options("compiler_cxx")
9
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
10
11 couchnode_mods = [
a0266af @mnunberg Use the new lcb_luv plugin for IO operations
mnunberg authored
12 "args",
13 "couchbase",
3a3e4cc @trondn Add a NameMap that maps between v8::Strings and ids
trondn authored
14 "namemap",
80bfd1a @mnunberg Move operation functions to their own file
mnunberg authored
15 "notify",
26fcfb6 @mnunberg Fix CAS handling:
mnunberg authored
16 "operations",
17 "cas"
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
18 ]
19
20 lcb_luv_mods = [
21 "common",
22 "socket",
23 "read",
24 "write",
25 "timer",
26 "plugin-libuv",
27 os.path.join("util", "lcb_luv_yolog"),
28 os.path.join("util", "hexdump")
29 ]
30
8ebceff @mnunberg Add -I.. so waf can find the io plugin includes
mnunberg authored
31
32
e95076f @trondn Add the first implementation of the library
trondn authored
33 def configure(conf):
34 conf.check_tool("compiler_cxx")
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
35 conf.check_tool("compiler_cc")
e95076f @trondn Add the first implementation of the library
trondn authored
36 conf.check_tool("node_addon")
37
38 def build(bld):
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
39 obj = bld.new_task_gen("cc", "cxx", "node_addon", "cshlib")
ccaa2d6 @trondn Remove gcc-specific cxxflags
trondn authored
40 obj.cxxflags = ["-g", "-I.."]
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
41 obj.cppflags = obj.cxxflags
42 obj.ldflags = ["-lcouchbase" ]
e95076f @trondn Add the first implementation of the library
trondn authored
43 obj.target = "couchbase"
a7f7b88 @mnunberg Add lcb_luv (an io plugin for libcouchbase using libuv)
mnunberg authored
44
45 obj.source = [ os.path.join("src", mod) + ".cc" for mod in couchnode_mods ]
46 obj.source += [ os.path.join("io", mod) + ".c" for mod in lcb_luv_mods ]
Something went wrong with that request. Please try again.