Commit 2ae84366 authored by Hanspeter Portner's avatar Hanspeter Portner

meson: support BSDs.

parent d9e9f7ed
Pipeline #22297237 passed with stages
in 4 minutes and 57 seconds
......@@ -177,14 +177,7 @@ ui_srcs = [
join_paths('plugin', 'simple_ui.c'),
join_paths('plugin', 'nk_ui.c')]
if host_machine.system() == 'linux'
conf_data.set('UI_TYPE', 'X11UI')
dsp_deps += cc.find_library('rt')
ui_deps += dependency('gl')
ui_deps += dependency('x11', version : '>=1.6.0')
ui_deps += dependency('xext', version : '>=1.3.0')
ui_srcs += 'pugl/pugl/pugl_x11.c'
elif host_machine.system() == 'windows'
if host_machine.system() == 'windows'
add_languages('cpp')
conf_data.set('UI_TYPE', 'WindowsUI')
ui_deps += cc.find_library('opengl32')
......@@ -198,6 +191,13 @@ elif host_machine.system() == 'darwin'
#ui_deps += cc.find_library('gl')
#ui_deps += dependency('appleframeworks', modules : 'cocoa')
#ui_srcs += 'pugl/pugl/pugl_osx.m'
else
conf_data.set('UI_TYPE', 'X11UI')
dsp_deps += cc.find_library('rt')
ui_deps += dependency('gl')
ui_deps += dependency('x11', version : '>=1.6.0')
ui_deps += dependency('xext', version : '>=1.3.0')
ui_srcs += 'pugl/pugl/pugl_x11.c'
endif
mod = shared_module('moony', dsp_srcs,
......
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