aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 21:59:55 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 01:59:32 +0200
commit0d2c8a13982c82d4abc80ee54889b941c29f5370 (patch)
treebef7a9a14353f8c8c68e9f98b0454196e20911f9
parenta90a4006b2fe0dcbf088fc320967f08ce09411e4 (diff)
Build both static and shared library by default
-rw-r--r--wscript6
1 files 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)