[Mesa-dev] [PATCH automake] gallium/auxiliary: Add possibility to build libgallium shared.
Johannes Obermayr
johannesobermayr at gmx.de
Mon Dec 3 14:44:09 PST 2012
---
configure.ac | 7 +++++++
src/gallium/auxiliary/Makefile.am | 8 ++++++++
2 Dateien geändert, 15 Zeilen hinzugefügt(+)
diff --git a/configure.ac b/configure.ac
index 241b480..e4021b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -729,6 +729,13 @@ fi
AC_SUBST([SHARED_GLAPI])
AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes)
+AC_ARG_ENABLE([shared-gallium],
+ [AS_HELP_STRING([--enable-shared-gallium],
+ [Enable shared gallium core @<:@default=no@:>@])],
+ [enable_shared_gallium="$enableval"],
+ [enable_shared_gallium=no])
+AM_CONDITIONAL(HAVE_SHARED_GALLIUM, test x$enable_shared_gallium = xyes)
+
dnl
dnl Driver specific build directories
dnl
diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am
index a4eee47..0e34bee 100644
--- a/src/gallium/auxiliary/Makefile.am
+++ b/src/gallium/auxiliary/Makefile.am
@@ -3,8 +3,16 @@ AUTOMAKE_OPTIONS = subdir-objects
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
+if HAVE_SHARED_GALLIUM
+
+lib_LTLIBRARIES = libgallium.la
+
+else
+
noinst_LTLIBRARIES = libgallium.la
+endif
+
AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/auxiliary/util \
$(GALLIUM_CFLAGS)
--
1.7.10.4
More information about the mesa-dev
mailing list