simplify makefiles
This commit is contained in:
parent
431b3c77f9
commit
d8531a3a7c
@ -1,9 +1,4 @@
|
|||||||
LOCAL_PATH := $(call my-dir)
|
LOCAL_PATH := $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# load the common sources file of the platform
|
# load the common sources file of the platform
|
||||||
include $(LOCAL_PATH)/Generic.mk
|
include $(LOCAL_PATH)/Generic.mk
|
||||||
|
|
||||||
LOCAL_CFLAGS += -D__PLATFORM__Android
|
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
|
||||||
|
11
Generic.mk
11
Generic.mk
@ -1,3 +1,5 @@
|
|||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
# name of the librairy
|
# name of the librairy
|
||||||
LOCAL_MODULE := agg
|
LOCAL_MODULE := agg
|
||||||
@ -17,16 +19,11 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
|||||||
|
|
||||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
LOCAL_CFLAGS := -DAGG_VERSION_TAG_NAME="\"$(LOCAL_VERSION_TAG_SHORT)-$(BUILD_DIRECTORY_MODE)\""
|
||||||
LOCAL_CFLAGS := -DAGG_DEBUG_LEVEL=3 \
|
|
||||||
-DAGG_VERSION_TAG_NAME="\"$(LOCAL_VERSION_TAG_SHORT)-debug\""
|
|
||||||
else
|
|
||||||
LOCAL_CFLAGS := -DAGG_DEBUG_LEVEL=3 \
|
|
||||||
-DAGG_VERSION_TAG_NAME="\"$(LOCAL_VERSION_TAG_SHORT)-release\""
|
|
||||||
endif
|
|
||||||
|
|
||||||
# load the common sources file of the platform
|
# load the common sources file of the platform
|
||||||
include $(LOCAL_PATH)/file.mk
|
include $(LOCAL_PATH)/file.mk
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(FILE_LIST)
|
LOCAL_SRC_FILES := $(FILE_LIST)
|
||||||
|
|
||||||
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
5
Linux.mk
5
Linux.mk
@ -1,9 +1,4 @@
|
|||||||
LOCAL_PATH := $(call my-dir)
|
LOCAL_PATH := $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# load the common sources file of the platform
|
# load the common sources file of the platform
|
||||||
include $(LOCAL_PATH)/Generic.mk
|
include $(LOCAL_PATH)/Generic.mk
|
||||||
|
|
||||||
LOCAL_CFLAGS += -D__PLATFORM__Linux
|
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user