diff options
author | David Robillard <d@drobilla.net> | 2022-05-29 14:57:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-30 14:34:05 -0400 |
commit | 2d18caf46d9c279fb193dc2a460d53d93b3717b5 (patch) | |
tree | 4dfa9fc08850faea3b8639cf9e4ca0e6dfbb9d00 /wscript | |
parent | f5af5ebd51d03a642ad9af515745dcb81730ac3d (diff) | |
download | suil-2d18caf46d9c279fb193dc2a460d53d93b3717b5.tar.gz suil-2d18caf46d9c279fb193dc2a460d53d93b3717b5.tar.bz2 suil-2d18caf46d9c279fb193dc2a460d53d93b3717b5.zip |
Fix MacOS build
I can't for the life of me figure out how to do this portably with C++ casts,
since the native types are very different between platforms (pointer on MacOS,
integer on X11). So, just give up and go back to C casts here.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -4,7 +4,7 @@ from waflib import Build, Logs, Options, TaskGen from waflib.extras import autowaf # Semver package/library version -SUIL_VERSION = '0.10.12' +SUIL_VERSION = '0.10.13' SUIL_MAJOR_VERSION = SUIL_VERSION[0:SUIL_VERSION.find('.')] # Mandatory waf variables @@ -154,11 +154,11 @@ def configure(conf): system=True, mandatory=False) - if not conf.options.no_cocoa: - if conf.check_cxx(header_name = 'QMacCocoaViewContainer', - uselib = 'QT5_COCOA', + if conf.env.DEST_OS == 'darwin' and not conf.options.no_cocoa: + if conf.check_cxx(header_name='QMacCocoaViewContainer', + uselib='QT5', system=True, - mandatory = False): + mandatory=False): enable_module('SUIL_WITH_COCOA_IN_QT5') conf.check_cc(define_name = 'HAVE_LIBDL', @@ -389,7 +389,7 @@ def build(bld): install_path = module_dir, cflags = cflags, lib = modlib, - uselib = 'QT5 QT5_COCOA LV2', + uselib = 'QT5 LV2', linkflags = ['-framework', 'Cocoa']) if bld.env.SUIL_WITH_X11: |