summaryrefslogtreecommitdiff
path: root/src/wscript
blob: 1d5c3f30e5fa65e09a8cae6e10d96f87d87abdf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def build(bld):
    if bld.env.STATIC:
        obj = bld(features='cxx cxxstlib')
    else:
        obj = bld(features='cxx cxxshlib')
    obj.name = 'libcxml'
    obj.vnum = bld.env.API_VERSION
    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')