| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 1 | ifeq ($(filter address,$(SANITIZE_HOST)),) | 
 | 2 | NINJA ?= prebuilts/build-tools/$(HOST_PREBUILT_TAG)/bin/ninja | 
 | 3 | else | 
 | 4 | NINJA ?= prebuilts/build-tools/$(HOST_PREBUILT_TAG)/asan/bin/ninja | 
 | 5 | endif | 
 | 6 |  | 
 | 7 | KATI_OUTPUT_PATTERNS := $(OUT_DIR)/build%.ninja $(OUT_DIR)/ninja%.sh | 
 | 8 |  | 
 | 9 | # Modifier goals we don't need to pass to Ninja. | 
| Dan Willemsen | 8a5d597 | 2019-07-29 14:22:05 -0700 | [diff] [blame] | 10 | NINJA_EXCLUDE_GOALS := all | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 11 |  | 
 | 12 | # A list of goals which affect parsing of makefiles and we need to pass to Kati. | 
 | 13 | PARSE_TIME_MAKE_GOALS := \ | 
 | 14 | 	$(PARSE_TIME_MAKE_GOALS) \ | 
 | 15 | 	$(dont_bother_goals) \ | 
 | 16 | 	all \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 17 | 	ECLIPSE-% \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 18 | 	AUX-% \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 19 | 	brillo_tests \ | 
 | 20 | 	btnod \ | 
| Roland Levillain | 209b96e | 2018-03-07 16:24:54 +0000 | [diff] [blame] | 21 | 	build-art% \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 22 | 	build_kernel-nodeps \ | 
| Roland Levillain | 209b96e | 2018-03-07 16:24:54 +0000 | [diff] [blame] | 23 | 	clean-oat% \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 24 | 	continuous_instrumentation_tests \ | 
 | 25 | 	continuous_native_tests \ | 
 | 26 | 	cts \ | 
 | 27 | 	custom_images \ | 
 | 28 | 	deps-license \ | 
 | 29 | 	dicttool_aosp \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 30 | 	dump-products \ | 
 | 31 | 	eng \ | 
 | 32 | 	fusion \ | 
 | 33 | 	oem_image \ | 
 | 34 | 	online-system-api-sdk-docs \ | 
 | 35 | 	pdk \ | 
 | 36 | 	platform \ | 
 | 37 | 	platform-java \ | 
 | 38 | 	product-graph \ | 
 | 39 | 	samplecode \ | 
 | 40 | 	sdk \ | 
 | 41 | 	sdk_addon \ | 
 | 42 | 	sdk_repo \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 43 | 	stnod \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 44 | 	target-files-package \ | 
| Roland Levillain | 209b96e | 2018-03-07 16:24:54 +0000 | [diff] [blame] | 45 | 	test-art% \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 46 | 	user \ | 
 | 47 | 	userdataimage \ | 
 | 48 | 	userdebug \ | 
| Dan Shi | dec1d6e | 2020-03-18 22:40:53 -0700 | [diff] [blame] | 49 | 	vts10 \ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 50 | 	win_sdk \ | 
 | 51 | 	winsdk-tools | 
 | 52 |  | 
| Dan Willemsen | 1ff5fa1 | 2016-11-10 19:41:27 -0800 | [diff] [blame] | 53 | include $(wildcard vendor/*/build/ninja_config.mk) | 
 | 54 |  | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 55 | # Any Android goals that need to be built. | 
| Dan Willemsen | 8939489 | 2019-07-29 22:39:08 -0700 | [diff] [blame] | 56 | ANDROID_GOALS := $(filter-out $(KATI_OUTPUT_PATTERNS),\ | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 57 |     $(sort $(ORIGINAL_MAKECMDGOALS) $(MAKECMDGOALS))) | 
 | 58 | # Goals we need to pass to Ninja. | 
 | 59 | NINJA_GOALS := $(filter-out $(NINJA_EXCLUDE_GOALS), $(ANDROID_GOALS)) | 
| Dan Willemsen | 9bfcbc8 | 2017-05-25 21:25:24 -0700 | [diff] [blame] | 60 | ifndef NINJA_GOALS | 
 | 61 |   NINJA_GOALS := droid | 
 | 62 | endif | 
| Dan Willemsen | 04f53ed | 2016-11-09 17:22:15 -0800 | [diff] [blame] | 63 | # Goals we need to pass to Kati. | 
| Dan Willemsen | 9bfcbc8 | 2017-05-25 21:25:24 -0700 | [diff] [blame] | 64 | KATI_GOALS := $(filter $(PARSE_TIME_MAKE_GOALS), $(ANDROID_GOALS)) |