1 # Common to host and target Java modules. 2 3 ########################################################### 4 ## Java version 5 ########################################################### 6 # Use the LOCAL_JAVA_LANGUAGE_VERSION if it is set, otherwise 7 # use one based on the LOCAL_SDK_VERSION. If it is < 24 8 # pass "1.7" to the tools, if it is unset, >= 24 or "current" 9 # pass "1.8". 10 # 11 # The LOCAL_SDK_VERSION behavior is to ensure that, by default, 12 # code that is expected to run on older releases of Android 13 # does not use any 1.8 language features that are not supported 14 # on earlier runtimes (like default / static interface methods). 15 # Modules can override this logic by specifying 16 # LOCAL_JAVA_LANGUAGE_VERSION explicitly. 17 ifeq (,$(LOCAL_JAVA_LANGUAGE_VERSION)) 18 private_sdk_versions_without_any_java_18_support := 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 19 ifneq (,$(filter $(LOCAL_SDK_VERSION), $(private_sdk_versions_without_any_java_18_support))) 20 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 21 else 22 LOCAL_JAVA_LANGUAGE_VERSION := 1.8 23 endif 24 endif 25 LOCAL_JAVACFLAGS += -source $(LOCAL_JAVA_LANGUAGE_VERSION) -target $(LOCAL_JAVA_LANGUAGE_VERSION) 26 27 ########################################################### 28 ## .proto files: Compile proto files to .java 29 ########################################################### 30 proto_sources := $(filter %.proto,$(LOCAL_SRC_FILES)) 31 # Because names of the .java files compiled from .proto files are unknown until the 32 # .proto files are compiled, we use a timestamp file as depedency. 33 proto_java_sources_file_stamp := 34 ifneq ($(proto_sources),) 35 proto_sources_fullpath := $(addprefix $(LOCAL_PATH)/, $(proto_sources)) 36 37 proto_java_intemediate_dir := $(intermediates.COMMON)/proto 38 proto_java_sources_file_stamp := $(proto_java_intemediate_dir)/Proto.stamp 39 proto_java_sources_dir := $(proto_java_intemediate_dir)/src 40 41 $(proto_java_sources_file_stamp): PRIVATE_PROTO_INCLUDES := $(TOP) 42 $(proto_java_sources_file_stamp): PRIVATE_PROTO_SRC_FILES := $(proto_sources_fullpath) 43 $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_DIR := $(proto_java_sources_dir) 44 ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),micro) 45 $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --javamicro_out 46 else 47 ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),nano) 48 $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --javanano_out 49 else 50 ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),stream) 51 $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --javastream_out 52 $(proto_java_sources_file_stamp): $(HOST_OUT_EXECUTABLES)/protoc-gen-javastream 53 else 54 $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --java_out 55 endif 56 endif 57 endif 58 $(proto_java_sources_file_stamp): PRIVATE_PROTOC_FLAGS := $(LOCAL_PROTOC_FLAGS) 59 $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_PARAMS := $(LOCAL_PROTO_JAVA_OUTPUT_PARAMS) 60 $(proto_java_sources_file_stamp) : $(proto_sources_fullpath) $(PROTOC) 61 $(call transform-proto-to-java) 62 63 #TODO: protoc should output the dependencies introduced by imports. 64 65 ALL_MODULES.$(my_register_name).PROTO_FILES := $(proto_sources_fullpath) 66 endif # proto_sources 67 68 ######################################### 69 ## Java resources 70 71 # Look for resource files in any specified directories. 72 # Non-java and non-doc files will be picked up as resources 73 # and included in the output jar file. 74 java_resource_file_groups := 75 76 LOCAL_JAVA_RESOURCE_DIRS := $(strip $(LOCAL_JAVA_RESOURCE_DIRS)) 77 ifneq ($(LOCAL_JAVA_RESOURCE_DIRS),) 78 # This makes a list of words like 79 # <dir1>::<file1>:<file2> <dir2>::<file1> <dir3>: 80 # where each of the files is relative to the directory it's grouped with. 81 # Directories that don't contain any resource files will result in groups 82 # that end with a colon, and they are stripped out in the next step. 83 java_resource_file_groups += \ 84 $(foreach dir,$(LOCAL_JAVA_RESOURCE_DIRS), \ 85 $(subst $(space),:,$(strip \ 86 $(LOCAL_PATH)/$(dir): \ 87 $(patsubst ./%,%,$(sort $(shell cd $(LOCAL_PATH)/$(dir) && \ 88 find . \ 89 -type d -a -name ".svn" -prune -o \ 90 -type f \ 91 -a \! -name "*.java" \ 92 -a \! -name "package.html" \ 93 -a \! -name "overview.html" \ 94 -a \! -name ".*.swp" \ 95 -a \! -name ".DS_Store" \ 96 -a \! -name "*~" \ 97 -print \ 98 ))) \ 99 )) \ 100 ) 101 java_resource_file_groups := $(filter-out %:,$(java_resource_file_groups)) 102 endif # LOCAL_JAVA_RESOURCE_DIRS 103 104 LOCAL_JAVA_RESOURCE_FILES := $(strip $(LOCAL_JAVA_RESOURCE_FILES)) 105 ifneq ($(LOCAL_JAVA_RESOURCE_FILES),) 106 java_resource_file_groups += \ 107 $(foreach f,$(LOCAL_JAVA_RESOURCE_FILES), \ 108 $(patsubst %/,%,$(dir $(f)))::$(notdir $(f)) \ 109 ) 110 endif # LOCAL_JAVA_RESOURCE_FILES 111 112 ifdef java_resource_file_groups 113 # The full paths to all resources, used for dependencies. 114 java_resource_sources := \ 115 $(foreach group,$(java_resource_file_groups), \ 116 $(addprefix $(word 1,$(subst :,$(space),$(group)))/, \ 117 $(wordlist 2,9999,$(subst :,$(space),$(group))) \ 118 ) \ 119 ) 120 # The arguments to jar that will include these files in a jar file. 121 # Quote the file name to handle special characters (such as #) correctly. 122 extra_jar_args := \ 123 $(foreach group,$(java_resource_file_groups), \ 124 $(addprefix -C "$(word 1,$(subst :,$(space),$(group)))" , \ 125 $(foreach w, $(wordlist 2,9999,$(subst :,$(space),$(group))), "$(w)" ) \ 126 ) \ 127 ) 128 java_resource_file_groups := 129 else 130 java_resource_sources := 131 extra_jar_args := 132 endif # java_resource_file_groups 133 134 ##################################### 135 ## Warn if there is unrecognized file in LOCAL_SRC_FILES. 136 my_unknown_src_files := $(filter-out \ 137 %.java %.aidl %.proto %.logtags %.fs %.rs, \ 138 $(LOCAL_SRC_FILES) $(LOCAL_INTERMEDIATE_SOURCES) $(LOCAL_GENERATED_SOURCES)) 139 ifneq ($(my_unknown_src_files),) 140 $(warning $(LOCAL_MODULE_MAKEFILE): $(LOCAL_MODULE): Unused source files: $(my_unknown_src_files)) 141 endif 142 143 ###################################### 144 ## PRIVATE java vars 145 # LOCAL_SOURCE_FILES_ALL_GENERATED is set only if the module does not have static source files, 146 # but generated source files in its LOCAL_INTERMEDIATE_SOURCE_DIR. 147 # You have to set up the dependency in some other way. 148 need_compile_java := $(strip $(all_java_sources)$(all_res_assets)$(java_resource_sources))$(LOCAL_STATIC_JAVA_LIBRARIES)$(filter true,$(LOCAL_SOURCE_FILES_ALL_GENERATED)) 149 ifdef need_compile_java 150 151 annotation_processor_flags := 152 annotation_processor_deps := 153 154 ifdef LOCAL_ANNOTATION_PROCESSORS 155 annotation_processor_jars := $(call java-lib-deps,$(LOCAL_ANNOTATION_PROCESSORS),true) 156 annotation_processor_flags += -processorpath $(call normalize-path-list,$(annotation_processor_jars)) 157 annotation_processor_deps += $(annotation_processor_jars) 158 159 # b/25860419: annotation processors must be explicitly specified for grok 160 annotation_processor_flags += $(foreach class,$(LOCAL_ANNOTATION_PROCESSOR_CLASSES),-processor $(class)) 161 162 annotation_processor_jars := 163 endif 164 165 full_static_java_libs := \ 166 $(foreach lib,$(LOCAL_STATIC_JAVA_LIBRARIES), \ 167 $(call intermediates-dir-for, \ 168 JAVA_LIBRARIES,$(lib),$(LOCAL_IS_HOST_MODULE),COMMON)/classes.jar) 169 170 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_STATIC_JAVA_LIBRARIES := $(full_static_java_libs) 171 172 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_RESOURCE_DIR := $(LOCAL_RESOURCE_DIR) 173 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_ASSET_DIR := $(LOCAL_ASSET_DIR) 174 175 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_CLASS_INTERMEDIATES_DIR := $(intermediates.COMMON)/classes 176 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_ANNO_INTERMEDIATES_DIR := $(intermediates.COMMON)/anno 177 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_SOURCE_INTERMEDIATES_DIR := $(intermediates.COMMON)/src 178 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_HAS_PROTO_SOURCES := $(if $(proto_sources),true) 179 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_PROTO_SOURCE_INTERMEDIATES_DIR := $(intermediates.COMMON)/proto 180 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_HAS_RS_SOURCES := 181 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JAVA_SOURCES := $(all_java_sources) 182 183 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_RMTYPEDEFS := $(LOCAL_RMTYPEDEFS) 184 185 # full_java_libs: The list of files that should be used as the classpath. 186 # Using this list as a dependency list WILL NOT WORK. 187 # full_java_lib_deps: Should be specified as a prerequisite of this module 188 # to guarantee that the files in full_java_libs will 189 # be up-to-date. 190 ifndef LOCAL_IS_HOST_MODULE 191 ifeq ($(LOCAL_SDK_VERSION),) 192 ifeq ($(LOCAL_NO_STANDARD_LIBRARIES),true) 193 # No bootclasspath. But we still need "" to prevent javac from using default host bootclasspath. 194 my_bootclasspath := "" 195 else # LOCAL_NO_STANDARD_LIBRARIES 196 my_bootclasspath := $(call java-lib-files,core-oj):$(call java-lib-files,core-libart) 197 endif # LOCAL_NO_STANDARD_LIBRARIES 198 else 199 ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),current) 200 # LOCAL_SDK_VERSION is current and no TARGET_BUILD_APPS. 201 my_bootclasspath := $(call java-lib-files,android_stubs_current) 202 else ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),system_current) 203 my_bootclasspath := $(call java-lib-files,android_system_stubs_current) 204 else ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),test_current) 205 my_bootclasspath := $(call java-lib-files,android_test_stubs_current) 206 else 207 my_bootclasspath := $(call java-lib-files,sdk_v$(LOCAL_SDK_VERSION)) 208 endif # current, system_current, or test_current 209 endif # LOCAL_SDK_VERSION 210 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := -bootclasspath $(my_bootclasspath) 211 212 # In order to compile lambda code javac requires various invokedynamic- 213 # related classes to be present. This change adds stubs needed for 214 # javac to compile lambdas. 215 my_additional_javac_libs := 216 ifndef TARGET_BUILD_APPS 217 # TODO: support to build lamdbas using javac in unbundled build. 218 # We may need to check in a prebuilt core-lambda-stubs to prebuilts/sdk. 219 ifneq ($(LOCAL_NO_STANDARD_LIBRARIES),true) 220 my_additional_javac_libs := core-lambda-stubs 221 endif 222 endif 223 224 full_shared_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES) $(my_additional_javac_libs),$(LOCAL_IS_HOST_MODULE)) 225 full_java_lib_deps := $(call java-lib-deps,$(LOCAL_JAVA_LIBRARIES) $(my_additional_javac_libs),$(LOCAL_IS_HOST_MODULE)) 226 full_java_lib_deps := $(addsuffix .toc, $(full_java_lib_deps)) 227 228 else # LOCAL_IS_HOST_MODULE 229 230 ifeq ($(USE_CORE_LIB_BOOTCLASSPATH),true) 231 ifeq ($(LOCAL_NO_STANDARD_LIBRARIES),true) 232 my_bootclasspath := "" 233 else 234 my_bootclasspath := $(call normalize-path-list,$(call java-lib-files,core-oj-hostdex core-libart-hostdex,true)) 235 endif 236 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := -bootclasspath $(my_bootclasspath) 237 238 full_shared_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES),true) 239 full_java_lib_deps := $(full_shared_java_libs) 240 else # !USE_CORE_LIB_BOOTCLASSPATH 241 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := 242 243 full_shared_java_libs := $(addprefix $(HOST_OUT_JAVA_LIBRARIES)/,\ 244 $(addsuffix $(COMMON_JAVA_PACKAGE_SUFFIX),$(LOCAL_JAVA_LIBRARIES))) 245 full_java_lib_deps := $(full_shared_java_libs) 246 endif # USE_CORE_LIB_BOOTCLASSPATH 247 endif # !LOCAL_IS_HOST_MODULE 248 249 full_java_libs := $(full_shared_java_libs) $(full_static_java_libs) $(LOCAL_CLASSPATH) 250 full_java_lib_deps := $(full_java_lib_deps) $(full_static_java_libs) $(LOCAL_CLASSPATH) 251 252 ifndef LOCAL_IS_HOST_MODULE 253 # This is set by packages that are linking to other packages that export 254 # shared libraries, allowing them to make use of the code in the linked apk. 255 apk_libraries := $(sort $(LOCAL_APK_LIBRARIES) $(LOCAL_RES_LIBRARIES)) 256 ifneq ($(apk_libraries),) 257 link_apk_libraries := \ 258 $(foreach lib,$(apk_libraries), \ 259 $(call intermediates-dir-for, \ 260 APPS,$(lib),,COMMON)/classes-pre-proguard.jar) 261 262 # link against the jar with full original names (before proguard processing). 263 full_shared_java_libs += $(link_apk_libraries) 264 full_java_libs += $(link_apk_libraries) 265 full_java_lib_deps += $(link_apk_libraries) 266 endif 267 268 # This is set by packages that contain instrumentation, allowing them to 269 # link against the package they are instrumenting. Currently only one such 270 # package is allowed. 271 LOCAL_INSTRUMENTATION_FOR := $(strip $(LOCAL_INSTRUMENTATION_FOR)) 272 ifdef LOCAL_INSTRUMENTATION_FOR 273 ifneq ($(words $(LOCAL_INSTRUMENTATION_FOR)),1) 274 $(error \ 275 $(LOCAL_PATH): Multiple LOCAL_INSTRUMENTATION_FOR members defined) 276 endif 277 278 link_instr_intermediates_dir.COMMON := $(call intermediates-dir-for, \ 279 APPS,$(LOCAL_INSTRUMENTATION_FOR),,COMMON) 280 # link against the jar with full original names (before proguard processing). 281 link_instr_classes_jar := $(link_instr_intermediates_dir.COMMON)/classes-pre-proguard.jar 282 full_java_libs += $(link_instr_classes_jar) 283 full_java_lib_deps += $(link_instr_classes_jar) 284 endif # LOCAL_INSTRUMENTATION_FOR 285 endif # LOCAL_IS_HOST_MODULE 286 287 endif # need_compile_java 288 289 # We may want to add jar manifest or jar resource files even if there is no java code at all. 290 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS := $(extra_jar_args) 291 jar_manifest_file := 292 ifneq ($(strip $(LOCAL_JAR_MANIFEST)),) 293 jar_manifest_file := $(LOCAL_PATH)/$(LOCAL_JAR_MANIFEST) 294 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JAR_MANIFEST := $(jar_manifest_file) 295 else 296 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JAR_MANIFEST := 297 endif 298 299 ########################################################## 300 ifndef LOCAL_IS_HOST_MODULE 301 ## AAPT Flags 302 # aapt doesn't accept multiple --extra-packages flags. 303 # We have to collapse them into a single --extra-packages flag here. 304 LOCAL_AAPT_FLAGS := $(strip $(LOCAL_AAPT_FLAGS)) 305 ifdef LOCAL_AAPT_FLAGS 306 ifeq ($(filter 0 1,$(words $(filter --extra-packages,$(LOCAL_AAPT_FLAGS)))),) 307 aapt_flags := $(subst --extra-packages$(space),--extra-packages@,$(LOCAL_AAPT_FLAGS)) 308 aapt_flags_extra_packages := $(patsubst --extra-packages@%,%,$(filter --extra-packages@%,$(aapt_flags))) 309 aapt_flags_extra_packages := $(sort $(subst :,$(space),$(aapt_flags_extra_packages))) 310 LOCAL_AAPT_FLAGS := $(filter-out --extra-packages@%,$(aapt_flags)) \ 311 --extra-packages $(subst $(space),:,$(aapt_flags_extra_packages)) 312 aapt_flags_extra_packages := 313 aapt_flags := 314 endif 315 endif 316 317 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) $(PRODUCT_AAPT_FLAGS) 318 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_TARGET_AAPT_CHARACTERISTICS := $(TARGET_AAPT_CHARACTERISTICS) 319 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_MANIFEST_PACKAGE_NAME := $(LOCAL_MANIFEST_PACKAGE_NAME) 320 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_MANIFEST_INSTRUMENTATION_FOR := $(LOCAL_MANIFEST_INSTRUMENTATION_FOR) 321 322 ifdef aidl_sources 323 ALL_MODULES.$(my_register_name).AIDL_FILES := $(aidl_sources) 324 endif 325 ifdef renderscript_sources 326 ALL_MODULES.$(my_register_name).RS_FILES := $(renderscript_sources_fullpath) 327 endif 328 endif # !LOCAL_IS_HOST_MODULE 329 330 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_ALL_JAVA_LIBRARIES := $(full_java_libs) 331 332 ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR := \ 333 $(ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR) $(LOCAL_INTERMEDIATE_SOURCE_DIR) 334 335 ########################################################### 336 # JACK 337 ########################################################### 338 ifdef LOCAL_JACK_ENABLED 339 ifdef need_compile_java 340 341 LOCAL_JACK_FLAGS += -D jack.java.source.version=$(LOCAL_JAVA_LANGUAGE_VERSION) 342 343 full_static_jack_libs := \ 344 $(foreach lib,$(LOCAL_STATIC_JAVA_LIBRARIES), \ 345 $(call intermediates-dir-for, \ 346 JAVA_LIBRARIES,$(lib),$(LOCAL_IS_HOST_MODULE),COMMON)/classes.jack) 347 348 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_STATIC_JACK_LIBRARIES := $(full_static_jack_libs) 349 350 full_shared_jack_libs := $(call jack-lib-files,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) 351 full_jack_deps := $(full_shared_jack_libs) 352 353 ifndef LOCAL_IS_HOST_MODULE 354 # Turn off .toc optimization for apps build as we cannot build dexdump. 355 ifeq (,$(TARGET_BUILD_APPS)) 356 full_jack_deps := $(patsubst %.jack, %.dex.toc, $(full_jack_deps)) 357 endif 358 endif # !LOCAL_IS_HOST_MODULE 359 full_shared_jack_libs += $(LOCAL_JACK_CLASSPATH) 360 full_jack_deps += $(full_static_jack_libs) $(LOCAL_JACK_CLASSPATH) 361 362 ifndef LOCAL_IS_HOST_MODULE 363 # This is set by packages that are linking to other packages that export 364 # shared libraries, allowing them to make use of the code in the linked apk. 365 ifneq ($(apk_libraries),) 366 link_apk_jack_libraries := \ 367 $(foreach lib,$(apk_libraries), \ 368 $(call intermediates-dir-for, \ 369 APPS,$(lib),,COMMON)/classes.jack) 370 371 # link against the jar with full original names (before proguard processing). 372 full_shared_jack_libs += $(link_apk_jack_libraries) 373 full_jack_deps += $(link_apk_jack_libraries) 374 endif 375 376 # This is set by packages that contain instrumentation, allowing them to 377 # link against the package they are instrumenting. Currently only one such 378 # package is allowed. 379 ifdef LOCAL_INSTRUMENTATION_FOR 380 # link against the jar with full original names (before proguard processing). 381 link_instr_classes_jack := $(link_instr_intermediates_dir.COMMON)/classes.noshrob.jack 382 full_shared_jack_libs += $(link_instr_classes_jack) 383 full_jack_deps += $(link_instr_classes_jack) 384 endif # LOCAL_INSTRUMENTATION_FOR 385 endif # !LOCAL_IS_HOST_MODULE 386 387 # Propagate local configuration options to this target. 388 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JACK_SHARED_LIBRARIES:= $(full_shared_jack_libs) 389 $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JARJAR_RULES := $(LOCAL_JARJAR_RULES) 390 391 endif # need_compile_java 392 endif # LOCAL_JACK_ENABLED 393 394 395 ########################################################### 396 # Verify that all libraries are safe to use 397 ########################################################### 398 ifndef LOCAL_IS_HOST_MODULE 399 ifeq ($(LOCAL_SDK_VERSION),system_current) 400 my_link_type := java:system 401 my_warn_types := java:platform 402 my_allowed_types := java:sdk java:system 403 else ifneq ($(LOCAL_SDK_VERSION),) 404 my_link_type := java:sdk 405 my_warn_types := java:system java:platform 406 my_allowed_types := java:sdk 407 else 408 my_link_type := java:platform 409 my_warn_types := 410 my_allowed_types := java:sdk java:system java:platform 411 endif 412 413 my_link_deps := $(addprefix JAVA_LIBRARIES:,$(LOCAL_STATIC_JAVA_LIBRARIES)) 414 my_link_deps += $(addprefix APPS:,$(apk_libraries)) 415 416 my_2nd_arch_prefix := $(LOCAL_2ND_ARCH_VAR_PREFIX) 417 my_common := COMMON 418 include $(BUILD_SYSTEM)/link_type.mk 419 endif # !LOCAL_IS_HOST_MODULE 420