From b55346151c3122d356d1e0af5f73bba184fbaa81 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 17 Nov 2010 19:13:55 +0000 Subject: [PATCH] build: Cogl-2.0 API reference should be conditionally built Building the API reference for Cogl 2.0 is fairly confusing: the API itself is experimental and for internal use only -- though we want feedback for it. Let's build the API reference only when Clutter is configured with a specific configure switch, so that people that wish to give feedback on the API and its documentation can do it. --- configure.ac | 8 ++++++++ doc/reference/Makefile.am | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9830061b3..1603f505b 100644 --- a/configure.ac +++ b/configure.ac @@ -1042,6 +1042,14 @@ AC_SUBST(CAIRO_PREFIX) AC_SUBST(GLIB_PREFIX) AC_SUBST(PANGO_PREFIX) +AC_ARG_ENABLE([cogl2-reference], + [AC_HELP_STRING([--enable-cogl2-reference=@<:@no/yes@:>@], + [Build Cogl-2.0 API Reference])], + [enable_cogl2_reference=$enableval], + [enable_cogl2_reference=no]) + +AM_CONDITIONAL([BUILD_COGL2_REFERENCE], [test "x$enable_gtk_doc" = "xyes" && test "x$enable_cogl2_reference" = "xyes"]) + dnl === Manual ================================================================ AC_ARG_ENABLE([docs], diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am index 90acd8fdb..836e261c0 100644 --- a/doc/reference/Makefile.am +++ b/doc/reference/Makefile.am @@ -1 +1,7 @@ -SUBDIRS = cogl cogl-2.0 clutter cally +SUBDIRS = cogl clutter cally + +if BUILD_COGL2_REFERENCE +SUBDIRS += cogl-2.0 +endif + +DIST_SUBDIRS = cogl cogl-2.0 clutter cally