Build android lib in the correct directory
This commit is contained in:
parent
bd1064cb3a
commit
dba45ced36
|
@ -52,6 +52,13 @@ PLATFORM_TO_RELEASE = {
|
|||
"android_x86_64": "android-x86_64",
|
||||
}
|
||||
|
||||
LIB_PREFIX = {
|
||||
"android_arm": "arm-linux-androideabi",
|
||||
"android_arm64": "aarch64-linux-android",
|
||||
"android_x86": "i686-linux-android",
|
||||
"android_x86_64": "x86_64-linux-android",
|
||||
}
|
||||
|
||||
FLATPAK_HTTP_GIT_REMOTE = "https://github.com/flathub/org.kiwix.desktop.git"
|
||||
FLATPAK_GIT_REMOTE = "git@github.com:flathub/org.kiwix.desktop.git"
|
||||
|
||||
|
@ -100,7 +107,17 @@ EXPORT_FILES = {
|
|||
"libkiwix": (
|
||||
INSTALL_DIR,
|
||||
(
|
||||
"lib/libkiwix.so",
|
||||
"lib/{libprefix}/libkiwix.so".format(
|
||||
libprefix=LIB_PREFIX.get(PLATFORM_TARGET, "x86_64-linux-gnu"),
|
||||
),
|
||||
"lib/{libprefix}/libkiwix.so.{version}".format(
|
||||
libprefix=LIB_PREFIX.get(PLATFORM_TARGET, "x86_64-linux-gnu"),
|
||||
version=main_project_versions["libkiwix"]
|
||||
),
|
||||
"lib/{libprefix}/libkiwix.so.{version}".format(
|
||||
libprefix=LIB_PREFIX.get(PLATFORM_TARGET, "x86_64-linux-gnu"),
|
||||
version=main_project_versions["libkiwix"][0]
|
||||
),
|
||||
"include/kiwix/**/*.h"
|
||||
),
|
||||
),
|
||||
|
|
|
@ -102,6 +102,8 @@ class BuildEnv:
|
|||
return os.path.isfile('/etc/debian_version')
|
||||
|
||||
def _detect_libdir(self):
|
||||
if self.platformInfo.libdir is not None:
|
||||
return self.platformInfo.libdir
|
||||
if self._is_debianlike():
|
||||
try:
|
||||
pc = subprocess.Popen(['dpkg-architecture', '-qDEB_HOST_MULTIARCH'],
|
||||
|
|
|
@ -12,6 +12,10 @@ class AndroidPlatformInfo(PlatformInfo):
|
|||
def __str__(self):
|
||||
return "android"
|
||||
|
||||
@property
|
||||
def libdir(self):
|
||||
return 'lib/{}'.format(self.arch_full)
|
||||
|
||||
@property
|
||||
def binaries_name(self):
|
||||
arch_full = self.arch_full
|
||||
|
|
|
@ -24,6 +24,7 @@ class PlatformInfo(metaclass=_MetaPlatform):
|
|||
all_running_platforms = {}
|
||||
toolchain_names = []
|
||||
configure_option = ""
|
||||
libdir = None
|
||||
|
||||
@classmethod
|
||||
def get_platform(cls, name, targets=None):
|
||||
|
|
|
@ -39,7 +39,7 @@ release_versions = {
|
|||
|
||||
# This is the "version" of the whole base_deps_versions dict.
|
||||
# Change this when you change base_deps_versions.
|
||||
base_deps_meta_version = '76'
|
||||
base_deps_meta_version = '77'
|
||||
|
||||
base_deps_versions = {
|
||||
'zlib' : '1.2.12',
|
||||
|
|
Loading…
Reference in New Issue