aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-15 11:43:45 +0200
committerDavid Robillard <d@drobilla.net>2018-09-15 11:44:26 +0200
commit9f0097662a0047984c379a8118e60851cf01b65b (patch)
treef196b5743cea6d5da7e636e9341ca7e0130ad377 /wscript
parentbfa266ef280f7be0da8d42275c8869b54ea41442 (diff)
downloadpugl-9f0097662a0047984c379a8118e60851cf01b65b.tar.gz
pugl-9f0097662a0047984c379a8118e60851cf01b65b.tar.bz2
pugl-9f0097662a0047984c379a8118e60851cf01b65b.zip
Don't abuse autowaf.define()
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 3 insertions, 4 deletions
diff --git a/wscript b/wscript
index 747ecee..8bf7b9a 100644
--- a/wscript
+++ b/wscript
@@ -48,7 +48,7 @@ def configure(conf):
if not Options.options.no_gl:
# TODO: Portable check for OpenGL
conf.define('HAVE_GL', 1)
- autowaf.define(conf, 'PUGL_HAVE_GL', 1)
+ conf.define('PUGL_HAVE_GL', 1)
if not Options.options.no_cairo:
autowaf.check_pkg(conf, 'cairo',
@@ -56,17 +56,16 @@ def configure(conf):
atleast_version = '1.0.0',
mandatory = False)
if conf.is_defined('HAVE_CAIRO'):
- autowaf.define(conf, 'PUGL_HAVE_CAIRO', 1)
+ conf.define('PUGL_HAVE_CAIRO', 1)
if Options.options.log:
- autowaf.define(conf, 'PUGL_VERBOSE', 1)
+ conf.define('PUGL_VERBOSE', 1)
# Shared library building is broken on win32 for some reason
conf.env['BUILD_TESTS'] = Options.options.test
conf.env['BUILD_SHARED'] = conf.env.TARGET_PLATFORM != 'win32'
conf.env['BUILD_STATIC'] = (Options.options.test or Options.options.static)
- autowaf.define(conf, 'PUGL_VERSION', PUGL_VERSION)
autowaf.set_lib_env(conf, 'pugl', PUGL_VERSION)
conf.write_config_header('pugl_config.h', remove=False)