2019-04-30 15:46:21 +03:00
|
|
|
build-apk:
|
2019-06-05 15:02:12 +03:00
|
|
|
./gradlew glean-core:build
|
2019-04-30 15:46:21 +03:00
|
|
|
./gradlew glean-sample-app:build
|
|
|
|
.PHONY: build-apk
|
|
|
|
|
|
|
|
install:
|
2019-05-08 11:38:18 +03:00
|
|
|
$(ANDROID_HOME)/platform-tools/adb install -r ./samples/android/app/build/outputs/apk/debug/glean-sample-app-debug.apk
|
2019-04-30 15:46:21 +03:00
|
|
|
.PHONY: install
|
|
|
|
|
|
|
|
emulator:
|
2019-05-08 11:38:18 +03:00
|
|
|
$(ANDROID_HOME)/emulator/emulator -avd Nexus_5X_API_P -netdelay none -netspeed full
|
2019-04-30 15:46:21 +03:00
|
|
|
.PHONY: install
|
|
|
|
|
2019-05-23 18:11:30 +03:00
|
|
|
clippy: fmt
|
2019-05-20 17:17:24 +03:00
|
|
|
cargo clippy --all --all-targets --all-features -- -D warnings
|
2019-05-23 18:11:30 +03:00
|
|
|
.PHONY: lint
|
|
|
|
|
|
|
|
ktlint:
|
2019-05-14 17:54:33 +03:00
|
|
|
./gradlew ktlint detekt
|
2019-04-30 15:46:21 +03:00
|
|
|
.PHONY: lint
|
|
|
|
|
2019-05-23 18:11:30 +03:00
|
|
|
lint: clippy ktlint
|
|
|
|
.PHONY: lint
|
|
|
|
|
2019-04-30 15:46:21 +03:00
|
|
|
fmt:
|
|
|
|
cargo fmt --all
|
|
|
|
.PHONY: fmt
|
|
|
|
|
|
|
|
test:
|
2019-05-16 16:06:34 +03:00
|
|
|
cargo test --all
|
2019-05-09 14:15:16 +03:00
|
|
|
./gradlew test
|
2019-04-30 15:46:21 +03:00
|
|
|
.PHONY: test
|
2019-05-12 17:21:33 +03:00
|
|
|
|
|
|
|
cbindgen:
|
|
|
|
cbindgen glean-core/ffi --lockfile Cargo.lock -o glean-core/ffi/examples/glean.h
|
|
|
|
.PHONY: cbindgen
|
2019-06-05 15:02:12 +03:00
|
|
|
|
|
|
|
docs:
|
|
|
|
bin/build-rust-docs.sh
|
|
|
|
./gradlew docs
|
|
|
|
.PHONY: docs
|
|
|
|
|
|
|
|
linkcheck: docs
|
|
|
|
# Requires https://wummel.github.io/linkchecker/
|
|
|
|
linkchecker --ignore-url javadoc --ignore-url docs/glean_core build/docs
|
|
|
|
.PHONY: linkcheck
|