Some tests for gschema-compile
[platform/upstream/glib.git] / gio / tests / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 INCLUDES =                      \
4         -g                      \
5         -I$(top_srcdir)         \
6         -I$(top_srcdir)/glib    \
7         -I$(top_srcdir)/gmodule \
8         -I$(top_srcdir)/gobject \
9         -I$(top_srcdir)/gio     \
10         $(GLIB_DEBUG_FLAGS)     \
11         -DSRCDIR=\""$(srcdir)"\"
12
13 noinst_PROGRAMS = $(TEST_PROGS) $(SAMPLE_PROGS)
14 noinst_DATA = $(MISC_STUFF)
15
16 progs_ldadd     =                                       \
17         $(top_builddir)/glib/libglib-2.0.la             \
18         $(top_builddir)/gobject/libgobject-2.0.la       \
19         $(top_builddir)/gio/libgio-2.0.la
20
21 TEST_PROGS +=                   \
22         memory-input-stream     \
23         memory-output-stream    \
24         readwrite               \
25         g-file                  \
26         g-file-info             \
27         converter-stream        \
28         data-input-stream       \
29         data-output-stream      \
30         g-icon                  \
31         buffered-input-stream   \
32         sleepy-stream           \
33         filter-streams          \
34         simple-async-result     \
35         srvtarget               \
36         contexts                \
37         gsettings               \
38         gschema-compile
39
40 SAMPLE_PROGS =                  \
41         resolver                \
42         socket-server           \
43         socket-client           \
44         echo-server             \
45         httpd                   \
46         send-data               \
47         filter-cat
48
49 if OS_UNIX
50 TEST_PROGS += live-g-file desktop-app-info unix-fd #unix-streams
51 endif
52
53 if OS_WIN32
54 TEST_PROGS += win32-streams
55 endif
56
57 memory_input_stream_SOURCES       = memory-input-stream.c
58 memory_input_stream_LDADD         = $(progs_ldadd)
59
60 memory_output_stream_SOURCES      = memory-output-stream.c
61 memory_output_stream_LDADD        = $(progs_ldadd)
62
63 g_file_SOURCES    = g-file.c
64 g_file_LDADD      = $(progs_ldadd)
65
66 readwrite_SOURCES         = readwrite.c
67 readwrite_LDADD   = $(progs_ldadd)
68
69 g_file_info_SOURCES     = g-file-info.c
70 g_file_info_LDADD       = $(progs_ldadd)
71
72 converter_stream_SOURCES        = converter-stream.c
73 converter_stream_LDADD          = $(progs_ldadd)
74
75 data_input_stream_SOURCES       = data-input-stream.c
76 data_input_stream_LDADD         = $(progs_ldadd)
77
78 data_output_stream_SOURCES      = data-output-stream.c
79 data_output_stream_LDADD        = $(progs_ldadd)
80
81 filter_cat_SOURCES      = filter-cat.c
82 filter_cat_LDADD        = $(progs_ldadd)
83
84 g_icon_SOURCES  = g-icon.c
85 g_icon_LDADD    = $(progs_ldadd)
86
87 buffered_input_stream_SOURCES   = buffered-input-stream.c
88 buffered_input_stream_LDADD     = $(progs_ldadd)
89
90 live_g_file_SOURCES       = live-g-file.c
91 live_g_file_LDADD         = $(progs_ldadd)
92
93 desktop_app_info_SOURCES  = desktop-app-info.c
94 desktop_app_info_LDADD    = $(progs_ldadd)
95
96 #unix_streams_SOURCES     = unix-streams.c
97 #unix_streams_LDADD       = $(progs_ldadd) \
98 #       $(top_builddir)/gthread/libgthread-2.0.la
99
100 win32_streams_SOURCES     = win32-streams.c
101 win32_streams_LDADD       = $(progs_ldadd) \
102         $(top_builddir)/gthread/libgthread-2.0.la
103
104 unix_fd_SOURCES   = unix-fd.c
105 unix_fd_LDADD     = $(progs_ldadd)
106
107 simple_async_result_SOURCES     = simple-async-result.c
108 simple_async_result_LDADD       = $(progs_ldadd)
109
110 sleepy_stream_SOURCES           = sleepy-stream.c
111 sleepy_stream_LDADD             = $(progs_ldadd)
112
113 filter_streams_SOURCES          = filter-streams.c
114 filter_streams_LDADD            = $(progs_ldadd)
115
116 resolver_SOURCES          = resolver.c
117 resolver_LDADD            = $(progs_ldadd) \
118         $(top_builddir)/gthread/libgthread-2.0.la
119
120 socket_server_SOURCES     = socket-server.c
121 socket_server_LDADD       = $(progs_ldadd) \
122         $(top_builddir)/gthread/libgthread-2.0.la
123
124 socket_client_SOURCES     = socket-client.c
125 socket_client_LDADD       = $(progs_ldadd) \
126         $(top_builddir)/gthread/libgthread-2.0.la
127
128 echo_server_SOURCES       = echo-server.c
129 echo_server_LDADD         = $(progs_ldadd) \
130         $(top_builddir)/gthread/libgthread-2.0.la
131
132 httpd_SOURCES             = httpd.c
133 httpd_LDADD               = $(progs_ldadd) \
134         $(top_builddir)/gthread/libgthread-2.0.la
135
136 send_data_SOURCES         = send-data.c
137 send_data_LDADD           = $(progs_ldadd) \
138         $(top_builddir)/gthread/libgthread-2.0.la
139
140 srvtarget_SOURCES         = srvtarget.c
141 srvtarget_LDADD           = $(progs_ldadd)
142
143 contexts_SOURCES          = contexts.c
144 contexts_LDADD            = $(progs_ldadd) \
145         $(top_builddir)/gthread/libgthread-2.0.la
146
147 gsettings_SOURCES         = gsettings.c
148 gsettings_LDADD           = $(progs_ldadd)
149
150 gschema_compile_SOURCES   = gschema-compile.c
151 gschema_compile_LDADD     = $(progs_ldadd)
152
153 EXTRA_DIST +=                                          \
154         org.gtk.test.gschema                           \
155         org.gtk.test.gschema.xml                       \
156         de.po                                          \
157         schema-tests/bad-type/test.gschema.xml         \
158         schema-tests/incomplete-list/test.gschema.xml  \
159         schema-tests/missing-quotes/test.gschema.xml   \
160         schema-tests/no-default/test.gschema.xml       \
161         schema-tests/wrong-category/test.gschema.xml   \
162         schema-tests/overflow/test.gschema.xml
163
164 MISC_STUFF = gschemas.compiled test.mo
165
166 test.mo: de.po
167         $(MSGFMT) -o test.mo $(srcdir)/de.po; \
168         $(MKDIR_P) de/LC_MESSAGES; \
169         cp -f test.mo de/LC_MESSAGES
170
171 gschemas.compiled:
172         $(top_builddir)/gio/gschema-compile --targetdir=$(abs_builddir) $(srcdir)
173
174 DISTCLEANFILES =                                        \
175         applications/mimeinfo.cache                     \
176         de/LC_MESSAGES/test.mo                          \
177         test.mo                                         \
178         gsettings.store                                 \
179         gschemas.compiled                               \
180         schema-tests/bad-type/gschemas.compiled         \
181         schema-tests/incomplete-list/gschemas.compiled  \
182         schema-tests/missing-quotes/gschemas.compiled   \
183         schema-tests/no-default/gschemas.compiled       \
184         schema-tests/wrong-category/gschemas.compiled   \
185         schema-tests/overflow/gschemas.compiled