The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # Standard rules for building a "static" java library. |
| 18 | # Static java libraries are not installed, nor listed on any |
| 19 | # classpaths. They can, however, be included wholesale in |
| 20 | # other java modules. |
| 21 | |
Dan Willemsen | 1684b32 | 2016-07-25 16:03:53 -0700 | [diff] [blame] | 22 | $(call record-module-type,STATIC_JAVA_LIBRARY) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 23 | LOCAL_UNINSTALLABLE_MODULE := true |
| 24 | LOCAL_IS_STATIC_JAVA_LIBRARY := true |
Ying Wang | ba71aba | 2013-03-26 12:42:32 -0700 | [diff] [blame] | 25 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 26 | |
Ying Wang | dd71c85 | 2015-12-04 13:59:18 -0800 | [diff] [blame] | 27 | intermediates.COMMON := $(call local-intermediates-dir,COMMON) |
| 28 | |
| 29 | my_res_package := |
Ying Wang | dd71c85 | 2015-12-04 13:59:18 -0800 | [diff] [blame] | 30 | |
Colin Cross | 7bc6cab | 2018-05-17 15:05:47 -0700 | [diff] [blame] | 31 | # Process Support Library dependencies. |
| 32 | include $(BUILD_SYSTEM)/support_libraries.mk |
| 33 | |
Colin Cross | 2029903 | 2018-05-09 13:29:51 -0700 | [diff] [blame] | 34 | include $(BUILD_SYSTEM)/force_aapt2.mk |
| 35 | |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 36 | # Hack to build static Java library with Android resource |
| 37 | # See bug 5714516 |
| 38 | all_resources := |
Ying Wang | 6129192 | 2014-06-25 13:23:58 -0700 | [diff] [blame] | 39 | need_compile_res := |
| 40 | # A static Java library needs to explicily set LOCAL_RESOURCE_DIR. |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 41 | ifdef LOCAL_RESOURCE_DIR |
Ying Wang | 6129192 | 2014-06-25 13:23:58 -0700 | [diff] [blame] | 42 | need_compile_res := true |
Dan Willemsen | fa7ecfb | 2017-05-02 23:55:44 -0700 | [diff] [blame] | 43 | LOCAL_RESOURCE_DIR := $(foreach d,$(LOCAL_RESOURCE_DIR),$(call clean-path,$(d))) |
Ying Wang | e585397 | 2016-03-01 12:06:47 -0800 | [diff] [blame] | 44 | endif |
Colin Cross | 71c5b95 | 2018-05-23 13:35:53 -0700 | [diff] [blame] | 45 | ifneq ($(strip $(LOCAL_STATIC_ANDROID_LIBRARIES) $(LOCAL_STATIC_JAVA_AAR_LIBRARIES)),) |
Ying Wang | e585397 | 2016-03-01 12:06:47 -0800 | [diff] [blame] | 46 | need_compile_res := true |
| 47 | endif |
Ying Wang | dd71c85 | 2015-12-04 13:59:18 -0800 | [diff] [blame] | 48 | |
Ying Wang | e585397 | 2016-03-01 12:06:47 -0800 | [diff] [blame] | 49 | ifeq ($(need_compile_res),true) |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 50 | all_resources := $(strip \ |
| 51 | $(foreach dir, $(LOCAL_RESOURCE_DIR), \ |
| 52 | $(addprefix $(dir)/, \ |
| 53 | $(patsubst res/%,%, \ |
| 54 | $(call find-subdir-assets,$(dir)) \ |
| 55 | ) \ |
| 56 | ) \ |
| 57 | )) |
Ying Wang | 5758b8e | 2011-12-15 16:36:55 -0800 | [diff] [blame] | 58 | |
Ying Wang | ae25ec1 | 2012-06-19 10:40:37 -0700 | [diff] [blame] | 59 | # By default we should remove the R/Manifest classes from a static Java library, |
| 60 | # because they will be regenerated in the app that uses it. |
| 61 | # But if the static Java library will be used by a library, then we may need to |
| 62 | # keep the generated classes with "LOCAL_JAR_EXCLUDE_FILES := none". |
| 63 | ifndef LOCAL_JAR_EXCLUDE_FILES |
| 64 | LOCAL_JAR_EXCLUDE_FILES := $(ANDROID_RESOURCE_GENERATED_CLASSES) |
Ying Wang | 5758b8e | 2011-12-15 16:36:55 -0800 | [diff] [blame] | 65 | endif |
Ying Wang | ae25ec1 | 2012-06-19 10:40:37 -0700 | [diff] [blame] | 66 | ifeq (none,$(LOCAL_JAR_EXCLUDE_FILES)) |
| 67 | LOCAL_JAR_EXCLUDE_FILES := |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 68 | endif |
Ying Wang | ba71aba | 2013-03-26 12:42:32 -0700 | [diff] [blame] | 69 | |
| 70 | proguard_options_file := |
| 71 | |
Jason Tholstrup | 37926de | 2016-11-14 17:18:55 -0800 | [diff] [blame] | 72 | ifneq ($(filter custom,$(LOCAL_PROGUARD_ENABLED)),custom) |
Ying Wang | ba71aba | 2013-03-26 12:42:32 -0700 | [diff] [blame] | 73 | proguard_options_file := $(intermediates.COMMON)/proguard_options |
| 74 | endif |
Yohann Roussel | b4c49cb | 2014-09-08 14:45:14 +0200 | [diff] [blame] | 75 | |
Ying Wang | ba71aba | 2013-03-26 12:42:32 -0700 | [diff] [blame] | 76 | LOCAL_PROGUARD_FLAGS := $(addprefix -include ,$(proguard_options_file)) $(LOCAL_PROGUARD_FLAGS) |
Dan Willemsen | 829abae | 2019-08-09 09:14:45 -0700 | [diff] [blame] | 77 | LOCAL_PROGUARD_FLAGS_DEPS += $(proguard_options_file) |
Ying Wang | ba71aba | 2013-03-26 12:42:32 -0700 | [diff] [blame] | 78 | |
Ying Wang | dd71c85 | 2015-12-04 13:59:18 -0800 | [diff] [blame] | 79 | R_file_stamp := $(intermediates.COMMON)/src/R.stamp |
| 80 | LOCAL_INTERMEDIATE_TARGETS += $(R_file_stamp) |
| 81 | |
Colin Cross | e6210f6 | 2019-02-25 22:21:24 -0800 | [diff] [blame] | 82 | ifneq ($(strip $(LOCAL_STATIC_ANDROID_LIBRARIES) $(LOCAL_STATIC_JAVA_AAR_LIBRARIES)),) |
| 83 | # If we are using static android libraries, every source file becomes an overlay. |
| 84 | # This is to emulate old AAPT behavior which simulated library support. |
| 85 | my_res_resources := |
| 86 | my_overlay_resources := $(all_resources) |
| 87 | else |
| 88 | # Otherwise, for a library we treat all the resource equal with no overlay. |
| 89 | my_res_resources := $(all_resources) |
| 90 | my_overlay_resources := |
| 91 | endif |
| 92 | # For libraries put everything in the COMMON intermediate directory. |
| 93 | my_res_package := $(intermediates.COMMON)/package-res.apk |
Ying Wang | dd71c85 | 2015-12-04 13:59:18 -0800 | [diff] [blame] | 94 | |
Colin Cross | e6210f6 | 2019-02-25 22:21:24 -0800 | [diff] [blame] | 95 | LOCAL_INTERMEDIATE_TARGETS += $(my_res_package) |
Colin Cross | b11fc29 | 2019-02-13 13:14:07 -0800 | [diff] [blame] | 96 | |
Bryan Eyler | 57b5232 | 2018-01-25 14:55:31 -0800 | [diff] [blame] | 97 | endif # need_compile_res |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 98 | |
Ying Wang | 576e014 | 2013-08-28 11:16:06 -0700 | [diff] [blame] | 99 | all_res_assets := $(all_resources) |
| 100 | |
Colin Cross | 7a28158 | 2018-03-06 16:21:36 -0800 | [diff] [blame] | 101 | include $(BUILD_SYSTEM)/java_renderscript.mk |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 102 | |
Ying Wang | 6129192 | 2014-06-25 13:23:58 -0700 | [diff] [blame] | 103 | ifeq (true,$(need_compile_res)) |
Spandan Das | 68684be | 2021-11-02 03:54:05 +0000 | [diff] [blame] | 104 | # work around missing manifests by creating a default one |
| 105 | ifeq (,$(strip $(LOCAL_MANIFEST_FILE)$(LOCAL_FULL_MANIFEST_FILE))) |
| 106 | ifeq (,$(wildcard $(LOCAL_PATH)/AndroidManifest.xml)) |
| 107 | LOCAL_FULL_MANIFEST_FILE := $(call local-intermediates-dir,COMMON)/DefaultManifest.xml |
| 108 | $(call create-default-manifest-file,$(LOCAL_FULL_MANIFEST_FILE),$(call module-min-sdk-version)) |
| 109 | endif |
| 110 | endif |
Ying Wang | dc7fee9 | 2014-02-05 18:24:45 -0800 | [diff] [blame] | 111 | include $(BUILD_SYSTEM)/android_manifest.mk |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 112 | |
Ying Wang | aaa8f06 | 2012-01-03 11:52:26 -0800 | [diff] [blame] | 113 | LOCAL_SDK_RES_VERSION:=$(strip $(LOCAL_SDK_RES_VERSION)) |
| 114 | ifeq ($(LOCAL_SDK_RES_VERSION),) |
| 115 | LOCAL_SDK_RES_VERSION:=$(LOCAL_SDK_VERSION) |
| 116 | endif |
| 117 | |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 118 | framework_res_package_export := |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 119 | # Please refer to package.mk |
| 120 | ifneq ($(LOCAL_NO_STANDARD_LIBRARIES),true) |
Jeongik Cha | d05b57a | 2020-07-08 18:10:38 +0900 | [diff] [blame] | 121 | ifneq ($(filter-out current system_current test_current,$(LOCAL_SDK_RES_VERSION))$(if $(TARGET_BUILD_USE_PREBUILT_SDKS),$(filter current system_current test_current,$(LOCAL_SDK_RES_VERSION))),) |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 122 | framework_res_package_export := \ |
Anton Hansson | 66d47b8 | 2018-04-27 14:11:17 +0100 | [diff] [blame] | 123 | $(call resolve-prebuilt-sdk-jar-path,$(LOCAL_SDK_RES_VERSION)) |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 124 | else |
| 125 | framework_res_package_export := \ |
| 126 | $(call intermediates-dir-for,APPS,framework-res,,COMMON)/package-export.apk |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 127 | endif |
| 128 | endif |
| 129 | |
Colin Cross | d9d5c2a | 2023-06-23 16:17:54 -0700 | [diff] [blame] | 130 | # transitive-res-packages is only populated for Soong modules for now, but needs |
| 131 | # to exist so that other Make modules can depend on it. Create an empty file. |
| 132 | my_transitive_res_packages := $(intermediates.COMMON)/transitive-res-packages |
| 133 | $(my_transitive_res_packages): |
| 134 | touch $@ |
| 135 | |
Colin Cross | 71c5b95 | 2018-05-23 13:35:53 -0700 | [diff] [blame] | 136 | import_proguard_flag_files := $(strip $(foreach l,$(LOCAL_STATIC_ANDROID_LIBRARIES) $(LOCAL_STATIC_JAVA_AAR_LIBRARIES),\ |
Dan Willemsen | 4cdbaf1 | 2018-02-09 15:19:11 -0800 | [diff] [blame] | 137 | $(call intermediates-dir-for,JAVA_LIBRARIES,$(l),,COMMON)/export_proguard_flags)) |
| 138 | $(intermediates.COMMON)/export_proguard_flags: $(import_proguard_flag_files) $(addprefix $(LOCAL_PATH)/,$(LOCAL_EXPORT_PROGUARD_FLAG_FILES)) |
Dan Willemsen | 1d64623 | 2017-11-17 13:11:26 -0800 | [diff] [blame] | 139 | @echo "Export proguard flags: $@" |
| 140 | rm -f $@ |
Dan Willemsen | 4cdbaf1 | 2018-02-09 15:19:11 -0800 | [diff] [blame] | 141 | touch $@ |
| 142 | for f in $+; do \ |
| 143 | echo -e "\n# including $$f" >>$@; \ |
| 144 | cat $$f >>$@; \ |
| 145 | done |
| 146 | import_proguard_flag_files := |
Dan Willemsen | 1d64623 | 2017-11-17 13:11:26 -0800 | [diff] [blame] | 147 | |
Colin Cross | b6013af | 2018-03-06 18:18:06 -0800 | [diff] [blame] | 148 | include $(BUILD_SYSTEM)/aapt_flags.mk |
| 149 | |
Colin Cross | 7a28158 | 2018-03-06 16:21:36 -0800 | [diff] [blame] | 150 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) |
| 151 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_TARGET_AAPT_CHARACTERISTICS := $(TARGET_AAPT_CHARACTERISTICS) |
| 152 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_MANIFEST_PACKAGE_NAME := $(LOCAL_MANIFEST_PACKAGE_NAME) |
| 153 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_MANIFEST_INSTRUMENTATION_FOR := $(LOCAL_MANIFEST_INSTRUMENTATION_FOR) |
| 154 | |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 155 | # add --non-constant-id to prevent inlining constants. |
Ying Wang | f1db7e2 | 2014-12-17 17:00:53 -0800 | [diff] [blame] | 156 | # AAR needs text symbol file R.txt. |
Colin Cross | 2ae710c | 2018-03-12 14:56:27 -0700 | [diff] [blame] | 157 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) --static-lib --output-text-symbols $(intermediates.COMMON)/R.txt |
Adam Lesinski | 960de8e | 2017-08-16 15:52:53 -0700 | [diff] [blame] | 158 | ifndef LOCAL_AAPT_NAMESPACES |
| 159 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_AAPT_FLAGS += --no-static-lib-packages |
| 160 | endif |
Adam Lesinski | e758f93 | 2016-02-26 11:13:43 -0800 | [diff] [blame] | 161 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_PRODUCT_AAPT_CONFIG := |
| 162 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_PRODUCT_AAPT_PREF_CONFIG := |
| 163 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_TARGET_AAPT_CHARACTERISTICS := |
Adam Lesinski | e758f93 | 2016-02-26 11:13:43 -0800 | [diff] [blame] | 164 | |
Ying Wang | dd71c85 | 2015-12-04 13:59:18 -0800 | [diff] [blame] | 165 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_ANDROID_MANIFEST := $(full_android_manifest) |
| 166 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_RESOURCE_PUBLICS_OUTPUT := $(intermediates.COMMON)/public_resources.xml |
| 167 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_RESOURCE_DIR := $(LOCAL_RESOURCE_DIR) |
| 168 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_AAPT_INCLUDES := $(framework_res_package_export) |
Adam Lesinski | e758f93 | 2016-02-26 11:13:43 -0800 | [diff] [blame] | 169 | |
Ying Wang | dd71c85 | 2015-12-04 13:59:18 -0800 | [diff] [blame] | 170 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_ASSET_DIR := |
| 171 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_PROGUARD_OPTIONS_FILE := $(proguard_options_file) |
| 172 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_MANIFEST_PACKAGE_NAME := |
| 173 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_MANIFEST_INSTRUMENTATION_FOR := |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 174 | |
Colin Cross | e6210f6 | 2019-02-25 22:21:24 -0800 | [diff] [blame] | 175 | # One more level with name res so we can zip up the flat resources that can be linked by apps. |
| 176 | my_compiled_res_base_dir := $(intermediates.COMMON)/flat-res/res |
| 177 | ifneq (,$(filter-out current,$(renderscript_target_api))) |
| 178 | ifneq ($(call math_gt_or_eq,$(renderscript_target_api),21),true) |
| 179 | my_generated_res_zips := $(rs_generated_res_zip) |
| 180 | endif # renderscript_target_api < 21 |
| 181 | endif # renderscript_target_api is set |
| 182 | include $(BUILD_SYSTEM)/aapt2.mk |
| 183 | $(my_res_package) : $(framework_res_package_export) |
| 184 | $(my_res_package): .KATI_IMPLICIT_OUTPUTS += $(intermediates.COMMON)/R.txt |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 185 | |
Colin Cross | 7a28158 | 2018-03-06 16:21:36 -0800 | [diff] [blame] | 186 | endif # need_compile_res |
| 187 | |
| 188 | include $(BUILD_SYSTEM)/java_library.mk |
| 189 | |
| 190 | ifeq (true,$(need_compile_res)) |
| 191 | |
Colin Cross | 79e2f73 | 2016-12-21 14:29:13 -0800 | [diff] [blame] | 192 | $(LOCAL_BUILT_MODULE): $(R_file_stamp) |
Colin Cross | dfc45ec | 2017-05-26 15:22:02 -0700 | [diff] [blame] | 193 | $(java_source_list_file): $(R_file_stamp) |
Colin Cross | 79e2f73 | 2016-12-21 14:29:13 -0800 | [diff] [blame] | 194 | $(full_classes_compiled_jar): $(R_file_stamp) |
Nan Zhang | b3ec534 | 2017-08-31 21:43:04 +0000 | [diff] [blame] | 195 | $(full_classes_turbine_jar): $(R_file_stamp) |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 196 | |
Jason Tholstrup | 37926de | 2016-11-14 17:18:55 -0800 | [diff] [blame] | 197 | |
| 198 | # if we have custom proguarding done use the proguarded classes jar instead of the normal classes jar |
| 199 | ifeq ($(filter custom,$(LOCAL_PROGUARD_ENABLED)),custom) |
Jason Tholstrup | 37926de | 2016-11-14 17:18:55 -0800 | [diff] [blame] | 200 | aar_classes_jar = $(full_classes_jar) |
Colin Cross | 6fabefa | 2017-03-29 12:58:15 -0700 | [diff] [blame] | 201 | else |
| 202 | aar_classes_jar = $(full_classes_pre_proguard_jar) |
Jason Tholstrup | 37926de | 2016-11-14 17:18:55 -0800 | [diff] [blame] | 203 | endif |
| 204 | |
Ying Wang | f1db7e2 | 2014-12-17 17:00:53 -0800 | [diff] [blame] | 205 | # Rule to build AAR, archive including classes.jar, resource, etc. |
| 206 | built_aar := $(intermediates.COMMON)/javalib.aar |
| 207 | $(built_aar): PRIVATE_MODULE := $(LOCAL_MODULE) |
| 208 | $(built_aar): PRIVATE_ANDROID_MANIFEST := $(full_android_manifest) |
Jason Tholstrup | 37926de | 2016-11-14 17:18:55 -0800 | [diff] [blame] | 209 | $(built_aar): PRIVATE_CLASSES_JAR := $(aar_classes_jar) |
Ying Wang | f1db7e2 | 2014-12-17 17:00:53 -0800 | [diff] [blame] | 210 | $(built_aar): PRIVATE_RESOURCE_DIR := $(LOCAL_RESOURCE_DIR) |
Colin Cross | 2ae710c | 2018-03-12 14:56:27 -0700 | [diff] [blame] | 211 | $(built_aar): PRIVATE_R_TXT := $(intermediates.COMMON)/R.txt |
Colin Cross | 128800f | 2017-08-10 15:24:10 -0700 | [diff] [blame] | 212 | $(built_aar): $(JAR_ARGS) |
Colin Cross | 2ae710c | 2018-03-12 14:56:27 -0700 | [diff] [blame] | 213 | $(built_aar) : $(aar_classes_jar) $(full_android_manifest) $(intermediates.COMMON)/R.txt |
Ying Wang | f1db7e2 | 2014-12-17 17:00:53 -0800 | [diff] [blame] | 214 | @echo "target AAR: $(PRIVATE_MODULE) ($@)" |
| 215 | $(hide) rm -rf $(dir $@)aar && mkdir -p $(dir $@)aar/res |
| 216 | $(hide) cp $(PRIVATE_ANDROID_MANIFEST) $(dir $@)aar/AndroidManifest.xml |
| 217 | $(hide) cp $(PRIVATE_CLASSES_JAR) $(dir $@)aar/classes.jar |
| 218 | # Note: Use "cp -n" to honor the resource overlay rules, if multiple res dirs exist. |
| 219 | $(hide) $(foreach res,$(PRIVATE_RESOURCE_DIR),cp -Rfn $(res)/* $(dir $@)aar/res;) |
| 220 | $(hide) cp $(PRIVATE_R_TXT) $(dir $@)aar/R.txt |
Colin Cross | 0851df8 | 2017-06-30 13:55:38 -0700 | [diff] [blame] | 221 | $(hide) $(JAR) -cMf $@ \ |
Colin Cross | 4a5458a | 2017-08-16 23:33:17 -0700 | [diff] [blame] | 222 | $(call jar-args-sorted-files-in-directory,$(dir $@)aar) |
Ying Wang | f1db7e2 | 2014-12-17 17:00:53 -0800 | [diff] [blame] | 223 | |
| 224 | # Register the aar file. |
Yo Chiang | 5814247 | 2020-05-08 15:38:46 +0800 | [diff] [blame] | 225 | ALL_MODULES.$(my_register_name).AAR := $(built_aar) |
Ying Wang | 6129192 | 2014-06-25 13:23:58 -0700 | [diff] [blame] | 226 | endif # need_compile_res |
Ying Wang | 20e2083 | 2011-12-14 14:29:28 -0800 | [diff] [blame] | 227 | |
Ying Wang | 990cf5e | 2013-08-28 13:04:46 -0700 | [diff] [blame] | 228 | # Reset internal variables. |
Jason Tholstrup | 37926de | 2016-11-14 17:18:55 -0800 | [diff] [blame] | 229 | aar_classes_jar := |
Ying Wang | 990cf5e | 2013-08-28 13:04:46 -0700 | [diff] [blame] | 230 | all_res_assets := |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 231 | LOCAL_IS_STATIC_JAVA_LIBRARY := |
Wei Li | 0762f5f | 2024-06-17 14:32:45 -0700 | [diff] [blame] | 232 | |
| 233 | $(if $(my_register_name),$(eval ALL_MODULES.$(my_register_name).MAKE_MODULE_TYPE:=STATIC_JAVA_LIBRARY)) |