[gnome-control-center/wip/libgnome-control-center] Add a configure option to enable building the example panel
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/libgnome-control-center] Add a configure option to enable building the example panel
- Date: Wed, 19 May 2010 16:51:43 +0000 (UTC)
commit aaba6c30301c4fbf45be3901503f53f1fe03491d
Author: Thomas Wood <thomas wood intel com>
Date: Wed May 19 17:51:33 2010 +0100
Add a configure option to enable building the example panel
Do not build the example panel by default, but allow it to be enabled
through a configure option.
Makefile.am | 8 ++++++--
configure.ac | 13 +++++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index d465573..7bb045f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,11 +1,15 @@
SUBDIRS = po libwindow-settings libgnome-control-center shell capplets \
- font-viewer help docs examples
-DIST_SUBDIRS = po libwindow-settings capplets font-viewer help shell typing-break
+ font-viewer help docs
+DIST_SUBDIRS = po libwindow-settings capplets font-viewer help shell typing-break examples
if HAVE_TYPING_BREAK
SUBDIRS += typing-break
endif
+if BUILD_EXAMPLES
+SUBDIRS += examples
+endif
+
schemasdir = @GCONF_SCHEMA_FILE_DIR@
schemas_in_files = gnome-control-center.schemas.in
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
diff --git a/configure.ac b/configure.ac
index 8fa7da3..fab6a3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -295,6 +295,19 @@ AC_SUBST(PANEL_LIBS)
PANEL_LDFLAGS="-export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'"
AC_SUBST(PANEL_LDFLAGS)
+dnl ==============================================
+dnl Example Panel
+dnl ==============================================
+
+AC_MSG_CHECKING([whether to build the example panel])
+AC_ARG_ENABLE([examples],
+ AC_HELP_STRING([--enable-examples],
+ [enable the examples]),,
+ [enable_examples=no])
+AC_MSG_RESULT([$enable_examples])
+
+AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_examples" = "xyes")
+
dnl =======================================
dnl Update Mime Database
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]