blob: 83eecee9e3a5f912586ee257a5d60720841c370d [file] [log] [blame]
Steve Kondikd91ddb52015-11-14 23:56:10 +01001LOCAL_PATH := $(call my-dir)
2
3# a wrapper for curl which provides wget syntax, for compatibility
4include $(CLEAR_VARS)
5LOCAL_MODULE := wget
6LOCAL_SRC_FILES := bin/wget
7LOCAL_MODULE_TAGS := optional
8LOCAL_MODULE_CLASS := EXECUTABLES
9LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
10include $(BUILD_PREBUILT)
Rashed Abdel-Tawab0d2fa552018-09-06 08:48:26 -070011
12################################
13# Copies the APN list file into system/etc for the product as apns-conf.xml.
14# In the case where $(CUSTOM_APNS_FILE) is defined, the content of $(CUSTOM_APNS_FILE)
15# is added or replaced to the $(DEFAULT_APNS_FILE).
16include $(CLEAR_VARS)
17
18LOCAL_MODULE := apns-conf.xml
19LOCAL_MODULE_CLASS := ETC
20
21DEFAULT_APNS_FILE := vendor/lineage/prebuilt/common/etc/apns-conf.xml
22
23ifdef CUSTOM_APNS_FILE
24CUSTOM_APNS_SCRIPT := vendor/lineage/tools/custom_apns.py
25FINAL_APNS_FILE := $(local-generated-sources-dir)/apns-conf.xml
26
27$(FINAL_APNS_FILE): PRIVATE_SCRIPT := $(CUSTOM_APNS_SCRIPT)
28$(FINAL_APNS_FILE): PRIVATE_CUSTOM_APNS_FILE := $(CUSTOM_APNS_FILE)
29$(FINAL_APNS_FILE): $(CUSTOM_APNS_SCRIPT) $(DEFAULT_APNS_FILE)
30 rm -f $@
31 python $(PRIVATE_SCRIPT) $@ $(PRIVATE_CUSTOM_APNS_FILE)
32else
33FINAL_APNS_FILE := $(DEFAULT_APNS_FILE)
34endif
35
36LOCAL_PREBUILT_MODULE_FILE := $(FINAL_APNS_FILE)
37
38include $(BUILD_PREBUILT)