2011-12-11 16:10:25 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2012-05-29 15:24:34 +02:00
|
|
|
# name of the librairy
|
2011-12-13 14:35:00 +01:00
|
|
|
LOCAL_MODULE := ewol
|
2012-05-29 15:24:34 +02:00
|
|
|
|
|
|
|
# get the tag of the current project :
|
|
|
|
LOCAL_VERSION_TAG=$(shell cd $(LOCAL_PATH) ; git describe --tags)
|
|
|
|
LOCAL_VERSION_TAG_SHORT=$(shell cd $(LOCAL_PATH) ; git describe --tags --abbrev=0)
|
|
|
|
$(info $(LOCAL_MODULE) version TAG : $(LOCAL_VERSION_TAG))
|
|
|
|
|
|
|
|
# name of the dependency
|
|
|
|
LOCAL_STATIC_LIBRARIES := libetk libfreetype libtinyxml libzip libpng libagg libparsersvg liblua
|
2011-12-11 16:10:25 +01:00
|
|
|
|
2011-12-30 10:44:44 +01:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
2011-12-11 16:10:25 +01:00
|
|
|
|
2011-12-17 08:30:52 +01:00
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
2011-12-13 14:35:00 +01:00
|
|
|
LOCAL_EXPORT_LDLIBS := -lGLESv1_CM -ldl -llog -lz
|
|
|
|
|
2012-03-29 10:01:50 +02:00
|
|
|
ifeq ($(DEBUG),1)
|
2011-12-11 16:10:25 +01:00
|
|
|
LOCAL_CFLAGS := -D__PLATFORM__Android \
|
|
|
|
-Wno-write-strings \
|
|
|
|
-DETK_DEBUG_LEVEL=3 \
|
|
|
|
-DEWOL_DEBUG_LEVEL=3 \
|
2012-05-29 15:24:34 +02:00
|
|
|
-DEWOL_VERSION_TAG_NAME="\"$(LOCAL_VERSION_TAG_SHORT)-debug\"" \
|
2011-12-11 16:10:25 +01:00
|
|
|
-DVERSION_BUILD_TIME="\"pasd_heure\"" \
|
2012-02-19 18:52:56 +01:00
|
|
|
-DDATA_IN_APK \
|
2012-05-30 10:23:14 +02:00
|
|
|
-DLUA_COMPAT_ALL \
|
2012-02-19 18:52:56 +01:00
|
|
|
-frtti
|
2012-03-29 10:01:50 +02:00
|
|
|
else
|
|
|
|
LOCAL_CFLAGS := -D__PLATFORM__Android \
|
|
|
|
-Wno-write-strings \
|
|
|
|
-DETK_DEBUG_LEVEL=1 \
|
|
|
|
-DEWOL_DEBUG_LEVEL=1 \
|
2012-05-29 15:24:34 +02:00
|
|
|
-DEWOL_VERSION_TAG_NAME="\"$(LOCAL_VERSION_TAG_SHORT)-debug\"" \
|
2012-03-29 10:01:50 +02:00
|
|
|
-DVERSION_BUILD_TIME="\"pasd_heure\"" \
|
|
|
|
-DDATA_IN_APK \
|
2012-05-30 10:23:14 +02:00
|
|
|
-DLUA_COMPAT_ALL \
|
2012-03-29 10:01:50 +02:00
|
|
|
-frtti
|
|
|
|
endif
|
2011-12-11 16:10:25 +01:00
|
|
|
|
2011-12-17 08:30:52 +01:00
|
|
|
# load the common sources file of the platform
|
|
|
|
include $(LOCAL_PATH)/file.mk
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := ewol/base/guiAndroid.cpp $(FILE_LIST)
|
2011-12-11 16:10:25 +01:00
|
|
|
|
|
|
|
# Ewol Test Software :
|
|
|
|
LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lz
|
|
|
|
|
2011-12-13 14:35:00 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2011-12-17 08:30:52 +01:00
|
|
|
|
|
|
|
|