c52b5a0883
* Toybox supports it now, and there is no real need for this tool. Change-Id: I6f3f8e10f148ffc9626cd150ea21275096d2daed
31 lines
1,012 B
Makefile
31 lines
1,012 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
################################
|
|
# Copies the APN list file into $(TARGET_COPY_OUT_PRODUCT)/etc for the product as apns-conf.xml.
|
|
# In the case where $(CUSTOM_APNS_FILE) is defined, the content of $(CUSTOM_APNS_FILE)
|
|
# is added or replaced to the $(DEFAULT_APNS_FILE).
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := apns-conf.xml
|
|
LOCAL_MODULE_CLASS := ETC
|
|
|
|
DEFAULT_APNS_FILE := vendor/lineage/prebuilt/common/etc/apns-conf.xml
|
|
|
|
ifdef CUSTOM_APNS_FILE
|
|
CUSTOM_APNS_SCRIPT := vendor/lineage/tools/custom_apns.py
|
|
FINAL_APNS_FILE := $(local-generated-sources-dir)/apns-conf.xml
|
|
|
|
$(FINAL_APNS_FILE): PRIVATE_SCRIPT := $(CUSTOM_APNS_SCRIPT)
|
|
$(FINAL_APNS_FILE): PRIVATE_CUSTOM_APNS_FILE := $(CUSTOM_APNS_FILE)
|
|
$(FINAL_APNS_FILE): $(CUSTOM_APNS_SCRIPT) $(DEFAULT_APNS_FILE)
|
|
rm -f $@
|
|
python $(PRIVATE_SCRIPT) $@ $(PRIVATE_CUSTOM_APNS_FILE)
|
|
else
|
|
FINAL_APNS_FILE := $(DEFAULT_APNS_FILE)
|
|
endif
|
|
|
|
LOCAL_PREBUILT_MODULE_FILE := $(FINAL_APNS_FILE)
|
|
|
|
LOCAL_PRODUCT_MODULE := true
|
|
|
|
include $(BUILD_PREBUILT)
|