5 opt.load('compiler_cxx')
8 conf.load('compiler_cxx')
9 conf.env.append_value('CXXFLAGS', ['-Wall', '-Werror', '-Wextra', '-O2', '-D_FILE_OFFSET_BITS=64'])
10 conf.env.append_value('CXXFLAGS', ['-DLIBDCP_VERSION="%s"' % VERSION])
12 conf.check_cfg(package = 'openssl', args = '--cflags --libs', uselib_store = 'OPENSSL', mandatory = True)
13 conf.check_cfg(package = 'sigc++-2.0', args = '--cflags --libs', uselib_store = 'SIGC++', mandatory = True)
15 conf.check_cxx(fragment = """
16 #include <boost/filesystem.hpp>\n
17 int main() { boost::filesystem::copy_file ("a", "b"); }\n
19 msg = 'Checking for boost filesystem library',
20 libpath = '/usr/local/lib',
21 lib = ['boost_filesystem', 'boost_system'],
22 uselib_store = 'BOOST_FILESYSTEM')
25 conf.recurse('asdcplib')
28 bld(source = 'libdcp.pc.in',
30 includedir = '%s/include' % bld.env.PREFIX,
31 libs = "-L${libdir} -ldcp -lkumu-libdcp -lasdcp-libdcp",
32 install_path = '${LIBDIR}/pkgconfig')
36 bld.recurse('asdcplib')
39 ctx.excl = 'TODO core *~ .git build .waf* .lock* doc/*~ src/*~ test/ref/*~'