summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-03 16:34:18 +0000
committerDavid Robillard <d@drobilla.net>2012-08-03 16:34:18 +0000
commitfc24fabd0c12674a69e8433a4ee201a5cfc49d51 (patch)
tree7090aee2a1ed0610f3c00d56ab8344dfca5ccde9 /wscript
parent486428fdd61ba0fc2dcea8e8c1dfd50c88a28e79 (diff)
downloadlilv-fc24fabd0c12674a69e8433a4ee201a5cfc49d51.tar.gz
lilv-fc24fabd0c12674a69e8433a4ee201a5cfc49d51.tar.bz2
lilv-fc24fabd0c12674a69e8433a4ee201a5cfc49d51.zip
Use more portable defines instead of -D in CFLAGS.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4608 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 5 insertions, 7 deletions
diff --git a/wscript b/wscript
index cee979f..5342dba 100644
--- a/wscript
+++ b/wscript
@@ -208,9 +208,8 @@ def build(bld):
target = 'lilv-%s' % LILV_MAJOR_VERSION,
vnum = LILV_LIB_VERSION,
install_path = '${LIBDIR}',
- defines = defines,
- cflags = libflags + [ '-DLILV_SHARED',
- '-DLILV_INTERNAL' ],
+ defines = ['LILV_SHARED', 'LILV_INTERNAL'],
+ cflags = libflags,
lib = lib)
autowaf.use_lib(bld, obj, 'SORD SRATOM LV2')
@@ -224,8 +223,7 @@ def build(bld):
target = 'lilv-%s' % LILV_MAJOR_VERSION,
vnum = LILV_LIB_VERSION,
install_path = '${LIBDIR}',
- defines = defines,
- cflags = [ '-DLILV_INTERNAL' ])
+ defines = defines + ['LILV_INTERNAL'])
autowaf.use_lib(bld, obj, 'SORD SRATOM LV2')
if bld.env['BUILD_TESTS']:
@@ -269,8 +267,8 @@ def build(bld):
name = 'liblilv_profiled',
target = 'lilv_profiled',
install_path = None,
- defines = defines,
- cflags = test_cflags + ['-DLILV_INTERNAL'],
+ defines = defines + ['LILV_INTERNAL'],
+ cflags = test_cflags,
lib = test_libs)
autowaf.use_lib(bld, obj, 'SORD SRATOM LV2')