summaryrefslogtreecommitdiffstats
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
commit427dde1ae1f02cdc460f7248dc809eb3bd9c8870 (patch)
tree9c255cff043df324e574b5f4a5c57050d4c732c5
parentb2edbc01bc2be0bf75f98b0a20782347cbe7e6ec (diff)
downloadsratom-427dde1ae1f02cdc460f7248dc809eb3bd9c8870.tar.gz
sratom-427dde1ae1f02cdc460f7248dc809eb3bd9c8870.tar.bz2
sratom-427dde1ae1f02cdc460f7248dc809eb3bd9c8870.zip
Use more portable defines instead of -D in CFLAGS.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4608 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--wscript12
1 files changed, 5 insertions, 7 deletions
diff --git a/wscript b/wscript
index 27664c9..07481d5 100644
--- a/wscript
+++ b/wscript
@@ -93,9 +93,8 @@ def build(bld):
target = 'sratom-%s' % SRATOM_MAJOR_VERSION,
vnum = SRATOM_LIB_VERSION,
install_path = '${LIBDIR}',
- defines = defines,
- cflags = libflags + [ '-DSRATOM_SHARED',
- '-DSRATOM_INTERNAL' ])
+ defines = defines + ['SRATOM_SHARED', 'SRATOM_INTERNAL'],
+ cflags = libflags)
autowaf.use_lib(bld, obj, 'SERD SORD LV2')
# Static library
@@ -109,8 +108,7 @@ def build(bld):
target = 'sratom-%s' % SRATOM_MAJOR_VERSION,
vnum = SRATOM_LIB_VERSION,
install_path = '${LIBDIR}',
- defines = defines,
- cflags = ['-DSRATOM_INTERNAL'])
+ defines = defines + ['SRATOM_INTERNAL'])
autowaf.use_lib(bld, obj, 'SERD SORD LV2')
if bld.env['BUILD_TESTS']:
@@ -128,8 +126,8 @@ def build(bld):
name = 'libsratom_profiled',
target = 'sratom_profiled',
install_path = '',
- defines = defines,
- cflags = test_cflags + ['-DSRATOM_INTERNAL'])
+ defines = defines + ['SRATOM_INTERNAL'],
+ cflags = test_cflags)
autowaf.use_lib(bld, obj, 'SERD SORD LV2')
# Unit test program