mirror of https://github.com/kiwix/libkiwix.git
Build with static dependencies when building for android or static.
This commit is contained in:
parent
192a249d23
commit
25a05cc64a
10
meson.build
10
meson.build
|
@ -6,10 +6,12 @@ project('kiwixlib', 'cpp',
|
||||||
compiler = meson.get_compiler('cpp')
|
compiler = meson.get_compiler('cpp')
|
||||||
find_library_in_compiler = meson.version().version_compare('>=0.31.0')
|
find_library_in_compiler = meson.version().version_compare('>=0.31.0')
|
||||||
|
|
||||||
|
static_deps = get_option('android') or get_option('default_library') == 'static'
|
||||||
|
|
||||||
thread_dep = dependency('threads')
|
thread_dep = dependency('threads')
|
||||||
libicu_dep = dependency('icu-i18n')
|
libicu_dep = dependency('icu-i18n', static:static_deps)
|
||||||
libzim_dep = dependency('libzim')
|
libzim_dep = dependency('libzim', static:static_deps)
|
||||||
pugixml_dep = dependency('pugixml')
|
pugixml_dep = dependency('pugixml', static:static_deps)
|
||||||
|
|
||||||
ctpp2_include_path = ''
|
ctpp2_include_path = ''
|
||||||
has_ctpp2_dep = false
|
has_ctpp2_dep = false
|
||||||
|
@ -62,7 +64,7 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
xapian_dep = dependency('xapian-core', required:false)
|
xapian_dep = dependency('xapian-core', required:false, static:static_deps)
|
||||||
|
|
||||||
all_deps = [thread_dep, libicu_dep, libzim_dep, xapian_dep, pugixml_dep]
|
all_deps = [thread_dep, libicu_dep, libzim_dep, xapian_dep, pugixml_dep]
|
||||||
if has_ctpp2_dep
|
if has_ctpp2_dep
|
||||||
|
|
Loading…
Reference in New Issue