summaryrefslogtreecommitdiff
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
parentfde0bbc7ac702d3dcea97cdd9e8e9cee68096c9a (diff)
Make sure that .pc file specifies -DKM_WIN32 on Windows.
-rw-r--r--asdcplib-cth.pc.in2
-rw-r--r--wscript3
2 files changed, 4 insertions, 1 deletions
diff --git a/asdcplib-cth.pc.in b/asdcplib-cth.pc.in
index addac7f..1892f2b 100644
--- a/asdcplib-cth.pc.in
+++ b/asdcplib-cth.pc.in
@@ -7,4 +7,4 @@ Description: asdcplib with patches by cth@carlh.net
Version: @version@
Requires: openssl
Libs: @libs@
-Cflags: -I${includedir}
+Cflags: -I${includedir} @cflags@
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')