2009-11-06 08:27:19 +00:00
|
|
|
# Configuration for OpenGL ES on Linux
|
|
|
|
|
|
|
|
include $(TOP)/configs/linux
|
|
|
|
|
|
|
|
CONFIG_NAME = linux-opengl-es
|
|
|
|
|
|
|
|
# Directories to build
|
|
|
|
LIB_DIR = lib
|
gallium: introduce target directory
Currently there are still at least two functions bundled up inside the
winsys concept:
a) that of a backend resource manager, sometimes capable of performing
present() operations,
b) the initialization code/routine for the whole driver stack.
The inclusion of (b) makes it difficult to share implementations of
(a) between different drivers. For instance, a clean xlib winsys
could be of use for software-rasterized VG, GLES, EGL, etc, stacks.
But that is only true as long as there is no dependency from the
winsys to higher level code, as would be the case when we include (b)
in this component.
This change creates a new gallium/targets subtree, specifically for
implementing the glue needed to build individual driver stacks, and
moves that code out of a single example winsys, namely xlib.
Other drivers continue to build unchanged, but hopefully can migrate
to this structure over time.
2010-03-08 19:11:35 +00:00
|
|
|
SRC_DIRS = egl glsl mesa/es gallium gallium/winsys gallium/targets
|
2009-11-10 04:48:14 +00:00
|
|
|
PROGRAM_DIRS = es1/screen es1/xegl es2/xegl
|
2009-11-06 08:27:19 +00:00
|
|
|
|
2010-01-22 08:31:43 +00:00
|
|
|
# egl st needs this
|
2010-01-22 07:18:45 +00:00
|
|
|
DEFINES += -DGLX_DIRECT_RENDERING
|
|
|
|
|
2009-11-06 08:27:19 +00:00
|
|
|
# no mesa or egl drivers
|
|
|
|
DRIVER_DIRS =
|
|
|
|
EGL_DRIVERS_DIRS =
|
|
|
|
|
|
|
|
GALLIUM_DRIVERS_DIRS = softpipe
|
|
|
|
|
2010-01-22 08:02:39 +00:00
|
|
|
# build libGLES*.so
|
2009-11-06 08:27:19 +00:00
|
|
|
GALLIUM_STATE_TRACKERS_DIRS = es
|
2009-11-10 04:48:14 +00:00
|
|
|
|
2010-01-22 08:02:39 +00:00
|
|
|
# build egl_x11_{swrast,i915}.so
|
2009-11-10 04:48:14 +00:00
|
|
|
GALLIUM_DRIVERS_DIRS += trace i915
|
2010-01-22 08:31:43 +00:00
|
|
|
GALLIUM_STATE_TRACKERS_DIRS += egl
|
2009-11-10 04:48:14 +00:00
|
|
|
GALLIUM_WINSYS_DIRS += drm
|
2010-01-22 08:02:39 +00:00
|
|
|
GALLIUM_WINSYS_DRM_DIRS += intel swrast
|