From 9761f4b2d3cead1532b6bf2c1146f6db5d642698 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Oct 2014 03:16:18 +0000 Subject: Configure based on compiler target OS for cross-compilation. Only add -dl to pkg-config file for appropriate platforms. Fix #986. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5472 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 5ba0b50..b36693a 100644 --- a/wscript +++ b/wscript @@ -60,7 +60,7 @@ def configure(conf): autowaf.check_pkg(conf, 'ganv-1', uselib_store='GANV', atleast_version='1.4.0', mandatory=True) - if Options.platform == 'darwin': + if conf.env.DEST_OS == 'darwin': autowaf.check_pkg(conf, 'gtk-mac-integration', uselib_store='GTK_OSX', atleast_version='1.0.0', mandatory=True) if conf.is_defined('HAVE_GTK_OSX'): @@ -120,14 +120,14 @@ def configure(conf): autowaf.display_msg(conf, "Jack Session Management", conf.is_defined('PATCHAGE_JACK_SESSION')) autowaf.display_msg(conf, "Jack Metadata", conf.is_defined('HAVE_JACK_METADATA')) autowaf.display_msg(conf, "Alsa Sequencer", conf.is_defined('HAVE_ALSA')) - if Options.platform == 'darwin': + if conf.env.DEST_OS == 'darwin': autowaf.display_msg(conf, "Mac Integration", conf.is_defined('HAVE_GTK_OSX')) print('') def build(bld): out_base = '' - if Options.platform == 'darwin': + if bld.env.DEST_OS == 'darwin': out_base = 'Patchage.app/Contents/' # Program @@ -173,7 +173,7 @@ def build(bld): APP_INSTALL_NAME = bld.env.APP_INSTALL_NAME, APP_HUMAN_NAME = bld.env.APP_HUMAN_NAME) - if Options.platform == 'darwin': + if bld.env.DEST_OS == 'darwin': # Property list bld(features = 'subst', source = 'osx/Info.plist.in', -- cgit v1.2.1