forked from CyanogenMod/android_packages_apps_CMUpdater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
35 lines (25 loc) · 978 Bytes
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
LOCAL_PATH:= $(call my-dir)
ifneq ($(TARGET_RECOVERY_FSTAB),)
recovery_fstab := $(strip $(wildcard $(TARGET_RECOVERY_FSTAB)))
else
recovery_fstab := $(strip $(wildcard $(TARGET_DEVICE_DIR)/recovery.fstab))
endif
ALTERNATE_IS_INTERNAL := false
ifneq ($(recovery_fstab),)
recovery_fstab := $(ANDROID_BUILD_TOP)/$(recovery_fstab)
ifneq ($(shell grep "/emmc" $(recovery_fstab)),)
ALTERNATE_IS_INTERNAL := true
endif
endif
include $(CLEAR_VARS)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
ifeq ($(ALTERNATE_IS_INTERNAL), true)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res-compat $(LOCAL_RESOURCE_DIR)
endif
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += src/com/cyanogenmod/updater/interfaces/IUpdateCheckServiceCallback.aidl \
src/com/cyanogenmod/updater/interfaces/IUpdateCheckService.aidl
LOCAL_PACKAGE_NAME := CMUpdater
LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags
include $(BUILD_PACKAGE)