@@ -20,5 +20,25 @@ example, using `pngquant` on all images, to help keep the watch face size to a m
2020## Packaging the watch face
2121
2222To package the watch face, the [ Pack] ( https://github.com/google/pack ) is used. This is a native
23- library, so the pre-builts are provided in ` jniLibs ` . A script is also included for building these
24- fresh, but that should not be necessary.
23+ library, so the pre-builts are provided in ` jniLibs ` .
24+
25+ ## Building native libraries
26+
27+ A script is also included for building these fresh, but that is generally not necessary when
28+ building Androidify.
29+
30+ However, if you do wish to build these, follow these steps in order to run the script:
31+
32+ 1 . [ Install] [ install-ndk ] the Android NDK.
33+ 2 . [ Install] [ install-rust ] Rust and Cargo.
34+ 3 . Make a copy of ` watchface/pack-java/.cargo-example ` as
35+ ` watchface/pack-java/.cargo ` .
36+ 4 . Open ` watchface/pack-java/.cargo/config.toml ` .
37+ 5 . Adjust all the ` linker ` and ` ar ` paths, replacing ` <NDK_PATH> ` with the absolute path to your
38+ Android NDK installation. Note that each linker must support API level 26 and above, to match
39+ the Androidify ` minSdk ` . For example: ` armv7a-linux-androideabi26-clang ` .
40+ 6 . Execute the ` watchface/provide-libraries-to-androidify-project.sh ` script. This will build the native
41+ libraries and copy them to the ` jniLibs ` directory.
42+
43+ [ install-ndk ] : https://developer.android.com/studio/projects/install-ndk#default-version
44+ [ install-rust ] : https://rust-lang.org/tools/install/
0 commit comments