From: Matt Turner Date: Thu, 20 Sep 2012 22:08:02 +0000 (-0700) Subject: build: Don't build libdricore if not building classic drivers X-Git-Tag: accepted/2.0alpha-wayland/20121114.171706~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ddb9ecca3b0f820feb4dee6bd8901f8b6e3ee0d8;p=profile%2Fivi%2Fmesa.git build: Don't build libdricore if not building classic drivers (cherry picked from commit 523c01524638b3d1bb363f4c0a647b0777840b7a) --- diff --git a/configure.ac b/configure.ac index 0ae8da3..1a795ca 100644 --- a/configure.ac +++ b/configure.ac @@ -1089,6 +1089,7 @@ if test "x$enable_dri" = xyes; then DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS" GALLIUM_DRI_LIB_DEPS="$GALLIUM_DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS" fi +AM_CONDITIONAL(NEED_LIBDRICORE, test -n "$DRI_DIRS") AC_SUBST([DRI_DIRS]) AC_SUBST([EXPAT_INCLUDES]) AC_SUBST([DRI_LIB_DEPS]) diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am index a76df8c..feec107 100644 --- a/src/mesa/Makefile.am +++ b/src/mesa/Makefile.am @@ -19,7 +19,11 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -SUBDIRS = x86 x86-64 . libdricore drivers +if NEED_LIBDRICORE +DRICORE_SUBDIR = libdricore +endif + +SUBDIRS = x86 x86-64 . $(DRICORE_SUBDIR) drivers gldir = $(includedir)/GL gl_HEADERS = $(top_srcdir)/include/GL/*.h