summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-09-17 21:58:55 +0100
committerRobert Bragg <robert@linux.intel.com>2012-09-24 16:04:17 +0100
commit6357960e1b91081546adf1bb110067d7db4d7400 (patch)
tree2e0f3c8db548e5aa1d883d83d42f2fc9a44a0a4f
parentde063914078c8717ddcbc5417f45e9efb4e3a6ea (diff)
downloadcogl-6357960e1b91081546adf1bb110067d7db4d7400.tar.gz
Build: Add a --enable-standalone option
This option will generate a libcogl2 DSO that depends on the least possible external libraries. Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r--configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index aa5cae9f..fe39d76b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,6 +186,26 @@ dnl Handle extra configure options
dnl ================================================================
dnl ============================================================
+dnl Standalone cogl
+dnl ============================================================
+
+AC_ARG_ENABLE(
+ [standalone],
+ [AC_HELP_STRING([--enable-debug=@<:@no/yes@:>@], [Build Cogl without any external depedency @<:@default=no@:>@])],
+ [],
+ enable_standalone=no
+)
+AS_IF([test "x$enable_standalone" = "xyes"],
+ [
+ enable_cairo=no
+ enable_glib=no
+ enable_cogl_pango=no
+ enable_nls=no
+ enable_gdk_pixbuf=no
+ ]
+)
+
+dnl ============================================================
dnl Enable debugging
dnl ============================================================
m4_define([debug_default], [m4_if(cogl_release_status, [git], [yes], [no])])