summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-02-03 22:47:39 +0000
committerCarl Hetherington <cth@carlh.net>2016-02-03 22:47:39 +0000
commit9ccbc0a618133dabc459dba3ac32ec0c83b38e84 (patch)
tree59dd4b62c25d414b3eaf54a9887306affb55a0b6 /wscript
parentfde0bbc7ac702d3dcea97cdd9e8e9cee68096c9a (diff)
Make sure that .pc file specifies -DKM_WIN32 on Windows.
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript b/wscript
index c0ff5ee..24122a8 100644
--- a/wscript
+++ b/wscript
@@ -63,13 +63,16 @@ def configure(conf):
def build(bld):
if bld.env.TARGET_WINDOWS:
boost_lib_suffix = '-mt'
+ cflags = '-DKM_WIN32'
else:
boost_lib_suffix = ''
+ cflags = ''
bld(source='libasdcp-cth.pc.in',
version=VERSION,
includedir='%s/include/libasdcp-cth' % bld.env.PREFIX,
libs="-L${libdir} -lasdcp-cth -lkumu-cth -lboost_system%s" % boost_lib_suffix,
+ cflags=cflags,
install_path='${LIBDIR}/pkgconfig')
bld.recurse('src')