aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------waflib0
-rw-r--r--wscript13
2 files changed, 12 insertions, 1 deletions
diff --git a/waflib b/waflib
-Subproject 569d532e011bcad1ac308391e6d00b1b28789c1
+Subproject c7d3468459863bab4b6a155f203746102df78c1
diff --git a/wscript b/wscript
index 38fe983..3471a4b 100644
--- a/wscript
+++ b/wscript
@@ -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,