AssetManager: use libandroidfw to read assets straight from the apk file

they can still be put on the filesystem and will be read from there
preferentially, though overriding assets in this way can confuse
some creatively written apps and cause them to crash.
This commit is contained in:
Mis012
2024-05-25 20:43:33 +02:00
parent dd56a2d551
commit 4374ac01ad
8 changed files with 185 additions and 345 deletions

View File

@@ -63,6 +63,9 @@ libandroid_so = shared_library('android', [
soversion: 0,
dependencies: [
dependency('gtk4'), dependency('jni'), dependency('vulkan'), dependency('openxr').partial_dependency(includes: true)
],
c_args: [
'-D_LARGEFILE64_SOURCE',
])
libtranslationlayer_so = shared_library('translation_layer_main', [
@@ -142,6 +145,9 @@ libtranslationlayer_so = shared_library('translation_layer_main', [
link_with: [ libandroid_so ],
link_args: [
'-lasound'
],
c_args: [
'-D_LARGEFILE64_SOURCE',
])
executable('android-translation-layer', [