meson: fix build on FreeBSD of terminology.

The option generated file causes lot of issues when it's
included in source files via private.h. Linux needs these
but FreeBSD breaks. Other option is to change header
inclusion ordering but that is messy.
This commit is contained in:
Al Poole 2017-12-19 01:02:53 +00:00
parent 700beb9bd6
commit 16f3870fb5
1 changed files with 13 additions and 7 deletions

View File

@ -26,13 +26,18 @@ config_data.set_quoted('PACKAGE_DATA_DIR',
config_data.set_quoted('PACKAGE_LIB_DIR',
join_paths(prefix, get_option('libdir')))
config_data.set_quoted('LOCALEDIR', join_paths(prefix, get_option('localedir')))
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)
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.8.0'
efl_deps = ['edje',
@ -58,6 +63,7 @@ edj_files = []
if get_option('nls') == true
subdir('po')
terminology_dependencies += cc.find_library('intl', required: false)
endif
foreach efl_dep: efl_deps