Build android lib in the correct directory

This commit is contained in:
Matthieu Gautier
2022-06-14 10:47:12 +02:00
parent bd1064cb3a
commit dba45ced36
5 changed files with 26 additions and 2 deletions

View File

@ -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'],

View File

@ -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

View File

@ -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):

View File

@ -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',