2019-12-10 15:17:16 -08:00
|
|
|
##### Project
|
2019-12-04 09:47:17 -08:00
|
|
|
project('evisum', 'c',
|
2019-12-10 15:42:49 -08:00
|
|
|
version : '0.3.0',
|
2019-12-04 09:47:17 -08:00
|
|
|
meson_version : '>= 0.40.0')
|
|
|
|
|
|
|
|
efl_version = '>= 1.22.0'
|
|
|
|
|
2019-12-10 15:17:16 -08:00
|
|
|
cfg = configuration_data()
|
|
|
|
|
2019-12-05 10:04:24 -08:00
|
|
|
host_os = host_machine.system()
|
|
|
|
|
2019-12-04 09:47:17 -08:00
|
|
|
deps = dependency('elementary', version: efl_version)
|
|
|
|
|
2019-12-05 10:04:24 -08:00
|
|
|
deps_os = declare_dependency(link_args : [] )
|
|
|
|
if host_os == 'openbsd'
|
2019-12-10 15:17:16 -08:00
|
|
|
deps_os = declare_dependency(link_args : [ '-lkvm' ])
|
2019-12-05 10:04:24 -08:00
|
|
|
endif
|
|
|
|
|
2019-12-04 09:47:17 -08:00
|
|
|
##### dir locations
|
|
|
|
dir_prefix = get_option('prefix')
|
|
|
|
dir_bin = join_paths(dir_prefix, get_option('bindir'))
|
|
|
|
dir_lib = join_paths(dir_prefix, get_option('libdir'))
|
|
|
|
dir_data = join_paths(dir_prefix, get_option('datadir'))
|
|
|
|
dir_locale = join_paths(dir_prefix, get_option('localedir'))
|
|
|
|
|
2019-12-10 15:17:16 -08:00
|
|
|
##### config.h
|
|
|
|
|
|
|
|
cfg.set_quoted('PACKAGE_VERSION', meson.project_version())
|
2020-01-04 04:59:03 -08:00
|
|
|
cfg.set_quoted('PACKAGE_DATA_DIR', join_paths(dir_data, 'evisum'))
|
2019-12-10 15:17:16 -08:00
|
|
|
configure_file(output: 'config.h', configuration: cfg)
|
|
|
|
|
2019-12-04 09:47:17 -08:00
|
|
|
subdir('src')
|
|
|
|
subdir('data')
|