2057f50e48
Change-Id: I3fe93982095722d22e726baf9561a6bde31f5bf1
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
# a wrapper for curl which provides wget syntax, for compatibility
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := wget
|
|
LOCAL_SRC_FILES := bin/wget
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_MODULE_CLASS := EXECUTABLES
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
|
|
include $(BUILD_PREBUILT)
|
|
|
|
################################
|
|
# 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)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := fonts_customization.xml
|
|
LOCAL_SRC_FILES := etc/fonts_customization.xml
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_MODULE_CLASS := ETC
|
|
LOCAL_PRODUCT_MODULE := true
|
|
include $(BUILD_PREBUILT)
|