diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-03 22:47:39 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-03 22:47:39 +0000 |
| commit | 9ccbc0a618133dabc459dba3ac32ec0c83b38e84 (patch) | |
| tree | 59dd4b62c25d414b3eaf54a9887306affb55a0b6 | |
| parent | fde0bbc7ac702d3dcea97cdd9e8e9cee68096c9a (diff) | |
Make sure that .pc file specifies -DKM_WIN32 on Windows.
| -rw-r--r-- | asdcplib-cth.pc.in | 2 | ||||
| -rw-r--r-- | wscript | 3 |
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@ @@ -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') |
