From 0d2c8a13982c82d4abc80ee54889b941c29f5370 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 Jul 2019 21:59:55 +0200 Subject: Build both static and shared library by default --- wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 7730b00..55a4c0e 100644 --- a/wscript +++ b/wscript @@ -31,7 +31,8 @@ def options(ctx): opts, {'no-gl': 'do not build OpenGL support', 'no-cairo': 'do not build Cairo support', - 'static': 'build static library', + 'no-static': 'do not build static library', + 'no-shared': 'do not build shared library', 'log': 'print GL information to console', 'grab-focus': 'work around keyboard issues by grabbing focus'}) @@ -71,7 +72,8 @@ def configure(conf): # Shared library building is broken on win32 for some reason conf.env.update({ - 'BUILD_STATIC': conf.env.BUILD_TESTS or Options.options.static}) + 'BUILD_SHARED': not Options.options.no_shared, + 'BUILD_STATIC': conf.env.BUILD_TESTS or not Options.options.no_static}) autowaf.set_lib_env(conf, 'pugl', PUGL_VERSION) conf.write_config_header('pugl_config.h', remove=False) -- cgit v1.2.1