mirror of https://github.com/kiwix/kiwix-tools.git
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.
35 lines
1.1 KiB
35 lines
1.1 KiB
project('kiwix-tools', 'cpp',
|
|
version : '3.1.2',
|
|
license : 'GPL',
|
|
default_options: ['c_std=c11', 'cpp_std=c++11'])
|
|
|
|
compiler = meson.get_compiler('cpp')
|
|
|
|
add_global_arguments('-DKIWIX_TOOLS_VERSION="@0@"'.format(meson.project_version()), language : 'cpp')
|
|
|
|
static_linkage = get_option('static-linkage')
|
|
if static_linkage
|
|
add_global_link_arguments('-static-libstdc++', '--static', language:'cpp')
|
|
endif
|
|
|
|
libzim_dep = dependency('libzim', version : '>=7.2.0', static:static_linkage)
|
|
if not compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN')
|
|
error('Libzim seems to be compiled without xapian. Xapian support is mandatory.')
|
|
endif
|
|
|
|
thread_dep = dependency('threads')
|
|
libkiwix_dep = dependency('kiwix', version:'>=10.0.0', static:static_linkage)
|
|
microhttpd_dep = dependency('libmicrohttpd', static:static_linkage)
|
|
z_dep = dependency('zlib', static:static_linkage)
|
|
|
|
all_deps = [thread_dep, libzim_dep, libkiwix_dep, microhttpd_dep, z_dep]
|
|
|
|
if static_linkage
|
|
librt = compiler.find_library('rt', required:false)
|
|
if librt.found()
|
|
all_deps += librt
|
|
endif
|
|
endif
|
|
|
|
subdir('src')
|