]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
android : update CMakeLists.txt to use FetchContent for ggml (#3268)
authorDaniel Bevenius <redacted>
Thu, 19 Jun 2025 14:06:42 +0000 (16:06 +0200)
committerGitHub <redacted>
Thu, 19 Jun 2025 14:06:42 +0000 (16:06 +0200)
commit3e65f518ddf840b13b74794158aa95a2c8aa30cc
treeeaf53aa6f19e49e8de47936d2403433b645a5ae4
parent17bece1885047dcf338c557a49f393677e265a91
android : update CMakeLists.txt to use FetchContent for ggml (#3268)

* android : update CMakeLists.txt to use FetchContent for ggml

This commit updates the CMakeLists.txt file for the Android Whisper
example to use FetchContent for managing the ggml library.

The motivation for this change is avoid having to make manual changes to
the CMakeLists.txt file after syncing the ggml library.

I've built and run the example locally to verify that it works as
expected.

Refs: https://github.com/ggml-org/whisper.cpp/pull/3265#issuecomment-2986715717

* android.java : update cmake to use FetchContent for ggml

This commit updates the CMake configuration for the Android Java example
to use `FetchContent` for including the `ggml` library. Do be able to
use FetchContent we also update the `compileSdkVersion` and
`targetSdkVersion` to 31, and the `buildToolsVersion` to '30.0.3'.
This also required a an update to the Gradle plugin version to 7.4.0.

The motivation for this change is avoid having to make manual changes to
the CMakeLists.txt file after syncing the ggml library.
examples/whisper.android.java/app/build.gradle
examples/whisper.android.java/app/src/main/AndroidManifest.xml
examples/whisper.android.java/app/src/main/java/com/whispercpp/java/whisper/WhisperLib.java
examples/whisper.android.java/app/src/main/jni/whisper/CMakeLists.txt
examples/whisper.android.java/build.gradle
examples/whisper.android.java/gradle/wrapper/gradle-wrapper.properties
examples/whisper.android/lib/src/main/jni/whisper/CMakeLists.txt