blob: ed4215e67d8deed5cb5552d83b6979c6632fb28f [file] [log] [blame]
Dan Willemsen695849e2019-04-17 12:25:09 -07001# These module types can still be used without warnings or errors.
2AVAILABLE_BUILD_MODULE_TYPES :=$= \
Dan Willemsen695849e2019-04-17 12:25:09 -07003 BUILD_EXECUTABLE \
4 BUILD_FUZZ_TEST \
5 BUILD_HEADER_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -07006 BUILD_HOST_JAVA_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -07007 BUILD_HOST_PREBUILT \
Dan Willemsen695849e2019-04-17 12:25:09 -07008 BUILD_JAVA_LIBRARY \
9 BUILD_MULTI_PREBUILT \
Dan Willemsen695849e2019-04-17 12:25:09 -070010 BUILD_NATIVE_TEST \
11 BUILD_NOTICE_FILE \
12 BUILD_PACKAGE \
13 BUILD_PHONY_PACKAGE \
14 BUILD_PREBUILT \
15 BUILD_RRO_PACKAGE \
16 BUILD_SHARED_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -070017 BUILD_STATIC_JAVA_LIBRARY \
18 BUILD_STATIC_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -070019
20# These are BUILD_* variables that will throw a warning when used. This is
21# generally a temporary state until all the devices are marked with the
22# relevant BUILD_BROKEN_USES_BUILD_* variables, then these would move to
23# DEFAULT_ERROR_BUILD_MODULE_TYPES.
24DEFAULT_WARNING_BUILD_MODULE_TYPES :=$= \
Dan Willemsen695849e2019-04-17 12:25:09 -070025
26# These are BUILD_* variables that are errors to reference, but you can set
27# BUILD_BROKEN_USES_BUILD_* in your BoardConfig.mk in order to turn them back
28# to warnings.
29DEFAULT_ERROR_BUILD_MODULE_TYPES :=$= \
Dan Willemsen97ec8122020-02-19 18:06:54 -080030 BUILD_COPY_HEADERS \
31 BUILD_HOST_EXECUTABLE \
Dan Willemsen97ec8122020-02-19 18:06:54 -080032 BUILD_HOST_SHARED_LIBRARY \
33 BUILD_HOST_STATIC_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -070034
35# These are BUILD_* variables that are always errors to reference.
36# Setting the BUILD_BROKEN_USES_BUILD_* variables is also an error.
37OBSOLETE_BUILD_MODULE_TYPES :=$= \
Dan Willemsen58634e12020-03-06 18:09:06 -080038 BUILD_AUX_EXECUTABLE \
39 BUILD_AUX_STATIC_LIBRARY \
Colin Crossa9203e62022-04-08 10:55:59 -070040 BUILD_HOST_DALVIK_JAVA_LIBRARY \
41 BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY \
Dan Willemsenefee0692020-03-06 18:27:52 -080042 BUILD_HOST_FUZZ_TEST \
43 BUILD_HOST_NATIVE_TEST \
Dan Willemseneb22c942019-05-08 12:33:12 -070044 BUILD_HOST_SHARED_TEST_LIBRARY \
Dan Willemsenefee0692020-03-06 18:27:52 -080045 BUILD_HOST_STATIC_TEST_LIBRARY \
46 BUILD_HOST_TEST_CONFIG \
47 BUILD_NATIVE_BENCHMARK \
Dan Willemseneb22c942019-05-08 12:33:12 -070048 BUILD_SHARED_TEST_LIBRARY \
Dan Willemsenefee0692020-03-06 18:27:52 -080049 BUILD_STATIC_TEST_LIBRARY \
50 BUILD_TARGET_TEST_CONFIG \
Dan Willemsen695849e2019-04-17 12:25:09 -070051
52$(foreach m,$(OBSOLETE_BUILD_MODULE_TYPES),\
53 $(KATI_obsolete_var $(m),Please convert to Soong) \
54 $(KATI_obsolete_var BUILD_BROKEN_USES_$(m),Please convert to Soong))
55