-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
62 lines (45 loc) · 1.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
MBGL_ANDROID_PLUGINS += traffic;plugin-traffic
MBGL_ANDROID_PLUGINS += locationlayer;plugin-locationlayer
MBGL_ANDROID_PLUGINS += building;plugin-building
MBGL_ANDROID_PLUGINS += offline;plugin-offline
MBGL_ANDROID_PLUGINS += places;plugin-places
MBGL_ANDROID_PLUGINS += localization;plugin-localization
MBGL_ANDROID_PLUGINS += scalebar;plugin-scalebar
checkstyle:
./gradlew checkstyle && ./gradlew ktlintCheck
kotlin-lint:
./gradlew ktlintCheck
test:
./gradlew test --info
build-release:
./gradlew assembleRelease
javadoc:
# Android modules
# Output is ./mapbox/*/build/docs/javadoc/release
./gradlew javadocrelease
publish:
./gradlew publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
generate-sanity-test:
npm install && node scripts/generate-activity-test.js
generate-annotation-code:
npm install && node plugin-annotation/scripts/code-gen.js
#
# individual Make commands
#
define ANDROID_RULES
test-$1:
./gradlew :$2:test
build-release-$1:
./gradlew :$2:assembleRelease
javadoc-$1:
# Android modules
# Output is ./mapbox/*/build/docs/javadoc/release
./gradlew :$2:javadocrelease
endef
# Explodes the arguments into individual variables
define ANDROID_RULES_INVOKER
$(call ANDROID_RULES,$(word 1,$1),$(word 2,$1))
endef
$(foreach plugin,$(MBGL_ANDROID_PLUGINS),$(eval $(call ANDROID_RULES_INVOKER,$(subst ;, ,$(plugin)))))
clean:
./gradlew clean