diff --git a/core/aapt2.mk b/core/aapt2.mk index a10af67a9..34f32e3bc 100644 --- a/core/aapt2.mk +++ b/core/aapt2.mk @@ -5,8 +5,6 @@ # - my_res_resources # - my_overlay_resources # - my_compiled_res_base_dir -# - my_asset_dirs -# - my_full_asset_paths # - my_res_package # - R_file_stamp # - proguard_options_file @@ -68,10 +66,8 @@ $(my_res_package): PRIVATE_RES_FLAT := $(my_res_resources_flat) $(my_res_package): PRIVATE_OVERLAY_FLAT := $(my_static_library_resources) $(my_generated_resources_flata) $(my_overlay_resources_flat) $(my_res_package): PRIVATE_SHARED_ANDROID_LIBRARIES := $(my_shared_library_resources) $(my_res_package): PRIVATE_PROGUARD_OPTIONS_FILE := $(proguard_options_file) -$(my_res_package): PRIVATE_ASSET_DIRS := $(my_asset_dirs) -$(my_res_package): $(full_android_manifest) $(my_static_library_resources) $(my_shared_library_resources) -$(my_res_package): $(my_full_asset_paths) -$(my_res_package): $(my_res_resources_flat) $(my_overlay_resources_flat) \ +$(my_res_package) : $(full_android_manifest) $(my_static_library_resources) $(my_shared_library_resources) +$(my_res_package) : $(my_res_resources_flat) $(my_overlay_resources_flat) \ $(my_generated_resources_flata) $(my_static_library_resources) \ $(AAPT2) @echo "AAPT2 link $@" diff --git a/core/definitions.mk b/core/definitions.mk index dc54bfe28..10ee29743 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2110,7 +2110,6 @@ $(hide) $(AAPT2) link -o $@ \ $(addprefix --manifest ,$(PRIVATE_ANDROID_MANIFEST)) \ $(addprefix -I ,$(PRIVATE_AAPT_INCLUDES)) \ $(addprefix -I ,$(PRIVATE_SHARED_ANDROID_LIBRARIES)) \ - $(addprefix -A ,$(PRIVATE_ASSET_DIR)) \ $(addprefix --java ,$(PRIVATE_SOURCE_INTERMEDIATES_DIR)) \ $(addprefix --proguard ,$(PRIVATE_PROGUARD_OPTIONS_FILE)) \ $(addprefix --min-sdk-version ,$(PRIVATE_DEFAULT_APP_TARGET_SDK)) \ diff --git a/core/package_internal.mk b/core/package_internal.mk index b3d1620d1..b47b35182 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -355,8 +355,6 @@ ifdef LOCAL_USE_AAPT2 my_compiled_res_base_dir := $(intermediates)/flat-res my_generated_res_dirs := $(rs_generated_res_dir) my_generated_res_dirs_deps := $(RenderScript_file_stamp) -my_asset_dirs := $(LOCAL_ASSET_DIR) -my_full_asset_paths := $(all_assets) # Add AAPT2 link specific flags. $(my_res_package): PRIVATE_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) --no-static-lib-packages include $(BUILD_SYSTEM)/aapt2.mk