Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (25 sloc) 978 Bytes
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)