You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.0 KiB
64 lines
2.0 KiB
4 years ago
|
project('expedite', 'c',
|
||
|
version: '1.11.99',
|
||
|
default_options: ['c_std=gnu99'],
|
||
|
license: 'BSD')
|
||
|
|
||
|
|
||
|
cc = meson.get_compiler('c')
|
||
|
|
||
|
prefix = get_option('prefix')
|
||
|
add_global_arguments('-DHAVE_CONFIG_H=1', language: 'c')
|
||
|
config_data = configuration_data()
|
||
|
config_data.set('EFL_BETA_API_SUPPORT', 1)
|
||
|
config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||
|
config_data.set_quoted('PACKAGE', meson.project_name())
|
||
|
config_data.set_quoted('PACKAGE_BUGREPORT',
|
||
|
'enlightenment-devel@lists.sourceforge.net')
|
||
|
config_data.set_quoted('PACKAGE_NAME', meson.project_name())
|
||
|
config_data.set_quoted('PACKAGE_TARNAME', meson.project_name())
|
||
|
config_data.set_quoted('PACKAGE_URL',
|
||
|
'https://www.enlightenment.org/')
|
||
|
config_data.set_quoted('PACKAGE_BIN_DIR',
|
||
|
join_paths(prefix, get_option('bindir')))
|
||
|
config_data.set_quoted('PACKAGE_DATA_DIR',
|
||
|
join_paths(prefix, get_option('datadir'),
|
||
|
meson.project_name()))
|
||
|
config_data.set_quoted('PACKAGE_LIB_DIR',
|
||
|
join_paths(prefix, get_option('libdir')))
|
||
|
config_data.set_quoted('LOCALEDIR', join_paths(prefix, get_option('localedir')))
|
||
|
|
||
|
host_os = host_machine.system()
|
||
|
|
||
|
if host_os == 'linux'
|
||
|
config_data.set('_GNU_SOURCE', 1)
|
||
|
config_data.set('__EXTENSIONS__', 1)
|
||
|
config_data.set('_POSIX_PTHREAD_SEMANTICS', 1)
|
||
|
config_data.set('_TANDEM_SOURCE', 1)
|
||
|
config_data.set('_ALL_SOURCE', 1)
|
||
|
config_data.set('_POSIX_SOURCE', 1)
|
||
|
config_data.set('_POSIX_1_SOURCE', 1)
|
||
|
endif
|
||
|
|
||
|
efl_version = '1.22.0'
|
||
|
efl_deps = ['eina',
|
||
|
'eet',
|
||
|
'eo',
|
||
|
'efl',
|
||
|
'evas',
|
||
|
'ecore',
|
||
|
'ecore-evas',
|
||
|
'elementary']
|
||
|
expedite_dependencies = []
|
||
|
|
||
|
foreach efl_dep: efl_deps
|
||
|
dep = dependency(efl_dep, version: '>=' + efl_version)
|
||
|
expedite_dependencies += [dep]
|
||
|
endforeach
|
||
|
|
||
|
configure_file(output: 'config.h',
|
||
|
configuration: config_data)
|
||
|
|
||
|
config_dir = include_directories('.')
|
||
|
subdir('src/bin')
|
||
|
subdir('data')
|