Make sure that .pc file specifies -DKM_WIN32 on Windows.
authorCarl Hetherington <cth@carlh.net>
Wed, 3 Feb 2016 22:47:39 +0000 (22:47 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 3 Feb 2016 22:47:39 +0000 (22:47 +0000)
asdcplib-cth.pc.in
wscript

index addac7f2979d3d9b038944f2096010d50db6e292..1892f2bc0250ecc9cb0c64853cffe2aa9ba03a49 100644 (file)
@@ -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 c0ff5ee78e07cf1db0c4ea63575952adc084d1d9..24122a80ecbb86bce17fbe65cd17b188a6e62c0a 100644 (file)
--- 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')