diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/meson.build b/meson.build index ff4e5e5f..18a5d908 100644 --- a/meson.build +++ b/meson.build @@ -1,9 +1,9 @@ project( 'wlroots', 'c', - version: '0.0.1', + version: '0.1.0', license: 'MIT', - meson_version: '>=0.47.1', + meson_version: '>=0.48.0', default_options: [ 'c_std=c11', 'warning_level=2', @@ -42,7 +42,7 @@ endif # Avoid wl_buffer deprecation warnings add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c') -wayland_server = dependency('wayland-server', version: '>=1.15') +wayland_server = dependency('wayland-server', version: '>=1.16') wayland_client = dependency('wayland-client') wayland_egl = dependency('wayland-egl') wayland_protos = dependency('wayland-protocols', version: '>=1.15') @@ -55,8 +55,9 @@ xkbcommon = dependency('xkbcommon') udev = dependency('libudev') pixman = dependency('pixman-1') libcap = dependency('libcap', required: get_option('libcap')) -logind = dependency('lib' + get_option('logind-provider'), required: get_option('logind')) -math = cc.find_library('m', required: false) +logind = dependency('lib' + get_option('logind-provider'), required: get_option('logind'), version: '>=237') +math = cc.find_library('m') +rt = cc.find_library('rt') wlr_parts = [] wlr_deps = [] @@ -111,6 +112,12 @@ wlr_deps += [ math, ] +if host_machine.system() == 'freebsd' + override_options = ['b_lundef=false'] +else + override_options = [] +endif + symbols_file = 'wlroots.syms' symbols_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), symbols_file) lib_wlr = library( @@ -122,6 +129,7 @@ lib_wlr = library( install: true, link_args : symbols_flag, link_depends: symbols_file, + override_options: override_options, ) wlroots = declare_dependency( |