-
Notifications
You must be signed in to change notification settings - Fork 21
/
wscript
34 lines (30 loc) · 832 Bytes
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
srcdir = '.'
blddir = 'build'
VERSION = '1.0.0'
def set_options(opt):
opt.tool_options('compiler_cxx')
opt.tool_options("compiler_cc")
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("compiler_cc")
conf.check_tool("node_addon")
def build(bld):
sundown = bld.new_task_gen("cc", "shlib")
sundown.source = """
src/markdown.c
src/stack.c
src/buffer.c
src/html.c
src/autolink.c
src/houdini_href_e.c
src/houdini_html_e.c
src/html_smartypants.c
"""
sundown.includes = "src/"
sundown.name = "sundown"
sundown.target = "sundown"
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.target = 'robotskirt'
obj.add_objects = "sundown"
obj.source = 'src/robotskirt.cc'