patch: --disable-demos



Hi,

After building gtkmm on a slow machine i was happy to discover the
--disable-examples configure option. This shaved some 20 minutes off the
total buildtime (~40 minutes on this box :/ ).

What is missed was an option to disable the building of the demos.
They're not as big as the examples, but they still take me some 8
minutes to build. Especially when you are using gentoo this is quite
pointless because the demos are removed after the build :P

I patched configure.in and Makefile.am to add a --disable-demos option
which does exactly as it says. Patches are diffs agains latest (2.4.8)
files and are attached to this mail.

Murray, i'm not sure if you want this stuff on the list, if not, i can
file a bug in bugzilla.

Regards,

Bart
-- 
www.titanium-it.nl --- Open Minded Open Source
www.heavenisopen.com <-----Another Source
--- Makefile.am	2004-11-12 10:43:18.000000000 +0100
+++ patched/Makefile.am	2004-11-30 23:06:23.980945488 +0100
@@ -1,5 +1,5 @@
 
-SUBDIRS		= tools pango atk gdk gtk @EXAMPLE_SUBDIR@ docs demos tests
+SUBDIRS		= tools pango atk gdk gtk @EXAMPLE_SUBDIR@ @DEMO_SUBDIR@ docs tests
 DIST_SUBDIRS	= $(SUBDIRS) MSVC_Net2003 scripts
 
 EXTRA_DIST	= build_shared/Makefile_build.am_fragment \
--- configure.in	2004-11-30 15:40:59.000000000 +0100
+++ patched/configure.in	2004-11-30 23:19:58.572108808 +0100
@@ -230,6 +230,16 @@
 
 AC_SUBST(EXAMPLE_SUBDIR)
 
+AC_ARG_ENABLE(demos, [AC_HELP_STRING([--enable-demos],
+                                        [build the included demos [default=yes]])],,
+                        [enable_demos=yes])
+if test "x$enable_demos" = "xyes"; then
+  DEMO_SUBDIR="demos"
+else
+  DEMO_SUBDIR=""
+fi
+
+AC_SUBST(DEMO_SUBDIR)
 
 # Dummy conditional just to make automake-1.4 happy.
 # We need an always-false condition in docs/Makefile.am.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]