blob: dac7e4bca55321de058555241894a391aac4d3ea [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 \
6 BUILD_HOST_DALVIK_JAVA_LIBRARY \
7 BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY \
8 BUILD_HOST_EXECUTABLE \
Dan Willemsen695849e2019-04-17 12:25:09 -07009 BUILD_HOST_JAVA_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -070010 BUILD_HOST_PREBUILT \
Dan Willemsen695849e2019-04-17 12:25:09 -070011 BUILD_JAVA_LIBRARY \
12 BUILD_MULTI_PREBUILT \
Dan Willemsen695849e2019-04-17 12:25:09 -070013 BUILD_NATIVE_TEST \
14 BUILD_NOTICE_FILE \
15 BUILD_PACKAGE \
16 BUILD_PHONY_PACKAGE \
17 BUILD_PREBUILT \
18 BUILD_RRO_PACKAGE \
19 BUILD_SHARED_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -070020 BUILD_STATIC_JAVA_LIBRARY \
21 BUILD_STATIC_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -070022
23# These are BUILD_* variables that will throw a warning when used. This is
24# generally a temporary state until all the devices are marked with the
25# relevant BUILD_BROKEN_USES_BUILD_* variables, then these would move to
26# DEFAULT_ERROR_BUILD_MODULE_TYPES.
27DEFAULT_WARNING_BUILD_MODULE_TYPES :=$= \
Dan Willemsen66d21d42020-01-27 19:26:02 -080028 BUILD_COPY_HEADERS \
Dan Willemsen084c6ef2020-01-24 13:21:21 -080029 BUILD_HOST_SHARED_LIBRARY \
Dan Willemsen22f69e12019-06-14 09:37:42 -070030 BUILD_HOST_STATIC_LIBRARY \
Dan Willemsen695849e2019-04-17 12:25:09 -070031
32# These are BUILD_* variables that are errors to reference, but you can set
33# BUILD_BROKEN_USES_BUILD_* in your BoardConfig.mk in order to turn them back
34# to warnings.
35DEFAULT_ERROR_BUILD_MODULE_TYPES :=$= \
Dan Willemsen753d1ad2019-05-25 17:20:38 -070036 BUILD_AUX_EXECUTABLE \
37 BUILD_AUX_STATIC_LIBRARY \
38 BUILD_HOST_FUZZ_TEST \
39 BUILD_HOST_NATIVE_TEST \
40 BUILD_HOST_STATIC_TEST_LIBRARY \
Dan Willemsen64eaddf2019-05-02 10:50:55 -070041 BUILD_HOST_TEST_CONFIG \
Dan Willemsen753d1ad2019-05-25 17:20:38 -070042 BUILD_NATIVE_BENCHMARK \
43 BUILD_STATIC_TEST_LIBRARY \
Dan Willemsen64eaddf2019-05-02 10:50:55 -070044 BUILD_TARGET_TEST_CONFIG \
Dan Willemsen695849e2019-04-17 12:25:09 -070045
46# These are BUILD_* variables that are always errors to reference.
47# Setting the BUILD_BROKEN_USES_BUILD_* variables is also an error.
48OBSOLETE_BUILD_MODULE_TYPES :=$= \
Dan Willemseneb22c942019-05-08 12:33:12 -070049 BUILD_HOST_SHARED_TEST_LIBRARY \
50 BUILD_SHARED_TEST_LIBRARY \
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