The libpng
static library for Android.
- Android SDK 19+
- Android Studio 4.1.+
- Add repositorie.
allprojects {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}
- Add dependencie.
dependencies {
// ...
implementation "com.github.LimeVista:libpng-android-prefab:${ver}"
}
- Enable prefab
android {
// ...
buildFeatures {
prefab true
}
}
- Change
CMakeLists.txt
# ...
find_package(libpng REQUIRED CONFIG)
# ...
target_link_libraries(your-lib
libpng::png_static
${ZLIB_LIBRARY}
z
# ...
)