commit
44ae7ab4d9
|
@ -72,6 +72,7 @@ env:
|
||||||
addons:
|
addons:
|
||||||
ssh_known_hosts:
|
ssh_known_hosts:
|
||||||
- download.kiwix.org
|
- download.kiwix.org
|
||||||
|
- tmp.kiwix.org
|
||||||
- download.openzim.org
|
- download.openzim.org
|
||||||
apt:
|
apt:
|
||||||
packages: &common
|
packages: &common
|
||||||
|
|
|
@ -13,6 +13,7 @@ class Kiwixlib(Dependency):
|
||||||
|
|
||||||
class Builder(MesonBuilder):
|
class Builder(MesonBuilder):
|
||||||
dependencies = ["pugixml", "libzim", "zlib", "lzma", "libcurl", "icu4c", "mustache"]
|
dependencies = ["pugixml", "libzim", "zlib", "lzma", "libcurl", "icu4c", "mustache"]
|
||||||
|
strip_option = ''
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def configure_option(self):
|
def configure_option(self):
|
||||||
|
|
|
@ -14,6 +14,7 @@ class Libzim(Dependency):
|
||||||
class Builder(MesonBuilder):
|
class Builder(MesonBuilder):
|
||||||
test_option = "-t 8"
|
test_option = "-t 8"
|
||||||
dependencies = ['zlib', 'lzma', 'xapian-core', 'icu4c']
|
dependencies = ['zlib', 'lzma', 'xapian-core', 'icu4c']
|
||||||
|
strip_option = ''
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def configure_option(self):
|
def configure_option(self):
|
||||||
|
|
|
@ -9,9 +9,9 @@ class lzma(Dependency):
|
||||||
name = 'lzma'
|
name = 'lzma'
|
||||||
|
|
||||||
class Source(ReleaseDownload):
|
class Source(ReleaseDownload):
|
||||||
archive = Remotefile('xz-5.2.3.tar.bz2',
|
archive = Remotefile('xz-5.2.4.tar.gz',
|
||||||
'fd9ca16de1052aac899ad3495ad20dfa906c27b4a5070102a2ec35ca3a4740c1',
|
'b512f3b726d3b37b6dc4c8570e137b9311e7552e8ccbab4d39d47ce5f4177145'
|
||||||
'https://tukaani.org/xz/xz-5.2.3.tar.bz2')
|
)
|
||||||
|
|
||||||
class Builder(MakeBuilder):
|
class Builder(MakeBuilder):
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -35,12 +35,12 @@ release_versions = {
|
||||||
|
|
||||||
# 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 = '17'
|
base_deps_meta_version = '18'
|
||||||
|
|
||||||
|
|
||||||
base_deps_versions = {
|
base_deps_versions = {
|
||||||
'zlib' : '1.2.8',
|
'zlib' : '1.2.8',
|
||||||
'lzma' : '5.2.3',
|
'lzma' : '5.2.4',
|
||||||
'uuid' : '1.43.4',
|
'uuid' : '1.43.4',
|
||||||
'xapian-core' : '1.4.10',
|
'xapian-core' : '1.4.10',
|
||||||
'mustache' : '3.2',
|
'mustache' : '3.2',
|
||||||
|
|
|
@ -231,6 +231,8 @@ def make_deps_archive(target, full=False):
|
||||||
files_to_archive += HOME.glob('BUILD_*/pugixml-{}'.format(
|
files_to_archive += HOME.glob('BUILD_*/pugixml-{}'.format(
|
||||||
base_deps_versions['pugixml']))
|
base_deps_versions['pugixml']))
|
||||||
toolchains_subdirs = HOME.glob('**/TOOLCHAINS/*/*')
|
toolchains_subdirs = HOME.glob('**/TOOLCHAINS/*/*')
|
||||||
|
if PLATFORM.startswith('armhf'):
|
||||||
|
files_to_archive += [SOURCE_DIR/'raspberrypi-tools']
|
||||||
for subdir in toolchains_subdirs:
|
for subdir in toolchains_subdirs:
|
||||||
if not subdir.match('tools'):
|
if not subdir.match('tools'):
|
||||||
files_to_archive.append(subdir)
|
files_to_archive.append(subdir)
|
||||||
|
@ -278,10 +280,11 @@ def download_base_archive(base_name):
|
||||||
|
|
||||||
if PLATFORM != 'flatpak':
|
if PLATFORM != 'flatpak':
|
||||||
# The first thing we need to do is to (potentially) download already compiled base dependencies.
|
# The first thing we need to do is to (potentially) download already compiled base dependencies.
|
||||||
base_dep_archive_name = "base_deps_{os}_{platform}_{version}.tar.xz".format(
|
base_dep_archive_name = "base_deps_{os}_{platform}_{version}_{release}.tar.xz".format(
|
||||||
os=TRAVIS_OS_NAME,
|
os=TRAVIS_OS_NAME,
|
||||||
platform=PLATFORM,
|
platform=PLATFORM,
|
||||||
version=base_deps_meta_version)
|
version=base_deps_meta_version,
|
||||||
|
release='release' if make_release else 'debug')
|
||||||
|
|
||||||
print_message("Getting archive {}", base_dep_archive_name)
|
print_message("Getting archive {}", base_dep_archive_name)
|
||||||
try:
|
try:
|
||||||
|
@ -292,10 +295,11 @@ if PLATFORM != 'flatpak':
|
||||||
print_message("Cannot get archive. Build dependencies")
|
print_message("Cannot get archive. Build dependencies")
|
||||||
if PLATFORM == 'android':
|
if PLATFORM == 'android':
|
||||||
for arch in ('arm', 'arm64', 'x86', 'x86_64'):
|
for arch in ('arm', 'arm64', 'x86', 'x86_64'):
|
||||||
archive_name = "base_deps_{os}_android_{arch}_{version}.tar.xz".format(
|
archive_name = "base_deps_{os}_android_{arch}_{version}_{release}.tar.xz".format(
|
||||||
os=TRAVIS_OS_NAME,
|
os=TRAVIS_OS_NAME,
|
||||||
arch=arch,
|
arch=arch,
|
||||||
version=base_deps_meta_version)
|
version=base_deps_meta_version,
|
||||||
|
release='release' if make_release else 'debug')
|
||||||
print_message("Getting archive {}", archive_name)
|
print_message("Getting archive {}", archive_name)
|
||||||
try:
|
try:
|
||||||
local_filename = download_base_archive(archive_name)
|
local_filename = download_base_archive(archive_name)
|
||||||
|
|
Loading…
Reference in New Issue