From da76a4d845367242c1ae7726d1dc23900f31e1e4 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Sun, 2 May 2010 14:09:52 -0400 Subject: mesa: Only compile ES files when ES1 or ES2 are selected This still requieres manual generation of the es1 and es2 glapis and is disabled by default. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2811ec9e40..ef8a7eef82 100644 --- a/configure.ac +++ b/configure.ac @@ -745,6 +745,8 @@ AC_ARG_ENABLE([gles2], API_DEFINES="" APIS="" +ES1_SOURCES="" +ES2_SOURCES="" if test "x$enable_opengl" = xno; then API_DEFINES="$API_DEFINES -DFEATURE_GL=0" else @@ -754,16 +756,20 @@ fi if test "x$enable_gles1" = xyes; then API_DEFINES="$API_DEFINES -DFEATURE_ES1=1" APIS="$APIS es1" + ES1_SOURCES='$(ES1_SOURCES)' fi if test "x$enable_gles2" = xyes; then API_DEFINES="$API_DEFINES -DFEATURE_ES2=1" APIS="$APIS es2" + ES2_SOURCES='$(ES2_SOURCES)' fi if test "x$enable_gles1" = xyes -o "x$enable_gles2"; then SRC_DIRS="$SRC_DIRS gles" fi AC_SUBST([API_DEFINES]) AC_SUBST([APIS]) +AC_SUBST([ES1_SOURCES]) +AC_SUBST([ES2_SOURCES]) dnl If $with_dri_drivers is yes, directories will be added through dnl platform checks -- cgit v1.2.3