add configuration file for generating the project
This commit is contained in:
parent
d0c95c91ed
commit
42e822a241
2
Build
2
Build
@ -1 +1 @@
|
||||
Subproject commit be3793f0e962b61ecc9e98bdd461b413e652772e
|
||||
Subproject commit ced1b73b25182cffba885fb4738ca8d21fe446dc
|
@ -5,6 +5,8 @@ include $(CLEAR_VARS)
|
||||
# name of the librairy
|
||||
LOCAL_MODULE := ewol
|
||||
|
||||
LOCAL_CONFIG_FILES := Config.in
|
||||
|
||||
# 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)
|
||||
|
14
Sources/libewol/Config.in
Normal file
14
Sources/libewol/Config.in
Normal file
@ -0,0 +1,14 @@
|
||||
menu "General"
|
||||
choice
|
||||
prompt "OpenGl mode"
|
||||
default EWOL_OPENGL_ES_V1
|
||||
help
|
||||
OpenGL mode possible :
|
||||
0 : openGL basic mode, vertex buffer.
|
||||
1 : OpenGl 2 ==> no vertex bufffer but enable Shader system
|
||||
config EWOL_OPENGL_ES_V1
|
||||
bool "0: openGl ES 1.0"
|
||||
config EWOL_OPENGL_ES_V2
|
||||
bool "1: openGl ES 2.0"
|
||||
endchoice
|
||||
endmenu
|
@ -5,6 +5,8 @@ include $(CLEAR_VARS)
|
||||
# name of the librairy
|
||||
LOCAL_MODULE := ewol
|
||||
|
||||
LOCAL_CONFIG_FILES := Config.in
|
||||
|
||||
# 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)
|
||||
@ -17,7 +19,6 @@ LOCAL_C_INCLUDES :=
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||
LOCAL_EXPORT_LDLIBS := -lGL -lX11
|
||||
# -lGLU -lGLEW
|
||||
|
||||
#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
|
||||
# needed package on linux : libgl1-mesa-dev libglew1.5-dev
|
||||
@ -27,7 +28,7 @@ LOCAL_CFLAGS := -Wno-write-strings \
|
||||
-DEWOL_VERSION_TAG_NAME="\"$(LOCAL_VERSION_TAG_SHORT)-$(BUILD_DIRECTORY_MODE)\"" \
|
||||
-Wall
|
||||
|
||||
ifeq ("$(SHADER)","1")
|
||||
ifdef CONFIG_EWOL_OPENGL_ES_V1
|
||||
LOCAL_CFLAGS += -D__VIDEO__OPENGL_ES_2
|
||||
LOCAL_EXPORT_CFLAGS := -D__VIDEO__OPENGL_ES_2
|
||||
endif
|
||||
|
@ -5,6 +5,8 @@ include $(CLEAR_VARS)
|
||||
# name of the librairy
|
||||
LOCAL_MODULE := ewol
|
||||
|
||||
LOCAL_CONFIG_FILES := Config.in
|
||||
|
||||
# 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user