Rework the build system for a new tests approach
Perform a substantial cleanup of the build system with respect to
building and installing testcases.
First, Makefile.decl has been renamed glib.mk and substantially
expanded. We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.
By default, tests are no longer compiled as part of 'make'. They will
be built when 'make check' is run. The old behaviour can be obtained
with --enable-always-build-tests.
--disable-modular-tests is gone (because tests are no longer built by
default). There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.
A new glibtests.m4 file is introduced. Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).
Port our various test-installing Makefiles to the new framework.
This patch substantially improves the situation in the toplevel tests/
directory. Things are now somewhat under control there. There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.
As an experiment, 'make check' now runs the testcases on win32 builds,
by default. We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS. Most of
them are passing on win32.
Things are not quite done here, but this patch is already a substantial
improvement. More to come.
2013-05-30 00:07:32 -04:00
|
|
|
include $(top_srcdir)/glib.mk
|
2008-06-11 18:58:56 +00:00
|
|
|
|
Rework the build system for a new tests approach
Perform a substantial cleanup of the build system with respect to
building and installing testcases.
First, Makefile.decl has been renamed glib.mk and substantially
expanded. We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.
By default, tests are no longer compiled as part of 'make'. They will
be built when 'make check' is run. The old behaviour can be obtained
with --enable-always-build-tests.
--disable-modular-tests is gone (because tests are no longer built by
default). There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.
A new glibtests.m4 file is introduced. Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).
Port our various test-installing Makefiles to the new framework.
This patch substantially improves the situation in the toplevel tests/
directory. Things are now somewhat under control there. There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.
As an experiment, 'make check' now runs the testcases on win32 builds,
by default. We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS. Most of
them are passing on win32.
Things are not quite done here, but this patch is already a substantial
improvement. More to come.
2013-05-30 00:07:32 -04:00
|
|
|
noinst_LTLIBRARIES += libpcre.la
|
2012-02-12 19:14:59 +01:00
|
|
|
|
|
|
|
libpcre_la_CPPFLAGS = \
|
2007-03-15 13:01:31 +00:00
|
|
|
-DG_LOG_DOMAIN=\"GLib-GRegex\" \
|
2012-02-12 19:14:59 +01:00
|
|
|
-DHAVE_CONFIG_H \
|
Require C90 compliance
Assume all supported platforms implement C90, and therefore they
(correctly) implement atexit(), memmove(), setlocale(), strerror(),
and vprintf(), and have <float.h> and <limits.h>.
(Also remove the configure check testing that "do ... while (0)" works
correctly; the non-do/while-based version of G_STMT_START and
G_STMT_END was removed years ago, but the check remained. Also, remove
some checks that configure.ac claimed were needed for libcharset, but
aren't actually used.)
Note that removing the g_memmove() function is not an ABI break even
on systems where g_memmove() was previously not a macro, because it
was never marked GLIB_AVAILABLE_IN_ALL or listed in glib.symbols, so
it would have been glib-internal since 2004.
https://bugzilla.gnome.org/show_bug.cgi?id=710519
2013-10-19 13:03:58 -04:00
|
|
|
-DHAVE_MEMMOVE \
|
2007-03-15 13:01:31 +00:00
|
|
|
-DSUPPORT_UCP \
|
2012-02-12 19:14:59 +01:00
|
|
|
-DSUPPORT_UTF \
|
2007-03-15 13:01:31 +00:00
|
|
|
-DSUPPORT_UTF8 \
|
|
|
|
-DNEWLINE=-1 \
|
|
|
|
-DMATCH_LIMIT=10000000 \
|
2008-07-06 04:25:18 +00:00
|
|
|
-DMATCH_LIMIT_RECURSION=8192 \
|
2007-03-15 13:01:31 +00:00
|
|
|
-DMAX_NAME_SIZE=32 \
|
|
|
|
-DMAX_NAME_COUNT=10000 \
|
|
|
|
-DMAX_DUPLENGTH=30000 \
|
|
|
|
-DLINK_SIZE=2 \
|
|
|
|
-DPOSIX_MALLOC_THRESHOLD=10 \
|
2007-11-07 09:49:25 +00:00
|
|
|
-DPCRE_STATIC \
|
2012-02-12 19:14:59 +01:00
|
|
|
-UBSR_ANYCRLF \
|
|
|
|
-UEBCDIC \
|
2010-08-06 13:09:26 -04:00
|
|
|
$(glib_INCLUDES) \
|
2007-03-15 13:01:31 +00:00
|
|
|
@GLIB_DEBUG_FLAGS@ \
|
2007-03-15 15:17:17 +00:00
|
|
|
-DGLIB_COMPILATION \
|
2012-02-12 19:14:59 +01:00
|
|
|
$(AM_CPPFLAGS)
|
2007-03-15 13:01:31 +00:00
|
|
|
|
2012-02-12 19:14:59 +01:00
|
|
|
libpcre_la_CFLAGS = \
|
2013-01-18 13:23:40 -05:00
|
|
|
$(GLIB_HIDDEN_VISIBILITY_CFLAGS) \
|
2012-02-12 19:14:59 +01:00
|
|
|
$(PCRE_WARN_CFLAGS) \
|
|
|
|
$(DEP_CFLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
2007-03-15 13:01:31 +00:00
|
|
|
|
2012-02-12 19:14:59 +01:00
|
|
|
libpcre_la_LDFLAGS = \
|
|
|
|
-no-undefined \
|
|
|
|
$(AM_LDFLAGS)
|
2007-03-15 13:01:31 +00:00
|
|
|
|
|
|
|
libpcre_la_SOURCES = \
|
2012-02-12 19:14:59 +01:00
|
|
|
pcre_byte_order.c \
|
2007-11-07 04:57:22 +00:00
|
|
|
pcre_chartables.c \
|
2012-02-12 19:14:59 +01:00
|
|
|
pcre_compile.c \
|
2007-03-15 13:01:31 +00:00
|
|
|
pcre_config.c \
|
|
|
|
pcre_dfa_exec.c \
|
|
|
|
pcre_exec.c \
|
|
|
|
pcre_fullinfo.c \
|
|
|
|
pcre_get.c \
|
|
|
|
pcre_globals.c \
|
2012-02-12 19:14:59 +01:00
|
|
|
pcre_jit_compile.c \
|
2007-03-15 13:01:31 +00:00
|
|
|
pcre_newline.c \
|
|
|
|
pcre_ord2utf8.c \
|
2012-02-12 19:14:59 +01:00
|
|
|
pcre_string_utils.c \
|
2007-03-15 13:01:31 +00:00
|
|
|
pcre_study.c \
|
|
|
|
pcre_tables.c \
|
2012-02-12 19:14:59 +01:00
|
|
|
pcre_valid_utf8.c \
|
2016-01-18 18:30:58 +00:00
|
|
|
pcre_version.c \
|
2007-03-15 13:01:31 +00:00
|
|
|
pcre_xclass.c \
|
2012-03-04 22:25:50 -05:00
|
|
|
pcre.h \
|
|
|
|
pcre_internal.h \
|
|
|
|
ucp.h
|
2007-03-15 13:01:31 +00:00
|
|
|
|
|
|
|
libpcre_la_LIBADD = $(DEP_LIBS)
|
|
|
|
|
2008-12-31 05:51:47 +00:00
|
|
|
EXTRA_DIST += \
|
2007-03-15 13:01:31 +00:00
|
|
|
COPYING \
|
|
|
|
makefile.msc
|