diff options
author | David Robillard <d@drobilla.net> | 2012-08-03 16:34:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-03 16:34:18 +0000 |
commit | 427dde1ae1f02cdc460f7248dc809eb3bd9c8870 (patch) | |
tree | 9c255cff043df324e574b5f4a5c57050d4c732c5 /wscript | |
parent | b2edbc01bc2be0bf75f98b0a20782347cbe7e6ec (diff) | |
download | sratom-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
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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 |