glean/Makefile

31 строка
638 B
Makefile
Исходник Обычный вид История

build-apk:
./gradlew glean-core:build
./gradlew glean-sample-app:build
.PHONY: build-apk
install:
$(ANDROID_HOME)/platform-tools/adb install -r ./samples/android/app/build/outputs/apk/debug/glean-sample-app-debug.apk
.PHONY: install
emulator:
$(ANDROID_HOME)/emulator/emulator -avd Nexus_5X_API_P -netdelay none -netspeed full
.PHONY: install
lint: fmt
cargo clippy --all
./gradlew ktlint detekt
.PHONY: lint
fmt:
cargo fmt --all
.PHONY: fmt
test:
RUST_TEST_THREADS=1 cargo test --all
./gradlew test
.PHONY: test
cbindgen:
cbindgen glean-core/ffi --lockfile Cargo.lock -o glean-core/ffi/examples/glean.h
.PHONY: cbindgen