nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 include $(top_srcdir)/glib.mk
2  
3 SUBDIRS = gobject refcount
4  
5 LDADD = $(top_builddir)/glib/libglib-2.0.la
6 AM_CPPFLAGS = $(gmodule_INCLUDES) $(GLIB_DEBUG_FLAGS)
7 DEFS = -DGLIB_DISABLE_DEPRECATION_WARNINGS -DG_LOG_DOMAIN=\"GLib\"
8 AM_CFLAGS = -g
9  
10 # Some random programs that appear not to be testcases and not used from any testcases
11 check_PROGRAMS += \
12 testgdateparser \
13 unicode-normalize \
14 $(NULL)
15  
16 # So far, this is the only gtester-ified testcase here
17 test_programs = \
18 testglib \
19 $(NULL)
20  
21 # These are not yet gtester-ified, so mark them as for 'installed' only so we
22 # don't run them under the framework. We will handle them manually below.
23 installed_test_programs = \
24 testgdate \
25 datetime \
26 atomic-test \
27 bit-test \
28 child-test \
29 completion-test \
30 dirname-test \
31 file-test \
32 env-test \
33 gio-test \
34 mainloop-test \
35 mapping-test \
36 onceinit \
37 asyncqueue-test \
38 qsort-test \
39 relation-test \
40 slice-concurrent \
41 slice-threadinit \
42 sources \
43 thread-test \
44 threadpool-test \
45 type-test \
46 unicode-caseconv \
47 unicode-encoding \
48 $(NULL)
49  
50 test_extra_programs = \
51 slice-test \
52 slice-color \
53 assert-msg-test \
54 unicode-collate \
55 $(NULL)
56  
57 if OS_UNIX
58 test_programs += \
59 spawn-test \
60 iochannel-test \
61 $(NULL)
62  
63 # These don't appear to work installed and we don't want to run them under gtester either...
64 dist_uninstalled_test_extra_scripts = \
65 run-collate-tests.sh \
66 run-assert-msg-test.sh \
67 $(NULL)
68 endif
69  
70 dist_test_data = \
71 iochannel-test-infile \
72 casemap.txt \
73 casefold.txt \
74 utf8.txt \
75 $(NULL)
76  
77 # Run the 'installed' tests manually in-tree.
78 # This will cause them to be built even if installed tests are disabled.
79 check_PROGRAMS += $(installed_test_programs) $(installed_test_extra_programs)
80 check_SCRIPTS += $(installed_test_scripts)
81 TESTS += $(installed_test_programs) $(dist_uninstalled_test_extra_scripts)
82 TESTS_ENVIRONMENT = \
83 G_TEST_SRCDIR=$(abs_srcdir) \
84 G_TEST_BUILDDIR=$(abs_builddir) \
85 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
86 MALLOC_CHECK_=2 \
87 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
88  
89 test_programs += module-test
90 module_test_DEPENDENCIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
91 module_test_LDADD = $(top_builddir)/gmodule/libgmodule-2.0.la $(LDADD)
92 module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
93 slice_test_SOURCES = slice-test.c memchunks.c
94 slice_color_SOURCES = slice-color.c memchunks.c
95 slice_threadinit_LDADD = $(top_builddir)/gthread/libgthread-2.0.la $(LDADD)
96  
97 test_ltlibraries = libmoduletestplugin_a.la libmoduletestplugin_b.la
98  
99 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
100 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined)
101 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) ../gmodule/libgmodule-2.0.la ../glib/libglib-2.0.la
102  
103 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
104 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined)
105 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) ../gmodule/libgmodule-2.0.la ../glib/libglib-2.0.la
106  
107 if !ENABLE_INSTALLED_TESTS
108 # see http://lists.gnu.org/archive/html/bug-libtool/2013-05/msg00009.html and gio/tests/Makefile.am
109 libmoduletestplugin_a_la_LDFLAGS += -rpath /
110 libmoduletestplugin_b_la_LDFLAGS += -rpath /
111 endif
112  
113 dist-hook: $(BUILT_EXTRA_DIST)
114 files='$(BUILT_EXTRA_DIST)'; \
115 for f in $$files; do \
116 if test -f $$f; then d=.; else d=$(srcdir); fi; \
117 cp $$d/$$f $(distdir) || exit 1; \
118 done
119 mkdir $(distdir)/collate; \
120 for f in $(srcdir)/collate/* ; do \
121 if test -f $$f; then cp $$f $(distdir)/collate; fi; \
122 done
123  
124 if HAVE_CXX
125 installed_test_programs += cxx-test
126 cxx_test_SOURCES = cxx-test.C
127 endif
128  
129 if ENABLE_TIMELOOP
130 installed_test_programs += timeloop
131 endif
132  
133 if PLATFORM_WIN32
134 no_undefined = -no-undefined
135  
136 module_test_exp = module-test.exp
137  
138 module-test.exp: module-test.o
139 $(DLLTOOL) --output-exp module-test.exp module-test.o
140  
141 installed_test_extra_programs = spawn-test-win32-gui
142  
143 spawn_test_win32_gui_LDFLAGS = -mwindows
144  
145 endif
146  
147 EXTRA_DIST += \
148 $(test_scripts) \
149 makefile.msc.in \
150 gen-casefold-txt.pl \
151 gen-casemap-txt.pl \
152 iochannel-test-infile \
153 timeloop-basic.c \
154 assert-msg-test.gdb
155  
156 BUILT_EXTRA_DIST += \
157 makefile.msc
158  
159 DISTCLEANFILES += \
160 iochannel-test-outfile \
161 file-test-get-contents \
162 maptest \
163 mapchild \
164 collate.out