github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/make/core/ninja_config.mk (about)

     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.
    10  NINJA_EXCLUDE_GOALS := all dist APP-% PRODUCT-%
    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 \
    17  	ECLIPSE-% \
    18  	AUX-% \
    19  	boottarball-nodeps \
    20  	brillo_tests \
    21  	btnod \
    22  	build-art% \
    23  	build_kernel-nodeps \
    24  	clean-oat% \
    25  	continuous_instrumentation_tests \
    26  	continuous_native_tests \
    27  	cts \
    28  	custom_images \
    29  	deps-license \
    30  	dicttool_aosp \
    31  	dist \
    32  	dump-products \
    33  	eng \
    34  	fusion \
    35  	oem_image \
    36  	online-system-api-sdk-docs \
    37  	pdk \
    38  	platform \
    39  	platform-java \
    40  	product-graph \
    41  	samplecode \
    42  	sdk \
    43  	sdk_addon \
    44  	sdk_repo \
    45  	snod \
    46  	stnod \
    47  	systemimage-nodeps \
    48  	systemtarball-nodeps \
    49  	target-files-package \
    50  	test-art% \
    51  	user \
    52  	userdataimage \
    53  	userdebug \
    54  	valgrind-test-art% \
    55  	vts \
    56  	win_sdk \
    57  	winsdk-tools
    58  
    59  include $(wildcard vendor/*/build/ninja_config.mk)
    60  
    61  # Any Android goals that need to be built.
    62  ANDROID_GOALS := $(filter-out $(KATI_OUTPUT_PATTERNS) $(CKATI) $(MAKEPARALLEL),\
    63      $(sort $(ORIGINAL_MAKECMDGOALS) $(MAKECMDGOALS)))
    64  # Goals we need to pass to Ninja.
    65  NINJA_GOALS := $(filter-out $(NINJA_EXCLUDE_GOALS), $(ANDROID_GOALS))
    66  ifndef NINJA_GOALS
    67    NINJA_GOALS := droid
    68  endif
    69  # Goals we need to pass to Kati.
    70  KATI_GOALS := $(filter $(PARSE_TIME_MAKE_GOALS), $(ANDROID_GOALS))