From 427dde1ae1f02cdc460f7248dc809eb3bd9c8870 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Aug 2012 16:34:18 +0000 Subject: 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 --- wscript | 12 +++++------- 1 file 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 -- cgit v1.2.1