From 808b1de00e29421b542fa8ef781979351dc0fcf7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 27 Feb 2017 20:32:10 +0100 Subject: Remove use of Options.platform This is removed in waf 1.9 and isn't correct for cross-compiling anyway. --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index acb6d21..16ef9f4 100644 --- a/wscript +++ b/wscript @@ -43,7 +43,7 @@ def configure(conf): autowaf.display_header('Raul Configuration') autowaf.set_cxx11_mode(conf) - if Options.platform == 'darwin': + if conf.env.DEST_OS == 'darwin': conf.check(framework_name='CoreServices') conf.env.FRAMEWORK_RAUL = ['CoreServices'] @@ -82,13 +82,13 @@ def build(bld): # Pkgconfig file dict = {'RAUL_PC_LIBS': ' '} - if Options.platform == 'darwin': + if bld.env.DEST_OS == 'darwin': dict = {'RAUL_PC_LIBS': '-framework CoreServices'} autowaf.build_pc(bld, 'RAUL', RAUL_VERSION, '', 'GLIB GTHREAD', subst_dict=dict) framework = '' - if Options.platform == 'darwin': + if bld.env.DEST_OS == 'darwin': framework = ' CoreServices ' if bld.env.BUILD_TESTS: -- cgit v1.2.1