diff options
author | David Robillard <d@drobilla.net> | 2020-04-19 19:47:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-19 19:47:07 +0200 |
commit | 69366ae5c185b6604aed8fd0dc81ed84d342fafd (patch) | |
tree | 801d0ef2223c808bfef669aea598e6433db17504 /wscript | |
parent | c737df9c501200c1d997c916b74cd38edf115e1d (diff) | |
download | pugl-69366ae5c185b6604aed8fd0dc81ed84d342fafd.tar.gz pugl-69366ae5c185b6604aed8fd0dc81ed84d342fafd.tar.bz2 pugl-69366ae5c185b6604aed8fd0dc81ed84d342fafd.zip |
Set library environment for building against local Pugl
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -148,7 +148,18 @@ def configure(conf): '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) + if conf.env.TARGET_PLATFORM == 'win32': + conf.env.PUGL_PLATFORM = 'win' + elif conf.env.TARGET_PLATFORM == 'darwin': + conf.env.PUGL_PLATFORM = 'mac' + else: + conf.env.PUGL_PLATFORM = 'x11' + + autowaf.set_lib_env(conf, 'pugl', PUGL_VERSION, + lib='pugl_' + conf.env.PUGL_PLATFORM) + + autowaf.set_lib_env(conf, 'pugl_gl', PUGL_VERSION, + lib='pugl_%s_gl' % conf.env.PUGL_PLATFORM) autowaf.display_summary( conf, |