ninja.exe
to PATH
environment variable
ANDROID_NDK
- path to NDK in Android Studio (e.g. C:/Users/Alex/AppData/Local/Android/Sdk/ndk/27.1.12297006
)
- Copy the build script to the library folder (e.g.
build_lib_png.ps1
to thelibpng
folder) - Replace the necessary variables in the copied script (e.g.
$libPngBaseDir
,$libFreetypeBaseDir
) - If needed - change the necessary options in the cmake arguments (where
cmake -D...
) - Run the script
> ./build_lib_png.ps1