Ying Wang | 956dccc | 2015-08-28 11:47:03 -0700 | [diff] [blame] | 1 | # Common to host and target Java modules. |
| 2 | |
| 3 | ########################################################### |
| 4 | ## .proto files: Compile proto files to .java |
| 5 | ########################################################### |
| 6 | proto_sources := $(filter %.proto,$(LOCAL_SRC_FILES)) |
| 7 | # Because names of the .java files compiled from .proto files are unknown until the |
| 8 | # .proto files are compiled, we use a timestamp file as depedency. |
| 9 | proto_java_sources_file_stamp := |
| 10 | ifneq ($(proto_sources),) |
| 11 | proto_sources_fullpath := $(addprefix $(LOCAL_PATH)/, $(proto_sources)) |
| 12 | |
| 13 | # By putting the generated java files into $(LOCAL_INTERMEDIATE_SOURCE_DIR), they will be |
| 14 | # automatically found by the java compiling function transform-java-to-classes.jar. |
| 15 | proto_java_intemediate_dir := $(LOCAL_INTERMEDIATE_SOURCE_DIR)/proto |
| 16 | proto_java_sources_file_stamp := $(proto_java_intemediate_dir)/Proto.stamp |
| 17 | proto_java_sources_dir := $(proto_java_intemediate_dir)/src |
| 18 | |
| 19 | $(proto_java_sources_file_stamp): PRIVATE_PROTO_INCLUDES := $(TOP) |
| 20 | $(proto_java_sources_file_stamp): PRIVATE_PROTO_SRC_FILES := $(proto_sources_fullpath) |
| 21 | $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_DIR := $(proto_java_sources_dir) |
| 22 | ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),micro) |
| 23 | $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --javamicro_out |
| 24 | else |
| 25 | ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),nano) |
| 26 | $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --javanano_out |
| 27 | else |
| 28 | $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --java_out |
| 29 | endif |
| 30 | endif |
| 31 | $(proto_java_sources_file_stamp): PRIVATE_PROTOC_FLAGS := $(LOCAL_PROTOC_FLAGS) |
| 32 | $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_PARAMS := $(LOCAL_PROTO_JAVA_OUTPUT_PARAMS) |
| 33 | $(proto_java_sources_file_stamp) : $(proto_sources_fullpath) $(PROTOC) |
| 34 | $(call transform-proto-to-java) |
| 35 | |
| 36 | #TODO: protoc should output the dependencies introduced by imports. |
| 37 | endif # proto_sources |
| 38 | |
| 39 | ######################################### |
| 40 | ## Java resources |
| 41 | |
| 42 | # Look for resource files in any specified directories. |
| 43 | # Non-java and non-doc files will be picked up as resources |
| 44 | # and included in the output jar file. |
| 45 | java_resource_file_groups := |
| 46 | |
| 47 | LOCAL_JAVA_RESOURCE_DIRS := $(strip $(LOCAL_JAVA_RESOURCE_DIRS)) |
| 48 | ifneq ($(LOCAL_JAVA_RESOURCE_DIRS),) |
| 49 | # This makes a list of words like |
| 50 | # <dir1>::<file1>:<file2> <dir2>::<file1> <dir3>: |
| 51 | # where each of the files is relative to the directory it's grouped with. |
| 52 | # Directories that don't contain any resource files will result in groups |
| 53 | # that end with a colon, and they are stripped out in the next step. |
| 54 | java_resource_file_groups += \ |
| 55 | $(foreach dir,$(LOCAL_JAVA_RESOURCE_DIRS), \ |
| 56 | $(subst $(space),:,$(strip \ |
| 57 | $(LOCAL_PATH)/$(dir): \ |
Dan Willemsen | 7c3e3f8 | 2015-09-29 16:30:21 -0700 | [diff] [blame^] | 58 | $(patsubst ./%,%,$(sort $(shell cd $(LOCAL_PATH)/$(dir) && \ |
Ying Wang | 956dccc | 2015-08-28 11:47:03 -0700 | [diff] [blame] | 59 | find . \ |
| 60 | -type d -a -name ".svn" -prune -o \ |
| 61 | -type f \ |
| 62 | -a \! -name "*.java" \ |
| 63 | -a \! -name "package.html" \ |
| 64 | -a \! -name "overview.html" \ |
| 65 | -a \! -name ".*.swp" \ |
| 66 | -a \! -name ".DS_Store" \ |
| 67 | -a \! -name "*~" \ |
| 68 | -print \ |
Dan Willemsen | 7c3e3f8 | 2015-09-29 16:30:21 -0700 | [diff] [blame^] | 69 | ))) \ |
Ying Wang | 956dccc | 2015-08-28 11:47:03 -0700 | [diff] [blame] | 70 | )) \ |
| 71 | ) |
| 72 | java_resource_file_groups := $(filter-out %:,$(java_resource_file_groups)) |
| 73 | endif # LOCAL_JAVA_RESOURCE_DIRS |
| 74 | |
| 75 | LOCAL_JAVA_RESOURCE_FILES := $(strip $(LOCAL_JAVA_RESOURCE_FILES)) |
| 76 | ifneq ($(LOCAL_JAVA_RESOURCE_FILES),) |
| 77 | java_resource_file_groups += \ |
| 78 | $(foreach f,$(LOCAL_JAVA_RESOURCE_FILES), \ |
| 79 | $(patsubst %/,%,$(dir $(f)))::$(notdir $(f)) \ |
| 80 | ) |
| 81 | endif # LOCAL_JAVA_RESOURCE_FILES |
| 82 | |
| 83 | ifdef java_resource_file_groups |
| 84 | # The full paths to all resources, used for dependencies. |
| 85 | java_resource_sources := \ |
| 86 | $(foreach group,$(java_resource_file_groups), \ |
| 87 | $(addprefix $(word 1,$(subst :,$(space),$(group)))/, \ |
| 88 | $(wordlist 2,9999,$(subst :,$(space),$(group))) \ |
| 89 | ) \ |
| 90 | ) |
| 91 | # The arguments to jar that will include these files in a jar file. |
| 92 | # Quote the file name to handle special characters (such as #) correctly. |
| 93 | extra_jar_args := \ |
| 94 | $(foreach group,$(java_resource_file_groups), \ |
| 95 | $(addprefix -C "$(word 1,$(subst :,$(space),$(group)))" , \ |
| 96 | $(foreach w, $(wordlist 2,9999,$(subst :,$(space),$(group))), "$(w)" ) \ |
| 97 | ) \ |
| 98 | ) |
| 99 | java_resource_file_groups := |
| 100 | else |
| 101 | java_resource_sources := |
| 102 | extra_jar_args := |
| 103 | endif # java_resource_file_groups |
| 104 | |
| 105 | ###################################### |
| 106 | ## PRIVATE java vars |
| 107 | # LOCAL_SOURCE_FILES_ALL_GENERATED is set only if the module does not have static source files, |
| 108 | # but generated source files in its LOCAL_INTERMEDIATE_SOURCE_DIR. |
| 109 | # You have to set up the dependency in some other way. |
| 110 | need_compile_java := $(strip $(all_java_sources)$(all_res_assets)$(java_resource_sources))$(LOCAL_STATIC_JAVA_LIBRARIES)$(filter true,$(LOCAL_SOURCE_FILES_ALL_GENERATED)) |
| 111 | ifdef need_compile_java |
| 112 | |
| 113 | full_static_java_libs := \ |
| 114 | $(foreach lib,$(LOCAL_STATIC_JAVA_LIBRARIES), \ |
| 115 | $(call intermediates-dir-for, \ |
| 116 | JAVA_LIBRARIES,$(lib),$(LOCAL_IS_HOST_MODULE),COMMON)/javalib.jar) |
| 117 | |
| 118 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_STATIC_JAVA_LIBRARIES := $(full_static_java_libs) |
| 119 | |
| 120 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_RESOURCE_DIR := $(LOCAL_RESOURCE_DIR) |
| 121 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_ASSET_DIR := $(LOCAL_ASSET_DIR) |
| 122 | |
| 123 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_CLASS_INTERMEDIATES_DIR := $(intermediates.COMMON)/classes |
| 124 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_SOURCE_INTERMEDIATES_DIR := $(intermediates.COMMON)/src |
| 125 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JAVA_SOURCES := $(all_java_sources) |
| 126 | |
| 127 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_RMTYPEDEFS := $(LOCAL_RMTYPEDEFS) |
| 128 | |
| 129 | # full_java_libs: The list of files that should be used as the classpath. |
| 130 | # Using this list as a dependency list WILL NOT WORK. |
| 131 | # full_java_lib_deps: Should be specified as a prerequisite of this module |
| 132 | # to guarantee that the files in full_java_libs will |
| 133 | # be up-to-date. |
| 134 | ifndef LOCAL_IS_HOST_MODULE |
| 135 | ifeq ($(LOCAL_SDK_VERSION),) |
| 136 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := -bootclasspath $(call java-lib-files,core-libart) |
| 137 | else |
| 138 | ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),current) |
| 139 | # LOCAL_SDK_VERSION is current and no TARGET_BUILD_APPS. |
| 140 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := -bootclasspath $(call java-lib-files,android_stubs_current) |
| 141 | else ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),system_current) |
| 142 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := -bootclasspath $(call java-lib-files,android_system_stubs_current) |
| 143 | else |
| 144 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := -bootclasspath $(call java-lib-files,sdk_v$(LOCAL_SDK_VERSION)) |
| 145 | endif # current or system_current |
| 146 | endif # LOCAL_SDK_VERSION |
| 147 | |
| 148 | full_shared_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 149 | full_java_lib_deps := $(call java-lib-deps,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 150 | |
| 151 | else # LOCAL_IS_HOST_MODULE |
| 152 | |
| 153 | ifeq ($(USE_CORE_LIB_BOOTCLASSPATH),true) |
| 154 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := -bootclasspath $(call java-lib-files,core-libart-hostdex,$(LOCAL_IS_HOST_MODULE)) |
| 155 | |
| 156 | full_shared_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 157 | full_java_lib_deps := $(call java-lib-deps,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) \ |
| 158 | $(full_shared_java_libs) |
| 159 | else |
| 160 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH := |
| 161 | |
| 162 | full_shared_java_libs := $(addprefix $(HOST_OUT_JAVA_LIBRARIES)/,\ |
| 163 | $(addsuffix $(COMMON_JAVA_PACKAGE_SUFFIX),$(LOCAL_JAVA_LIBRARIES))) |
| 164 | full_java_lib_deps := $(full_shared_java_libs) |
| 165 | endif # USE_CORE_LIB_BOOTCLASSPATH |
| 166 | endif # !LOCAL_IS_HOST_MODULE |
| 167 | |
| 168 | full_java_libs := $(full_shared_java_libs) $(full_static_java_libs) $(LOCAL_CLASSPATH) |
| 169 | full_java_lib_deps := $(full_java_lib_deps) $(full_static_java_libs) $(LOCAL_CLASSPATH) |
| 170 | |
| 171 | ifndef LOCAL_IS_HOST_MODULE |
| 172 | # This is set by packages that are linking to other packages that export |
| 173 | # shared libraries, allowing them to make use of the code in the linked apk. |
| 174 | apk_libraries := $(sort $(LOCAL_APK_LIBRARIES) $(LOCAL_RES_LIBRARIES)) |
| 175 | ifneq ($(apk_libraries),) |
| 176 | link_apk_libraries := \ |
| 177 | $(foreach lib,$(apk_libraries), \ |
| 178 | $(call intermediates-dir-for, \ |
| 179 | APPS,$(lib),,COMMON)/classes.jar) |
| 180 | |
| 181 | # link against the jar with full original names (before proguard processing). |
| 182 | full_shared_java_libs += $(link_apk_libraries) |
| 183 | full_java_libs += $(link_apk_libraries) |
| 184 | full_java_lib_deps += $(link_apk_libraries) |
| 185 | endif |
| 186 | |
| 187 | # This is set by packages that contain instrumentation, allowing them to |
| 188 | # link against the package they are instrumenting. Currently only one such |
| 189 | # package is allowed. |
| 190 | LOCAL_INSTRUMENTATION_FOR := $(strip $(LOCAL_INSTRUMENTATION_FOR)) |
| 191 | ifdef LOCAL_INSTRUMENTATION_FOR |
| 192 | ifneq ($(words $(LOCAL_INSTRUMENTATION_FOR)),1) |
| 193 | $(error \ |
| 194 | $(LOCAL_PATH): Multiple LOCAL_INSTRUMENTATION_FOR members defined) |
| 195 | endif |
| 196 | |
| 197 | link_instr_intermediates_dir.COMMON := $(call intermediates-dir-for, \ |
| 198 | APPS,$(LOCAL_INSTRUMENTATION_FOR),,COMMON) |
| 199 | # link against the jar with full original names (before proguard processing). |
| 200 | link_instr_classes_jar := $(link_instr_intermediates_dir.COMMON)/classes.jar |
| 201 | full_java_libs += $(link_instr_classes_jar) |
| 202 | full_java_lib_deps += $(link_instr_classes_jar) |
| 203 | endif # LOCAL_INSTRUMENTATION_FOR |
| 204 | endif # LOCAL_IS_HOST_MODULE |
| 205 | |
| 206 | endif # need_compile_java |
| 207 | |
| 208 | # We may want to add jar manifest or jar resource files even if there is no java code at all. |
| 209 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS := $(extra_jar_args) |
| 210 | jar_manifest_file := |
| 211 | ifneq ($(strip $(LOCAL_JAR_MANIFEST)),) |
| 212 | jar_manifest_file := $(LOCAL_PATH)/$(LOCAL_JAR_MANIFEST) |
| 213 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JAR_MANIFEST := $(jar_manifest_file) |
| 214 | else |
| 215 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JAR_MANIFEST := |
| 216 | endif |
| 217 | |
| 218 | ########################################################## |
| 219 | ifndef LOCAL_IS_HOST_MODULE |
| 220 | ## AAPT Flags |
| 221 | # aapt doesn't accept multiple --extra-packages flags. |
| 222 | # We have to collapse them into a single --extra-packages flag here. |
| 223 | LOCAL_AAPT_FLAGS := $(strip $(LOCAL_AAPT_FLAGS)) |
| 224 | ifdef LOCAL_AAPT_FLAGS |
| 225 | ifeq ($(filter 0 1,$(words $(filter --extra-packages,$(LOCAL_AAPT_FLAGS)))),) |
| 226 | aapt_flags := $(subst --extra-packages$(space),--extra-packages@,$(LOCAL_AAPT_FLAGS)) |
| 227 | aapt_flags_extra_packages := $(patsubst --extra-packages@%,%,$(filter --extra-packages@%,$(aapt_flags))) |
| 228 | aapt_flags_extra_packages := $(sort $(subst :,$(space),$(aapt_flags_extra_packages))) |
| 229 | LOCAL_AAPT_FLAGS := $(filter-out --extra-packages@%,$(aapt_flags)) \ |
| 230 | --extra-packages $(subst $(space),:,$(aapt_flags_extra_packages)) |
| 231 | aapt_flags_extra_packages := |
| 232 | aapt_flags := |
| 233 | endif |
| 234 | endif |
| 235 | |
| 236 | $(LOCAL_INTERMEDIATE_TARGETS) : PRIVATE_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) $(PRODUCT_AAPT_FLAGS) |
| 237 | $(LOCAL_INTERMEDIATE_TARGETS) : PRIVATE_MANIFEST_PACKAGE_NAME := $(LOCAL_MANIFEST_PACKAGE_NAME) |
| 238 | $(LOCAL_INTERMEDIATE_TARGETS) : PRIVATE_MANIFEST_INSTRUMENTATION_FOR := $(LOCAL_MANIFEST_INSTRUMENTATION_FOR) |
| 239 | |
Ying Wang | 956dccc | 2015-08-28 11:47:03 -0700 | [diff] [blame] | 240 | ifdef aidl_sources |
| 241 | ALL_MODULES.$(my_register_name).AIDL_FILES := $(aidl_sources) |
| 242 | endif |
| 243 | endif # !LOCAL_IS_HOST_MODULE |
| 244 | |
| 245 | $(LOCAL_INTERMEDIATE_TARGETS) : PRIVATE_ALL_JAVA_LIBRARIES := $(full_java_libs) |
| 246 | |
| 247 | ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR := \ |
| 248 | $(ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR) $(LOCAL_INTERMEDIATE_SOURCE_DIR) |
| 249 | |
| 250 | ########################################################### |
| 251 | # JACK |
| 252 | ########################################################### |
| 253 | ifdef LOCAL_JACK_ENABLED |
| 254 | ifdef need_compile_java |
| 255 | |
| 256 | full_static_jack_libs := \ |
| 257 | $(foreach lib,$(LOCAL_STATIC_JAVA_LIBRARIES), \ |
| 258 | $(call intermediates-dir-for, \ |
| 259 | JAVA_LIBRARIES,$(lib),$(LOCAL_IS_HOST_MODULE),COMMON)/classes.jack) |
| 260 | |
| 261 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_STATIC_JACK_LIBRARIES := $(full_static_jack_libs) |
| 262 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JACK_VM_ARGS := $(LOCAL_JACK_VM_ARGS) |
| 263 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_JACK_EXTRA_ARGS := $(LOCAL_JACK_EXTRA_ARGS) |
| 264 | |
| 265 | ifndef LOCAL_IS_HOST_MODULE |
| 266 | ifeq ($(LOCAL_SDK_VERSION),) |
| 267 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES := $(call jack-lib-files,core-libart) |
| 268 | else |
| 269 | ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),current) |
| 270 | # LOCAL_SDK_VERSION is current and no TARGET_BUILD_APPS. |
| 271 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES := $(call jack-lib-files,android_stubs_current) |
| 272 | else ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),system_current) |
| 273 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES := $(call jack-lib-files,android_system_stubs_current) |
| 274 | else |
| 275 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES := $(call jack-lib-files,sdk_v$(LOCAL_SDK_VERSION)) |
| 276 | endif # current or system_current |
| 277 | endif # LOCAL_SDK_VERSION |
| 278 | |
| 279 | full_shared_jack_libs := $(call jack-lib-files,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 280 | full_jack_lib_deps := $(call jack-lib-deps,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 281 | |
| 282 | else # LOCAL_IS_HOST_MODULE |
| 283 | |
| 284 | ifeq ($(USE_CORE_LIB_BOOTCLASSPATH),true) |
| 285 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES := $(call jack-lib-files,core-libart-hostdex,$(LOCAL_IS_HOST_MODULE)) |
| 286 | full_shared_jack_libs := $(call jack-lib-files,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 287 | full_jack_lib_deps := $(call jack-lib-deps,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 288 | else |
| 289 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES := |
| 290 | full_shared_jack_libs := $(call jack-lib-deps,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) |
| 291 | full_jack_lib_deps := $(full_shared_jack_libs) |
| 292 | endif # USE_CORE_LIB_BOOTCLASSPATH |
| 293 | endif # !LOCAL_IS_HOST_MODULE |
| 294 | full_jack_libs := $(full_shared_jack_libs) $(full_static_jack_libs) $(LOCAL_JACK_CLASSPATH) |
| 295 | full_jack_lib_deps += $(full_static_jack_libs) $(LOCAL_JACK_CLASSPATH) |
| 296 | |
| 297 | ifndef LOCAL_IS_HOST_MODULE |
| 298 | # This is set by packages that are linking to other packages that export |
| 299 | # shared libraries, allowing them to make use of the code in the linked apk. |
| 300 | ifneq ($(apk_libraries),) |
| 301 | link_apk_jack_libraries := \ |
| 302 | $(foreach lib,$(apk_libraries), \ |
| 303 | $(call intermediates-dir-for, \ |
| 304 | APPS,$(lib),,COMMON)/classes.jack) |
| 305 | |
| 306 | # link against the jar with full original names (before proguard processing). |
| 307 | full_shared_jack_libs += $(link_apk_jack_libraries) |
| 308 | full_jack_libs += $(link_apk_jack_libraries) |
| 309 | full_jack_lib_deps += $(link_apk_jack_libraries) |
| 310 | endif |
| 311 | |
| 312 | # This is set by packages that contain instrumentation, allowing them to |
| 313 | # link against the package they are instrumenting. Currently only one such |
| 314 | # package is allowed. |
| 315 | ifdef LOCAL_INSTRUMENTATION_FOR |
| 316 | # link against the jar with full original names (before proguard processing). |
| 317 | link_instr_classes_jack := $(link_instr_intermediates_dir.COMMON)/classes.noshrob.jack |
| 318 | full_jack_libs += $(link_instr_classes_jack) |
| 319 | full_jack_lib_deps += $(link_instr_classes_jack) |
| 320 | endif # LOCAL_INSTRUMENTATION_FOR |
| 321 | endif # !LOCAL_IS_HOST_MODULE |
| 322 | |
| 323 | # Propagate local configuration options to this target. |
| 324 | $(LOCAL_INTERMEDIATE_TARGETS) : PRIVATE_ALL_JACK_LIBRARIES:= $(full_jack_libs) |
| 325 | $(LOCAL_INTERMEDIATE_TARGETS) : PRIVATE_JARJAR_RULES := $(LOCAL_JARJAR_RULES) |
| 326 | |
| 327 | endif # need_compile_java |
| 328 | endif # LOCAL_JACK_ENABLED |