aboutsummaryrefslogtreecommitdiff
path: root/wscript
blob: dc1066bdea387a9eb552b92c29d6dc545f6f7d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
def set_options(opt):
  opt.tool_options('compiler_cxx')

def configure(conf):
  conf.check_tool('compiler_cxx')
  conf.check_tool('node_addon')
  conf.check_cfg(package='augeas',
                atleast_version='0.10',
                args='--cflags --libs',
                mandatory=True)

  # libxml2 is required since 0.10:
  conf.check_cfg(package='libxml-2.0',
                args='--cflags --libs',
                mandatory=True)
def build(bld):
  obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
  obj.target = 'libaugeas'
  obj.source = 'libaugeas.cc'
  obj.uselib = ['AUGEAS', 'LIBXML-2.0']