diff options
author | David Robillard <d@drobilla.net> | 2018-09-15 11:43:45 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-15 11:44:26 +0200 |
commit | 9f0097662a0047984c379a8118e60851cf01b65b (patch) | |
tree | f196b5743cea6d5da7e636e9341ca7e0130ad377 /wscript | |
parent | bfa266ef280f7be0da8d42275c8869b54ea41442 (diff) | |
download | pugl-9f0097662a0047984c379a8118e60851cf01b65b.tar.gz pugl-9f0097662a0047984c379a8118e60851cf01b65b.tar.bz2 pugl-9f0097662a0047984c379a8118e60851cf01b65b.zip |
Don't abuse autowaf.define()
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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) |