From 11624f96f6c389d455667d8014a66354b1440eef Mon Sep 17 00:00:00 2001 From: wangtongli <276792882@qq.com> Date: Tue, 1 Nov 2016 02:58:25 +0800 Subject: [PATCH] support customize_framework-res.sh --- porting.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/porting.mk b/porting.mk index 7e4f8ce..6f7584e 100644 --- a/porting.mk +++ b/porting.mk @@ -8,6 +8,7 @@ include $(PORT_BUILD)/prebuilt.mk # The global variable could be used in local makefile, and the name # would not be changed in future SHELL := /bin/bash +TMP_DIR := out TOOL_DIR := $(PORT_ROOT)/tools STOCKROM_DIR := $(basename $(ZIP_FILE)) ZIP_DIR := $(TARGET_OUT_DIR)/ZIP @@ -140,6 +141,7 @@ framework-res-overlay-files:= $(call all-files-under-dir,$(OVERLAY_RES)) $(TARGET_OUT_DIR)/framework-res.apk: $(STOCKROM_DIR)/system/framework/framework-res.apk $(framework-res-overlay-files) @echo ">>> build $@..." $(APKTOOL) d -f $(STOCKROM_DIR)/system/framework/framework-res.apk -o $(TARGET_OUT_DIR)/framework-res + $(hide) $(ADDMIUIRES) $(TMP_DIR)/framework-res/res $(TMP_DIR)/framework-res/res $(AAPT) p -f -x --auto-add-overlay --wlan-replace Wi-Fi --wlan-replace WiFi \ --min-sdk-version $(ANDROID_PLATFORM) --target-sdk-version $(ANDROID_PLATFORM) \ $(addprefix -S ,$(wildcard $(OVERLAY_RES))) \