2011-12-16 17:29:24 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2012-03-29 17:48:59 +02:00
|
|
|
# name of the librairy
|
2011-12-16 17:29:24 +01:00
|
|
|
LOCAL_MODULE := ewol
|
2012-03-29 17:48:59 +02:00
|
|
|
|
2012-08-31 16:50:36 +02:00
|
|
|
LOCAL_CONFIG_FILES := Config.in
|
|
|
|
|
2012-03-29 17:48:59 +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
|
2012-08-17 18:34:37 +02:00
|
|
|
LOCAL_LIBRARIES := etk freetype tinyxml libzip libpng parsersvg lua portaudio
|
2011-12-16 17:29:24 +01:00
|
|
|
|
2012-07-16 18:01:14 +02:00
|
|
|
LOCAL_C_INCLUDES :=
|
2011-12-16 17:29:24 +01:00
|
|
|
|
2011-12-20 23:42:19 +01:00
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
2012-08-23 18:00:35 +02:00
|
|
|
LOCAL_EXPORT_LDLIBS := -lGL -lX11
|
|
|
|
|
|
|
|
#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
|
|
|
|
# needed package on linux : libgl1-mesa-dev libglew1.5-dev
|
|
|
|
|
2011-12-16 17:29:24 +01:00
|
|
|
|
2012-08-10 12:18:24 +02:00
|
|
|
LOCAL_CFLAGS := -Wno-write-strings \
|
|
|
|
-DEWOL_VERSION_TAG_NAME="\"$(LOCAL_VERSION_TAG_SHORT)-$(BUILD_DIRECTORY_MODE)\"" \
|
2012-03-23 17:57:27 +01:00
|
|
|
-Wall
|
2012-03-29 10:01:50 +02:00
|
|
|
|
2012-09-09 23:41:36 +02:00
|
|
|
#ifneq ("$(CONFIG__VIDEO__OPENGL_ES_2)","")
|
2012-09-01 20:43:46 +02:00
|
|
|
LOCAL_CFLAGS += -D__VIDEO__OPENGL_ES_2
|
|
|
|
LOCAL_EXPORT_CFLAGS := -D__VIDEO__OPENGL_ES_2
|
|
|
|
$(info Compilation For openGL-ES-v2 compatibility)
|
|
|
|
#endif
|
2012-08-29 10:14:08 +02:00
|
|
|
|
2011-12-16 17:29:24 +01:00
|
|
|
# load the common sources file of the platform
|
|
|
|
include $(LOCAL_PATH)/file.mk
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2012-08-20 16:50:29 +02:00
|
|
|
ewol/os/gui.X11.cpp \
|
|
|
|
ewol/audio/interfacePortAudio.cpp \
|
2011-12-16 17:29:24 +01:00
|
|
|
$(FILE_LIST)
|
|
|
|
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|