meson: Fix build for OpenBSD.
This commit is contained in:
parent
cf4372ddf2
commit
62a451c9ee
|
@ -4,8 +4,15 @@ project('evisum', 'c',
|
||||||
|
|
||||||
efl_version = '>= 1.22.0'
|
efl_version = '>= 1.22.0'
|
||||||
|
|
||||||
|
host_os = host_machine.system()
|
||||||
|
|
||||||
deps = dependency('elementary', version: efl_version)
|
deps = dependency('elementary', version: efl_version)
|
||||||
|
|
||||||
|
deps_os = declare_dependency(link_args : [] )
|
||||||
|
if host_os == 'openbsd'
|
||||||
|
deps_os = declare_dependency(link_args : [ '-lkvm' ])
|
||||||
|
endif
|
||||||
|
|
||||||
##### dir locations
|
##### dir locations
|
||||||
dir_prefix = get_option('prefix')
|
dir_prefix = get_option('prefix')
|
||||||
dir_bin = join_paths(dir_prefix, get_option('bindir'))
|
dir_bin = join_paths(dir_prefix, get_option('bindir'))
|
||||||
|
|
|
@ -4,6 +4,6 @@ executable('evisum', [
|
||||||
'system.c', 'system.h',
|
'system.c', 'system.h',
|
||||||
'ui.c', 'ui.h',
|
'ui.c', 'ui.h',
|
||||||
'main.c'],
|
'main.c'],
|
||||||
dependencies : deps,
|
dependencies : [ deps, deps_os ],
|
||||||
gui_app : true,
|
gui_app : true,
|
||||||
install : true)
|
install : true)
|
||||||
|
|
Loading…
Reference in New Issue