blob: 9d57527d953e8ba52459b1f6d31e94a5ae97ade4 [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 :=$= \
3 BUILD_AUX_EXECUTABLE \
4 BUILD_AUX_STATIC_LIBRARY \
5 BUILD_COPY_HEADERS \
6 BUILD_EXECUTABLE \
7 BUILD_FUZZ_TEST \
8 BUILD_HEADER_LIBRARY \
9 BUILD_HOST_DALVIK_JAVA_LIBRARY \
10 BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY \
11 BUILD_HOST_EXECUTABLE \
12 BUILD_HOST_FUZZ_TEST \
13 BUILD_HOST_JAVA_LIBRARY \
14 BUILD_HOST_NATIVE_TEST \
15 BUILD_HOST_PREBUILT \
16 BUILD_HOST_SHARED_LIBRARY \
17 BUILD_HOST_SHARED_TEST_LIBRARY \
18 BUILD_HOST_STATIC_LIBRARY \
19 BUILD_HOST_STATIC_TEST_LIBRARY \
20 BUILD_JAVA_LIBRARY \
21 BUILD_MULTI_PREBUILT \
22 BUILD_NATIVE_BENCHMARK \
23 BUILD_NATIVE_TEST \
24 BUILD_NOTICE_FILE \
25 BUILD_PACKAGE \
26 BUILD_PHONY_PACKAGE \
27 BUILD_PREBUILT \
28 BUILD_RRO_PACKAGE \
29 BUILD_SHARED_LIBRARY \
30 BUILD_SHARED_TEST_LIBRARY \
31 BUILD_STATIC_JAVA_LIBRARY \
32 BUILD_STATIC_LIBRARY \
33 BUILD_STATIC_TEST_LIBRARY \
34
35# These are BUILD_* variables that will throw a warning when used. This is
36# generally a temporary state until all the devices are marked with the
37# relevant BUILD_BROKEN_USES_BUILD_* variables, then these would move to
38# DEFAULT_ERROR_BUILD_MODULE_TYPES.
39DEFAULT_WARNING_BUILD_MODULE_TYPES :=$= \
Dan Willemsen695849e2019-04-17 12:25:09 -070040
41# These are BUILD_* variables that are errors to reference, but you can set
42# BUILD_BROKEN_USES_BUILD_* in your BoardConfig.mk in order to turn them back
43# to warnings.
44DEFAULT_ERROR_BUILD_MODULE_TYPES :=$= \
Dan Willemsen64eaddf2019-05-02 10:50:55 -070045 BUILD_HOST_TEST_CONFIG \
46 BUILD_TARGET_TEST_CONFIG \
Dan Willemsen695849e2019-04-17 12:25:09 -070047
48# These are BUILD_* variables that are always errors to reference.
49# Setting the BUILD_BROKEN_USES_BUILD_* variables is also an error.
50OBSOLETE_BUILD_MODULE_TYPES :=$= \
51
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