Commit d9bae3fa authored by Hanspeter Portner's avatar Hanspeter Portner

meson: fix darwin.

parent 1555db1c
Pipeline #35929529 failed with stages
in 2 minutes and 42 seconds
......@@ -15,6 +15,7 @@ sratom_dep = dependency('sratom-0', version : '>=0.6.0', static : static_link)
dsp_deps = [m_dep, lv2_dep]
ui_deps = [m_dep, lv2_dep, sratom_dep]
ui_links = []
pugl_inc = include_directories('pugl')
props_inc = include_directories('props.lv2')
......@@ -70,12 +71,11 @@ if host_machine.system() == 'windows'
ui_deps += cc.find_library('user32')
ui_srcs += 'pugl/pugl/pugl_win.cpp'
elif host_machine.system() == 'darwin'
#add_languages('objc')
add_languages('objc')
conf_data.set('UI_TYPE', 'CocoaUI')
#ui_deps += cc.find_library('Cocoa')
#ui_deps += cc.find_library('gl')
#ui_deps += dependency('appleframeworks', modules : 'cocoa')
#ui_srcs += 'pugl/pugl/pugl_osx.m'
ui_links += ['-framework', 'OpenGL']
ui_links += ['-framework', 'Cocoa']
ui_srcs += 'pugl/pugl/pugl_osx.m'
else
conf_data.set('UI_TYPE', 'X11UI')
ui_deps += dependency('gl')
......@@ -97,6 +97,7 @@ ui = shared_module('sherlock_nk', ui_srcs,
include_directories : inc_dir,
name_prefix : '',
dependencies : ui_deps,
link_args : ui_links,
install : true,
install_dir : inst_dir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment