ui/qt: use new directory layout for qt on android
Now follows ios and other platform directory layouts. Moves from separate android_$arch directories to every library containing a _$arch suffix. e.g. libQt5Core_x86.a in a single directory.
This commit is contained in:
parent
37bade6f87
commit
bcf29ede06
|
@ -406,6 +406,9 @@ class QtBaseDependency(ExternalDependency):
|
||||||
if libfile:
|
if libfile:
|
||||||
libfile = libfile[0]
|
libfile = libfile[0]
|
||||||
else:
|
else:
|
||||||
|
mlog.log("Could not find:", module,
|
||||||
|
self.qtpkgname + module + modules_lib_suffix,
|
||||||
|
'in', libdir)
|
||||||
self.is_found = False
|
self.is_found = False
|
||||||
break
|
break
|
||||||
self.link_args.append(libfile)
|
self.link_args.append(libfile)
|
||||||
|
@ -426,6 +429,17 @@ class QtBaseDependency(ExternalDependency):
|
||||||
if self.env.machines[self.for_machine].is_darwin():
|
if self.env.machines[self.for_machine].is_darwin():
|
||||||
if is_debug:
|
if is_debug:
|
||||||
suffix += '_debug'
|
suffix += '_debug'
|
||||||
|
if mesonlib.version_compare(self.version, '>= 5.14.0'):
|
||||||
|
if self.env.machines[self.for_machine].is_android():
|
||||||
|
cpu_family = self.env.machines[self.for_machine].cpu_family
|
||||||
|
if cpu_family == 'x86':
|
||||||
|
suffix += '_x86'
|
||||||
|
elif cpu_family == 'x86_64':
|
||||||
|
suffix += '_x86_64'
|
||||||
|
elif cpu_family == 'arm':
|
||||||
|
suffix += '_armeabi-v7a'
|
||||||
|
elif cpu_family == 'aarch64':
|
||||||
|
suffix += '_arm64-v8a'
|
||||||
return suffix
|
return suffix
|
||||||
|
|
||||||
def _link_with_qtmain(self, is_debug, libdir):
|
def _link_with_qtmain(self, is_debug, libdir):
|
||||||
|
|
Loading…
Reference in New Issue