Add all layer libs to apk
authorAitor Camacho <aitor@lunarg.com>
Tue, 7 Mar 2023 19:32:25 +0000 (20:32 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Thu, 30 Mar 2023 18:31:46 +0000 (18:31 +0000)
Apk requires all layer libs to be able to run them

Components: Framework
VK-GL-CTS issue: 4323

Change-Id: Ib5e06cc931ac27131464e003d68fc25f3adbfd52

scripts/android/build_apk.py

index b39d4b7..f721f51 100644 (file)
@@ -769,7 +769,8 @@ class AddNativeLibsToAPK (BuildStep):
                        libFiles.append(libRelPath)
 
                        if config.layers:
-                               layersGlob = os.path.join(config.layers, abi, "libVkLayer_*.so")
+                               # Need to copy everything in the layer folder
+                               layersGlob = os.path.join(config.layers, abi, "*")
                                libVkLayers = glob.glob(layersGlob)
                                for layer in libVkLayers:
                                        layerFilename = os.path.basename(layer)