Skip to content

LimeVista/libpng-android-prefab

Repository files navigation

libpng-android-prefab

English | 简体中文

The libpng static library for Android.

Upstream

libpng

Environment

  • Android SDK 19+
  • Android Studio 4.1.+

Usage

  • 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
        # ...
        )