aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 5 insertions, 7 deletions
diff --git a/wscript b/wscript
index 99654777..c24c4e4a 100644
--- a/wscript
+++ b/wscript
@@ -53,10 +53,10 @@ 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);
+ conf.env['INCLUDES_SERD'] = ['%s/serd-%s' % (
+ conf.env['INCLUDEDIR'], SERD_MAJOR_VERSION)]
+ conf.env['LIBPATH_SERD'] = [conf.env['LIBDIR']]
+ conf.env['LIB_SERD'] = ['serd-%s' % SERD_MAJOR_VERSION];
autowaf.display_msg(conf, "Utilities", str(conf.env['BUILD_UTILS']))
autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
@@ -69,9 +69,7 @@ def build(bld):
# Pkgconfig file
autowaf.build_pc(bld, 'SERD', SERD_VERSION, SERD_MAJOR_VERSION, [],
- {'SERD_CFLAGS' : bld.env['SERD_CFLAGS'],
- 'SERD_LIBS' : bld.env['SERD_LIBS'],
- 'SERD_MAJOR_VERSION' : SERD_MAJOR_VERSION})
+ {'SERD_MAJOR_VERSION' : SERD_MAJOR_VERSION})
lib_source = '''
src/env.c