diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-23 12:38:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-23 12:38:33 +0100 |
| commit | f61f4365370a7c45ad422580a57be942eb792853 (patch) | |
| tree | 0503691b62e097f8bb5a6c87c6dd50cc42c2b568 /wscript | |
| parent | 028acbd0a4736502ae65baf932adf8f9ef95a889 (diff) | |
Fix pkgconfig file on windows.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -15,6 +15,8 @@ def configure(conf): conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-Wno-unused-result', '-O2', '-D_FILE_OFFSET_BITS=64']) conf.env.append_value('CXXFLAGS', ['-DLIBDCP_VERSION="%s"' % VERSION]) + conf.env.TARGET_WINDOWS = conf.options.target_windows + if conf.options.target_windows: conf.env.append_value('CXXFLAGS', '-DLIBDCP_WINDOWS') else: @@ -60,10 +62,15 @@ def configure(conf): def build(bld): create_version_cc(VERSION) + if bld.env.TARGET_WINDOWS: + boost_lib_suffix = '-mt' + else: + boost_lib_suffix = '' + bld(source = 'libdcp.pc.in', version = VERSION, includedir = '%s/include' % bld.env.PREFIX, - libs = "-L${libdir} -ldcp -lkumu-libdcp -lasdcp-libdcp", + libs = "-L${libdir} -ldcp -lkumu-libdcp -lasdcp-libdcp -lboost_system%s" % boost_lib_suffix, install_path = '${LIBDIR}/pkgconfig') bld.recurse('src') |
