Merge pull request #360 from kiwix/new_dep
libmicrohttp is now a dependency of kiwix-lib, not kiwix-tools.
This commit is contained in:
commit
0f3d2b73b9
|
@ -51,6 +51,7 @@ build_script:
|
||||||
- IF "%USE_CACHE%" NEQ "1" appveyor\install_pugixml.cmd
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_pugixml.cmd
|
||||||
- IF "%USE_CACHE%" NEQ "1" appveyor\install_aria2.cmd
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_aria2.cmd
|
||||||
- IF "%USE_CACHE%" NEQ "1" appveyor\install_mustache.cmd
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_mustache.cmd
|
||||||
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_libmicrohttpd.cmd
|
||||||
- IF "%USE_CACHE%" NEQ "1" %MINGW64_RUN% "cd /c/projects/kiwix-build && appveyor/create_cache.sh"
|
- IF "%USE_CACHE%" NEQ "1" %MINGW64_RUN% "cd /c/projects/kiwix-build && appveyor/create_cache.sh"
|
||||||
- appveyor\install_libzim.cmd
|
- appveyor\install_libzim.cmd
|
||||||
- appveyor\install_kiwix-lib.cmd
|
- appveyor\install_kiwix-lib.cmd
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
REM ========================================================
|
||||||
|
REM Install libmicrohttpd
|
||||||
|
curl -fsSL -O https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-latest-w32-bin.zip || exit /b 1
|
||||||
|
7z e libmicrohttpd-latest-w32-bin.zip -o%EXTRA_DIR%/include libmicrohttpd-*-w32-bin/x86_64/VS2019/Release-static/microhttpd.h || exit /b 1
|
||||||
|
7z e libmicrohttpd-latest-w32-bin.zip -o%EXTRA_DIR%/lib libmicrohttpd-*-w32-bin/x86_64/VS2019/Release-static/libmicrohttpd.lib || exit /b 1
|
||||||
|
7z e libmicrohttpd-latest-w32-bin.zip -o%EXTRA_DIR%/lib/pkgconfig libmicrohttpd-*-w32-bin/x86_64/MinGW/static/mingw64/lib/pkgconfig/* || exit /b 1
|
||||||
|
|
||||||
|
dir %EXTRA_DIR%
|
||||||
|
dir %EXTRA_DIR%\lib
|
||||||
|
dir %EXTRA_DIR%\lib\pkgconfig
|
|
@ -12,13 +12,9 @@ class AllBaseDependencies(Dependency):
|
||||||
class Builder(NoopBuilder):
|
class Builder(NoopBuilder):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_dependencies(cls, platformInfo, allDeps):
|
def get_dependencies(cls, platformInfo, allDeps):
|
||||||
base_deps = ['zlib', 'lzma', 'xapian-core', 'pugixml', 'libcurl', 'icu4c', 'mustache']
|
base_deps = ['zlib', 'lzma', 'xapian-core', 'pugixml', 'libcurl', 'icu4c', 'mustache', 'libmicrohttpd']
|
||||||
# zimwriterfs
|
# zimwriterfs
|
||||||
if platformInfo.build not in ('android', 'win32'):
|
if platformInfo.build not in ('android', 'win32'):
|
||||||
base_deps += ['libmagic', 'gumbo']
|
base_deps += ['libmagic', 'gumbo']
|
||||||
# kiwix-tools
|
|
||||||
if (platformInfo.build != 'android' and
|
|
||||||
neutralEnv('distname') != 'Darwin'):
|
|
||||||
base_deps += ['libmicrohttpd']
|
|
||||||
|
|
||||||
return base_deps
|
return base_deps
|
||||||
|
|
|
@ -16,7 +16,7 @@ class Kiwixlib(Dependency):
|
||||||
git_dir = "kiwix-lib"
|
git_dir = "kiwix-lib"
|
||||||
|
|
||||||
class Builder(MesonBuilder):
|
class Builder(MesonBuilder):
|
||||||
dependencies = ["pugixml", "libzim", "zlib", "lzma", "libcurl", "icu4c", "mustache"]
|
dependencies = ["pugixml", "libzim", "zlib", "lzma", "libcurl", "libmicrohttpd", "icu4c", "mustache"]
|
||||||
strip_option = ''
|
strip_option = ''
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -11,7 +11,7 @@ class KiwixTools(Dependency):
|
||||||
git_dir = "kiwix-tools"
|
git_dir = "kiwix-tools"
|
||||||
|
|
||||||
class Builder(MesonBuilder):
|
class Builder(MesonBuilder):
|
||||||
dependencies = ["kiwix-lib", "libmicrohttpd", "zlib"]
|
dependencies = ["kiwix-lib"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def configure_option(self):
|
def configure_option(self):
|
||||||
|
|
|
@ -9,9 +9,9 @@ class MicroHttpd(Dependency):
|
||||||
name = "libmicrohttpd"
|
name = "libmicrohttpd"
|
||||||
|
|
||||||
class Source(ReleaseDownload):
|
class Source(ReleaseDownload):
|
||||||
archive = Remotefile('libmicrohttpd-0.9.65.tar.gz',
|
archive = Remotefile('libmicrohttpd-0.9.46.tar.gz',
|
||||||
'f2467959c5dd5f7fdf8da8d260286e7be914d18c99b898e22a70dafd2237b3c9',
|
'06dbd2654f390fa1e8196fe063fc1449a6c2ed65a38199a49bf29ad8a93b8979',
|
||||||
'http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.65.tar.gz')
|
'http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.46.tar.gz')
|
||||||
|
|
||||||
class Builder(MakeBuilder):
|
class Builder(MakeBuilder):
|
||||||
configure_option = "--disable-https --without-libgcrypt --without-libcurl"
|
configure_option = "--disable-https --without-libgcrypt --without-libcurl --disable-doc --disable-examples"
|
||||||
|
|
|
@ -28,14 +28,14 @@ release_versions = {
|
||||||
'kiwix-lib': None, # Depends of libzim (was 0)
|
'kiwix-lib': None, # Depends of libzim (was 0)
|
||||||
'kiwix-tools': None, # Depends of kiwix-lib and libzim (was 0)
|
'kiwix-tools': None, # Depends of kiwix-lib and libzim (was 0)
|
||||||
'zim-tools': 0, # Depends of libzim (was 0)
|
'zim-tools': 0, # Depends of libzim (was 0)
|
||||||
'zimwriterfs': None, # Depends of libzim (was 2)
|
'zimwriterfs': None, # Depends of libzim (was 0)
|
||||||
'kiwix-desktop': None # Depends of kiwix-lib and libzim (was 0)
|
'kiwix-desktop': None # Depends of kiwix-lib and libzim (was 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# This is the "version" of the whole base_deps_versions dict.
|
# This is the "version" of the whole base_deps_versions dict.
|
||||||
# Change this when you change base_deps_versions.
|
# Change this when you change base_deps_versions.
|
||||||
base_deps_meta_version = '51'
|
base_deps_meta_version = '52'
|
||||||
|
|
||||||
base_deps_versions = {
|
base_deps_versions = {
|
||||||
'zlib' : '1.2.8',
|
'zlib' : '1.2.8',
|
||||||
|
|
Loading…
Reference in New Issue