Android.mk

Eclipse版本Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_STATIC_JAVA_LIBRARIES := libgson_usage \

LOCAL_SRC_FILES := $(call all-java-files-under, src) \
src/com/togic/settingservice/ISettingService.aidl \
src/com/togic/settingservice/ISettingServiceCallback.aidl \
src/com/togic/togicactivity/IBackendService.aidl \

LOCAL_PACKAGE_NAME := TogicUsageStats
LOCAL_CERTIFICATE := platform
LOCAL_DEX_PREOPT := true


ifeq ($(TARGET_BUILD_TYPE), release)
#    LOCAL_PROGUARD_ENABLED := full
#    LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags
endif

include $(BUILD_PACKAGE)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES :=  libgson_usage:libs/gson-2.2.4.jar

include $(BUILD_MULTI_PREBUILT)

Android studuio版本Android.mk

LOCAL_PATH := $(call my-dir)/app/src/main

LOCAL_SRC_FILES := $(call all-java-files-under, java) \
src/com/togic/settingservice/ISettingService.aidl \
src/com/togic/settingservice/ISettingServiceCallback.aidl \
src/com/togic/togicactivity/IBackendService.aidl \


LOCAL_PACKAGE_NAME := FactoryTest
LOCAL_CERTIFICATE := platform
LOCAL_MODULE_TAGS := optional
LOCAL_DEX_PREOPT := false
LOCAL_PROGUARD_ENABLED := disabled

include $(BUILD_PACKAGE)

include $(call all-makefiles-under, $(LOCAL_PATH))

你可能感兴趣的:(Android.mk)