From bfa66bd6f941920cf32ce79fb103c3755b4dd8fb Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 21 Sep 2009 17:57:57 +0800 Subject: mesa/es: Add OpenGL ES overlay. This is primitive support for OpenGL ES. It uses a subset of mesa sources to build libesXgallium.a and libesXapi.a, where X is 1 for OpenGL ES 1.x, 2 for OpenGL ES 2.x. The static libraries serve the same purpose as libmesagallium.a and libglapi.a do for OpenGL. This is based on the work of opengl-es branch. Signed-off-by: Chia-I Wu --- Makefile | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7f073fd516..4c4aba025e 100644 --- a/Makefile +++ b/Makefile @@ -303,10 +303,25 @@ MAIN_FILES = \ $(DIRECTORY)/progs/util/sampleMakefile \ $(DIRECTORY)/windows/VC8/ -EGL_FILES = \ - $(DIRECTORY)/include/EGL/*.h \ +ES_FILES = \ $(DIRECTORY)/include/GLES/*.h \ $(DIRECTORY)/include/GLES2/*.h \ + $(DIRECTORY)/src/mesa/glapi/*.xml \ + $(DIRECTORY)/src/mesa/glapi/*.py \ + $(DIRECTORY)/src/mesa/glapi/*.dtd \ + $(DIRECTORY)/src/mesa/es/glapi/Makefile \ + $(DIRECTORY)/src/mesa/es/glapi/*.xml \ + $(DIRECTORY)/src/mesa/es/glapi/*.py \ + $(DIRECTORY)/src/mesa/es/state_tracker/*.[ch] \ + $(DIRECTORY)/src/mesa/es/main/*.[ch] \ + $(DIRECTORY)/src/mesa/es/main/*.py \ + $(DIRECTORY)/src/mesa/es/main/*.txt \ + $(DIRECTORY)/src/mesa/es/main/es*_special \ + $(DIRECTORY)/src/mesa/es/Makefile \ + $(DIRECTORY)/src/mesa/es/sources.mak \ + +EGL_FILES = \ + $(DIRECTORY)/include/EGL/*.h \ $(DIRECTORY)/src/egl/Makefile \ $(DIRECTORY)/src/egl/*/Makefile \ $(DIRECTORY)/src/egl/*/*.[ch] \ @@ -477,6 +492,7 @@ DEPEND_FILES = \ LIB_FILES = \ $(MAIN_FILES) \ + $(ES_FILES) \ $(EGL_FILES) \ $(GALLIUM_FILES) \ $(DRI_FILES) \ -- cgit v1.2.3 From 97ea8e9263814634d2f718c82fb58464d20683f8 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 6 Nov 2009 16:27:19 +0800 Subject: Add new config for OpenGL ES. Signed-off-by: Chia-I Wu --- Makefile | 1 + configs/linux-opengl-es | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 configs/linux-opengl-es (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4c4aba025e..5029f72367 100644 --- a/Makefile +++ b/Makefile @@ -126,6 +126,7 @@ linux-ia64-icc-static \ linux-icc \ linux-icc-static \ linux-llvm \ +linux-opengl-es \ linux-osmesa \ linux-osmesa-static \ linux-osmesa16 \ diff --git a/configs/linux-opengl-es b/configs/linux-opengl-es new file mode 100644 index 0000000000..2ba94b61de --- /dev/null +++ b/configs/linux-opengl-es @@ -0,0 +1,21 @@ +# Configuration for OpenGL ES on Linux + +include $(TOP)/configs/linux + +CONFIG_NAME = linux-opengl-es + +# Directories to build +LIB_DIR = lib +SRC_DIRS = egl mesa/es gallium gallium/winsys +PROGRAM_DIRS = es1/xegl es2/xegl + +# no mesa or egl drivers +DRIVER_DIRS = +EGL_DRIVERS_DIRS = + +GALLIUM_DRIVERS_DIRS = softpipe + +# build egl_softpipe.so +GALLIUM_WINSYS_DIRS = egl_xlib +# and libGLES*.so +GALLIUM_STATE_TRACKERS_DIRS = es -- cgit v1.2.3 From 976c858acc36b5ec1bf03c24b10e8bae81c2a21f Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 23 Dec 2009 11:18:48 +0800 Subject: Clean up ES_FILES. Signed-off-by: Chia-I Wu --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5029f72367..b74e8485ab 100644 --- a/Makefile +++ b/Makefile @@ -315,9 +315,9 @@ ES_FILES = \ $(DIRECTORY)/src/mesa/es/glapi/*.py \ $(DIRECTORY)/src/mesa/es/state_tracker/*.[ch] \ $(DIRECTORY)/src/mesa/es/main/*.[ch] \ + $(DIRECTORY)/src/mesa/es/main/*.xml \ $(DIRECTORY)/src/mesa/es/main/*.py \ - $(DIRECTORY)/src/mesa/es/main/*.txt \ - $(DIRECTORY)/src/mesa/es/main/es*_special \ + $(DIRECTORY)/src/mesa/es/main/*.dtd \ $(DIRECTORY)/src/mesa/es/Makefile \ $(DIRECTORY)/src/mesa/es/sources.mak \ -- cgit v1.2.3