Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 1 | # These module types can still be used without warnings or errors. |
| 2 | AVAILABLE_BUILD_MODULE_TYPES :=$= \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 3 | BUILD_EXECUTABLE \ |
| 4 | BUILD_FUZZ_TEST \ |
| 5 | BUILD_HEADER_LIBRARY \ |
| 6 | BUILD_HOST_DALVIK_JAVA_LIBRARY \ |
| 7 | BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 8 | BUILD_HOST_JAVA_LIBRARY \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 9 | BUILD_HOST_PREBUILT \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 10 | BUILD_JAVA_LIBRARY \ |
| 11 | BUILD_MULTI_PREBUILT \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 12 | BUILD_NATIVE_TEST \ |
| 13 | BUILD_NOTICE_FILE \ |
| 14 | BUILD_PACKAGE \ |
| 15 | BUILD_PHONY_PACKAGE \ |
| 16 | BUILD_PREBUILT \ |
| 17 | BUILD_RRO_PACKAGE \ |
| 18 | BUILD_SHARED_LIBRARY \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 19 | BUILD_STATIC_JAVA_LIBRARY \ |
| 20 | BUILD_STATIC_LIBRARY \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 21 | |
| 22 | # These are BUILD_* variables that will throw a warning when used. This is |
| 23 | # generally a temporary state until all the devices are marked with the |
| 24 | # relevant BUILD_BROKEN_USES_BUILD_* variables, then these would move to |
| 25 | # DEFAULT_ERROR_BUILD_MODULE_TYPES. |
| 26 | DEFAULT_WARNING_BUILD_MODULE_TYPES :=$= \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 27 | |
| 28 | # These are BUILD_* variables that are errors to reference, but you can set |
| 29 | # BUILD_BROKEN_USES_BUILD_* in your BoardConfig.mk in order to turn them back |
| 30 | # to warnings. |
| 31 | DEFAULT_ERROR_BUILD_MODULE_TYPES :=$= \ |
Dan Willemsen | 97ec812 | 2020-02-19 18:06:54 -0800 | [diff] [blame] | 32 | BUILD_COPY_HEADERS \ |
| 33 | BUILD_HOST_EXECUTABLE \ |
Dan Willemsen | 97ec812 | 2020-02-19 18:06:54 -0800 | [diff] [blame] | 34 | BUILD_HOST_SHARED_LIBRARY \ |
| 35 | BUILD_HOST_STATIC_LIBRARY \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 36 | |
| 37 | # These are BUILD_* variables that are always errors to reference. |
| 38 | # Setting the BUILD_BROKEN_USES_BUILD_* variables is also an error. |
| 39 | OBSOLETE_BUILD_MODULE_TYPES :=$= \ |
Dan Willemsen | 58634e1 | 2020-03-06 18:09:06 -0800 | [diff] [blame] | 40 | BUILD_AUX_EXECUTABLE \ |
| 41 | BUILD_AUX_STATIC_LIBRARY \ |
Dan Willemsen | efee069 | 2020-03-06 18:27:52 -0800 | [diff] [blame] | 42 | BUILD_HOST_FUZZ_TEST \ |
| 43 | BUILD_HOST_NATIVE_TEST \ |
Dan Willemsen | eb22c94 | 2019-05-08 12:33:12 -0700 | [diff] [blame] | 44 | BUILD_HOST_SHARED_TEST_LIBRARY \ |
Dan Willemsen | efee069 | 2020-03-06 18:27:52 -0800 | [diff] [blame] | 45 | BUILD_HOST_STATIC_TEST_LIBRARY \ |
| 46 | BUILD_HOST_TEST_CONFIG \ |
| 47 | BUILD_NATIVE_BENCHMARK \ |
Dan Willemsen | eb22c94 | 2019-05-08 12:33:12 -0700 | [diff] [blame] | 48 | BUILD_SHARED_TEST_LIBRARY \ |
Dan Willemsen | efee069 | 2020-03-06 18:27:52 -0800 | [diff] [blame] | 49 | BUILD_STATIC_TEST_LIBRARY \ |
| 50 | BUILD_TARGET_TEST_CONFIG \ |
Dan Willemsen | 695849e | 2019-04-17 12:25:09 -0700 | [diff] [blame] | 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 | |