summaryrefslogtreecommitdiff
path: root/src/wscript
blob: 70f4b27b32a542dafd80290fef7afb5a95a4ff23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def build(bld):
    if bld.env.STATIC:
        obj = bld(features = 'cxx cxxstlib')
    else:
        obj = bld(features = 'cxx cxxshlib')
    obj.name = 'libcxml'
    obj.target = 'cxml'
    obj.export_includes = ['.']
    obj.uselib = 'LIBXML++ BOOST_FILESYSTEM'
    obj.source = "cxml.cc"

    bld.install_files('${PREFIX}/include/libcxml', "cxml.h")
    if bld.env.STATIC:
        bld.install_files('${PREFIX}/lib', 'libcxml.a')