From 222320e6c93f8dd4b8e5fabab6997e868bddd2ba Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 19 Sep 2018 13:55:54 +0200 Subject: Fix build with Python 2 --- wscript | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 435ef32..8d7f070 100644 --- a/wscript +++ b/wscript @@ -127,17 +127,18 @@ def build(bld): # Shared Library if bld.env['BUILD_SHARED']: - bld(**lib_common, - features = '%s %sshlib' % (lang, lang), + bld(features = '%s %sshlib' % (lang, lang), name = 'libpugl', - cflags = libflags + ['-DPUGL_SHARED', '-DPUGL_INTERNAL']) + cflags = libflags + ['-DPUGL_SHARED', '-DPUGL_INTERNAL'], + **lib_common) # Static library if bld.env['BUILD_STATIC']: - bld(**lib_common, - features = '%s %sstlib' % (lang, lang), + bld(features = '%s %sstlib' % (lang, lang), name = 'libpugl_static', - cflags = ['-DPUGL_INTERNAL']) + cflags = ['-DPUGL_INTERNAL'], + **lib_common) + if bld.env['BUILD_TESTS']: test_libs = libs @@ -151,14 +152,15 @@ def build(bld): progs += ['pugl_cairo_test'] for prog in progs: - bld(**common, - features = 'c cprogram', + bld(features = 'c cprogram', source = '%s.c' % prog, use = 'libpugl_static', lib = test_libs, target = prog, install_path = '', - cflags = test_cflags) + cflags = test_cflags, + **common) + if bld.env['DOCS']: bld(features = 'subst', -- cgit v1.2.1