diff options
author | David Robillard <d@drobilla.net> | 2019-07-27 21:59:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-29 01:59:32 +0200 |
commit | 0d2c8a13982c82d4abc80ee54889b941c29f5370 (patch) | |
tree | bef7a9a14353f8c8c68e9f98b0454196e20911f9 /wscript | |
parent | a90a4006b2fe0dcbf088fc320967f08ce09411e4 (diff) | |
download | pugl-0d2c8a13982c82d4abc80ee54889b941c29f5370.tar.gz pugl-0d2c8a13982c82d4abc80ee54889b941c29f5370.tar.bz2 pugl-0d2c8a13982c82d4abc80ee54889b941c29f5370.zip |
Build both static and shared library by default
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |