mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #427 from kiwix/fix_deps_zlib
This commit is contained in:
commit
7c4517ca3c
|
@ -42,6 +42,9 @@ libraries need to be available:
|
||||||
* [Mustache](https://github.com/kainjow/Mustache) (Just copy the
|
* [Mustache](https://github.com/kainjow/Mustache) (Just copy the
|
||||||
header `mustache.hpp` somewhere it can be found by the compiler and/or
|
header `mustache.hpp` somewhere it can be found by the compiler and/or
|
||||||
set CPPFLAGS with correct `-I` option). Use Mustache version 3 only.
|
set CPPFLAGS with correct `-I` option). Use Mustache version 3 only.
|
||||||
|
* [libcurl](https://curl.se/libcurl) (`libcurl4-gnutls-dev`, `libcurl4-nss-dev` or `libcurl4-openssl-dev` on Ubuntu)
|
||||||
|
* [microhttpd](https://www.gnu.org/software/libmicrohttpd) (package `libmicrohttpd-dev` on Ubuntu)
|
||||||
|
* [zlib](https://zlib.net/) (package `zlib1g-dev` on Ubuntu)
|
||||||
|
|
||||||
The following dependency needs to be available at runtime:
|
The following dependency needs to be available at runtime:
|
||||||
* [Aria2](https://aria2.github.io/) (package `aria2` on Ubuntu)
|
* [Aria2](https://aria2.github.io/) (package `aria2` on Ubuntu)
|
||||||
|
|
|
@ -29,6 +29,7 @@ libzim_dep = dependency('libzim', version : '>=6.1.8', static:static_deps)
|
||||||
pugixml_dep = dependency('pugixml', static:static_deps)
|
pugixml_dep = dependency('pugixml', static:static_deps)
|
||||||
libcurl_dep = dependency('libcurl', static:static_deps)
|
libcurl_dep = dependency('libcurl', static:static_deps)
|
||||||
microhttpd_dep = dependency('libmicrohttpd', static:static_deps)
|
microhttpd_dep = dependency('libmicrohttpd', static:static_deps)
|
||||||
|
zlib_dep = dependency('zlib', static:static_deps)
|
||||||
|
|
||||||
if compiler.has_header('mustache.hpp')
|
if compiler.has_header('mustache.hpp')
|
||||||
extra_include = []
|
extra_include = []
|
||||||
|
@ -44,7 +45,7 @@ if target_machine.system() == 'windows' and static_deps
|
||||||
extra_cflags += '-DCURL_STATICLIB'
|
extra_cflags += '-DCURL_STATICLIB'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep, libcurl_dep, microhttpd_dep]
|
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep, libcurl_dep, microhttpd_dep, zlib_dep]
|
||||||
|
|
||||||
inc = include_directories('include', extra_include)
|
inc = include_directories('include', extra_include)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue