diff options
author | David Robillard <d@drobilla.net> | 2011-05-02 22:57:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-02 22:57:09 +0000 |
commit | 9cdd6c6219e9a103bdaa9249ad270ee54cf62a92 (patch) | |
tree | ab45744e78da921681e41507be9b7ccd2347ab08 /wscript | |
parent | 3ef3583423f162dc1860523deed95fa215ff5c10 (diff) | |
download | serd-9cdd6c6219e9a103bdaa9249ad270ee54cf62a92.tar.gz serd-9cdd6c6219e9a103bdaa9249ad270ee54cf62a92.tar.bz2 serd-9cdd6c6219e9a103bdaa9249ad270ee54cf62a92.zip |
Define SERD_CFLAGS and SERD_LIBS in environment (for recursive project building).
git-svn-id: http://svn.drobilla.net/serd/trunk@155 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -53,6 +53,11 @@ def configure(conf): autowaf.define(conf, 'SERD_VERSION', SERD_VERSION) conf.write_config_header('serd-config.h', remove=False) + conf.env['SERD_CFLAGS'] = '-I%s/serd-%s' % ( + conf.env['INCLUDEDIR'], SERD_MAJOR_VERSION); + conf.env['SERD_LIBS'] = '-L%s -lserd-%s' % ( + conf.env['LIBDIR'], SERD_MAJOR_VERSION); + autowaf.display_msg(conf, "Utilities", str(conf.env['BUILD_UTILS'])) autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS'])) print('') @@ -64,7 +69,9 @@ def build(bld): # Pkgconfig file autowaf.build_pc(bld, 'SERD', SERD_VERSION, SERD_MAJOR_VERSION, [], - {'SERD_MAJOR_VERSION' : SERD_MAJOR_VERSION}) + {'SERD_CFLAGS' : bld.env['SERD_CFLAGS'], + 'SERD_LIBS' : bld.env['SERD_LIBS'], + 'SERD_MAJOR_VERSION' : SERD_MAJOR_VERSION}) lib_source = ''' src/env.c |