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.
This commit is contained in:
Emmanuele Bassi 2010-11-17 19:13:55 +00:00
parent 8f60d5a3a2
commit b55346151c
2 changed files with 15 additions and 1 deletions

View File

@ -1042,6 +1042,14 @@ AC_SUBST(CAIRO_PREFIX)
AC_SUBST(GLIB_PREFIX) AC_SUBST(GLIB_PREFIX)
AC_SUBST(PANGO_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 ================================================================ dnl === Manual ================================================================
AC_ARG_ENABLE([docs], AC_ARG_ENABLE([docs],

View File

@ -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