51e83be77378dc8fb243d6d63a2a750a68a35975
[libcxml.git] / src / wscript
1 def build(bld):
2     if bld.env.STATIC:
3         obj = bld(features='cxx cxxstlib')
4     else:
5         obj = bld(features='cxx cxxshlib')
6     obj.name = 'libcxml'
7     obj.target = 'cxml'
8     obj.export_includes = ['.']
9     obj.uselib = 'LIBXML++ BOOST_FILESYSTEM'
10     obj.source = "cxml.cc"
11
12     bld.install_files('${PREFIX}/include/libcxml', "cxml.h")
13     if bld.env.STATIC:
14         bld.install_files('${PREFIX}/lib', 'libcxml.a')
15