aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-29 00:53:39 +0000
committerDavid Robillard <d@drobilla.net>2011-09-29 00:53:39 +0000
commitc8e9bd0923f624945dd69e2af8b8a05c5a09d29c (patch)
tree6204b6f93a83c1e4b57886d47bf58f322776af6c /wscript
parentde5aa9e275107f59cdf12f76fe55895605ee7dc6 (diff)
downloadserd-c8e9bd0923f624945dd69e2af8b8a05c5a09d29c.tar.gz
serd-c8e9bd0923f624945dd69e2af8b8a05c5a09d29c.tar.bz2
serd-c8e9bd0923f624945dd69e2af8b8a05c5a09d29c.zip
Tidy.
git-svn-id: http://svn.drobilla.net/serd/trunk@218 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r--wscript80
1 files changed, 41 insertions, 39 deletions
diff --git a/wscript b/wscript
index fd813323..24a0230a 100644
--- a/wscript
+++ b/wscript
@@ -85,56 +85,58 @@ def build(bld):
'''
# Shared Library
- obj = bld(features = 'c cshlib')
- obj.export_includes = ['.']
- obj.source = lib_source
- obj.includes = ['.', './src']
- obj.name = 'libserd'
- obj.target = 'serd-%s' % SERD_MAJOR_VERSION
- obj.vnum = SERD_LIB_VERSION
- obj.install_path = '${LIBDIR}'
- obj.cflags = [ '-fvisibility=hidden', '-DSERD_SHARED', '-DSERD_INTERNAL' ]
+ obj = bld(features = 'c cshlib',
+ export_includes = ['.'],
+ source = lib_source,
+ includes = ['.', './src'],
+ name = 'libserd',
+ target = 'serd-%s' % SERD_MAJOR_VERSION,
+ vnum = SERD_LIB_VERSION,
+ install_path = '${LIBDIR}',
+ cflags = [ '-fvisibility=hidden',
+ '-DSERD_SHARED', '-DSERD_INTERNAL' ])
# Static library
if bld.env['BUILD_STATIC']:
- obj = bld(features = 'c cstlib')
- obj.export_includes = ['.']
- obj.source = lib_source
- obj.includes = ['.', './src']
- obj.name = 'libserd_static'
- obj.target = 'serd-%s' % SERD_MAJOR_VERSION
- obj.vnum = SERD_LIB_VERSION
- obj.install_path = '${LIBDIR}'
- obj.cflags = [ '-DSERD_INTERNAL' ]
+ obj = bld(features = 'c cstlib',
+ export_includes = ['.'],
+ source = lib_source,
+ includes = ['.', './src'],
+ name = 'libserd_static',
+ target = 'serd-%s' % SERD_MAJOR_VERSION,
+ vnum = SERD_LIB_VERSION,
+ install_path = ',{LIBDIR}',
+ cflags = [ '-DSERD_INTERNAL' ])
if bld.env['BUILD_TESTS']:
# Static library (for unit test code coverage)
- obj = bld(features = 'c cstlib')
- obj.source = lib_source
- obj.includes = ['.', './src']
- obj.name = 'libserd_profiled'
- obj.target = 'serd_profiled'
- obj.install_path = ''
- obj.cflags = [ '-fprofile-arcs', '-ftest-coverage', '-DSERD_INTERNAL' ]
+ obj = bld(features = 'c cstlib',
+ source = lib_source,
+ includes = ['.', './src'],
+ name = 'libserd_profiled',
+ target = 'serd_profiled',
+ install_path = '',
+ cflags = [ '-fprofile-arcs', '-ftest-coverage',
+ '-DSERD_INTERNAL' ])
# Unit test program
- obj = bld(features = 'c cprogram')
- obj.source = 'src/serdi.c'
- obj.includes = ['.', './src']
- obj.use = 'libserd_profiled'
- obj.linkflags = '-lgcov'
- obj.target = 'serdi_static'
- obj.install_path = ''
- obj.cflags = [ '-fprofile-arcs', '-ftest-coverage' ]
+ obj = bld(features = 'c cprogram',
+ source = 'src/serdi.c',
+ includes = ['.', './src'],
+ use = 'libserd_profiled',
+ linkflags = '-lgcov',
+ target = 'serdi_static',
+ install_path = '',
+ cflags = [ '-fprofile-arcs', '-ftest-coverage' ])
# Utilities
if bld.env['BUILD_UTILS']:
- obj = bld(features = 'c cprogram')
- obj.source = 'src/serdi.c'
- obj.includes = ['.', './src']
- obj.use = 'libserd'
- obj.target = 'serdi'
- obj.install_path = '${BINDIR}'
+ obj = bld(features = 'c cprogram',
+ source = 'src/serdi.c',
+ includes = ['.', './src'],
+ use = 'libserd',
+ target = 'serdi',
+ install_path = '${BINDIR}')
# Documentation
autowaf.build_dox(bld, 'SERD', SERD_VERSION, top, out)