external/vkquality/README.md
Android Vulkan quality recommendation library imported from:
https://github.com/android/vkquality
Imported revision:
2642a0d5e4cbef4b064bbe6cd3967bce97f67883
This external package contains only the runtime pieces used by Defold:
vkq_library/vkquality/src/main/cpp, excluding upstream tests.vkq_library/vkquality/src/main/java.vkqualitydata.vkq runtime data asset.The upstream Gradle project, Unity sample project, editor tool, and tests are intentionally not
vendored here. The package is built with CMake through scripts/build.py build_external --package=vkquality. The Java annotation dependency on AndroidX was removed from
StartupMitigation.java so the jar can be built with Defold's existing Android SDK classpath.
VkQuality is packaged as libvkquality.so because the upstream Java wrapper loads the native
runtime with System.loadLibrary("vkquality") and exposes the recommendation API through JNI
methods implemented in vkquality_c.cpp. Building it as a static library would require changing
the Java wrapper to load Defold's engine library instead, linking the VkQuality objects into the
engine shared library, and preserving/exporting the JNI symbols from that library.