mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-17 00:44:18 +01:00
android: `make android-tracy` desktop: `cargo run --release --features tracy` connect via `127.0.0.1:8086` if using android then want to use desktop, unset the adb port forwarding: `adb forward --remove tcp:8086` Signed-off-by: kernelkind <kernelkind@gmail.com>
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
.DEFAULT_GOAL := check
|
|
.PHONY: fake
|
|
|
|
ANDROID_DIR := crates/notedeck_chrome/android
|
|
|
|
check:
|
|
cargo check
|
|
|
|
tags: fake
|
|
rusty-tags vi
|
|
|
|
jni: fake
|
|
cargo ndk --target arm64-v8a -o $(ANDROID_DIR)/app/src/main/jniLibs/ build --profile release
|
|
|
|
jni-check: fake
|
|
cargo ndk --target arm64-v8a check
|
|
|
|
apk: jni
|
|
cd $(ANDROID_DIR) && ./gradlew build
|
|
|
|
gradle:
|
|
cd $(ANDROID_DIR) && ./gradlew build
|
|
|
|
push-android-config:
|
|
adb push android-config.json /sdcard/Android/data/com.damus.notedeck/files/android-config.json
|
|
|
|
android: jni
|
|
cd $(ANDROID_DIR) && ./gradlew installDebug
|
|
adb shell am start -n com.damus.notedeck/.MainActivity
|
|
adb logcat -v color -s GameActivity -s RustStdoutStderr -s threaded_app | tee logcat.txt
|
|
|
|
android-tracy: fake
|
|
cargo ndk --target arm64-v8a -o $(ANDROID_DIR)/app/src/main/jniLibs/ build --profile release --features tracy
|
|
cd $(ANDROID_DIR) && ./gradlew installDebug
|
|
adb shell am start -n com.damus.notedeck/.MainActivity
|
|
adb forward tcp:8086 tcp:8086
|
|
adb logcat -v color -s GameActivity -s RustStdoutStderr -s threaded_app | tee logcat.txt
|