public
Description: A JSON reader and writer library using GLib and GObject
Homepage: http://live.gnome.org/JsonGlib
Clone URL: git://github.com/ebassi/json-glib.git
Conditionally compile the test suite

If the --disable-glibtest command line switch has been given to the
configure script, the test suite should be disabled and not built.

This commit disables recursion in the tests/ and json-glib/tests
when the ENABLE_GLIB_TEST Makefile conditional has been set.
Emmanuele Bassi (author)
Fri Jun 13 03:22:35 -0700 2008
commit  bc5c7225535ef447743ac59ecdba8c237549a108
tree    bf3fd588a8a27fb0c906baae18d7348fe18a6283
parent  81c02ef3db6901655f8a7117e5e2675d37096daf
...
1
2
3
 
 
 
 
 
4
5
6
...
1
2
 
3
4
5
6
7
8
9
10
0
@@ -1,6 +1,10 @@
0
 include $(top_srcdir)/Makefile.decl
0
 
0
-SUBDIRS = json-glib doc tests
0
+SUBDIRS = json-glib doc
0
+
0
+if ENABLE_GLIB_TEST
0
+SUBDIRS += tests
0
+endif
0
 
0
 DIST_SUBDIRS = json-glib doc tests
0
 
...
63
64
65
 
 
66
67
68
...
127
128
129
 
130
...
63
64
65
66
67
68
69
70
...
129
130
131
132
133
0
@@ -63,6 +63,8 @@ PKG_CHECK_MODULES(JSON, gobject-2.0 >= glib_req_version)
0
 AC_SUBST(JSON_CFLAGS)
0
 AC_SUBST(JSON_LIBS)
0
 
0
+AM_CONDITIONAL(ENABLE_GLIB_TEST, test "x$enable_glibtest" = "xyes")
0
+
0
 dnl = Enable debug level ===================================================
0
 
0
 m4_define([debug_default],
0
@@ -127,4 +129,5 @@ echo " Prefix: ${prefix}"
0
 echo " Debug level: ${enable_debug}"
0
 echo " Compiler flags: ${CPPFLAGS}"
0
 echo " API reference: ${enable_gtk_doc}"
0
+echo " Enable test suite: ${enable_glibtest}"
0
 echo ""
...
1
2
 
3
 
4
5
6
...
1
2
3
4
5
6
7
8
0
@@ -1,6 +1,8 @@
0
 include $(top_srcdir)/Makefile.decl
0
 
0
+if ENABLE_GLIB_TEST
0
 SUBDIRS = . tests
0
+endif
0
 
0
 DIST_SUBDIRS = tests
0
 

Comments

    No one has commented yet.