Be able to create a wrapper for java.

Android is a specific wrapper.
Java is another one.
This commit is contained in:
Matthieu Gautier
2020-01-27 15:38:50 +01:00
parent df9ddd5451
commit f09c739c1f
29 changed files with 27 additions and 16 deletions

View File

@ -5,13 +5,19 @@ project('kiwix-lib', 'cpp',
compiler = meson.get_compiler('cpp')
static_deps = get_option('android') or get_option('default_library') == 'static'
if get_option('android')
wrapper = get_option('wrapper')
static_deps = 'android' in wrapper or 'java' in wrapper or get_option('default_library') == 'static'
if 'android' in wrapper
extra_libs = ['-llog']
else
extra_libs = []
endif
if 'java' in wrapper
add_languages('java')
endif
thread_dep = dependency('threads')
libicu_dep = dependency('icu-i18n', static:static_deps)
libzim_dep = dependency('libzim', version : '>=5.0.0', static:static_deps)