2008-01-07 07:14:40 +01:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
|
|
|
INCLUDES = \
|
|
|
|
-g \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/glib \
|
|
|
|
-I$(top_srcdir)/gmodule \
|
|
|
|
-I$(top_srcdir)/gobject \
|
|
|
|
-I$(top_srcdir)/gio \
|
2009-06-17 02:22:58 +02:00
|
|
|
$(GLIB_DEBUG_FLAGS) \
|
|
|
|
-DSRCDIR=\""$(srcdir)"\"
|
2008-01-07 07:14:40 +01:00
|
|
|
|
2010-04-19 11:25:22 +02:00
|
|
|
noinst_PROGRAMS = $(TEST_PROGS) $(SAMPLE_PROGS)
|
|
|
|
noinst_DATA = $(MISC_STUFF)
|
|
|
|
|
2008-01-07 07:14:40 +01:00
|
|
|
progs_ldadd = \
|
|
|
|
$(top_builddir)/glib/libglib-2.0.la \
|
|
|
|
$(top_builddir)/gobject/libgobject-2.0.la \
|
|
|
|
$(top_builddir)/gio/libgio-2.0.la
|
|
|
|
|
2008-06-30 05:47:27 +02:00
|
|
|
TEST_PROGS += \
|
|
|
|
memory-input-stream \
|
|
|
|
memory-output-stream \
|
2009-05-13 13:06:58 +02:00
|
|
|
readwrite \
|
2008-06-30 05:47:27 +02:00
|
|
|
g-file \
|
|
|
|
g-file-info \
|
2009-10-23 19:59:03 +02:00
|
|
|
converter-stream \
|
2008-06-30 05:47:27 +02:00
|
|
|
data-input-stream \
|
2008-10-21 13:51:48 +02:00
|
|
|
data-output-stream \
|
2008-11-28 06:57:07 +01:00
|
|
|
g-icon \
|
2009-01-05 07:58:22 +01:00
|
|
|
buffered-input-stream \
|
2009-01-28 17:39:39 +01:00
|
|
|
sleepy-stream \
|
2009-01-21 15:09:56 +01:00
|
|
|
filter-streams \
|
Fix multiple bugs in g_srv_target_list_sort()
In particular, targets with weight 0 should be very UNlikely to be
selected, not very likely, as they were before. However, even ignoring
that bug in the logic, there was an additional bug (swapping list
items would cause the 0-weight items to get re-ordered incorrectly
anyway), and the code contained several fencepost errors.
This patch also adds gio/tests/srvtarget.c, which confirms that for a
sample list of targets, we now generate all possible correct random
sortings and no incorrect sortings, and the correct sortings occur in
roughly the expected proportions (though if the current code is
still wrong, those proportions may be wrong as well).
http://bugzilla.gnome.org/show_bug.cgi?id=583398
2009-05-28 21:27:04 +02:00
|
|
|
simple-async-result \
|
2009-06-17 02:22:58 +02:00
|
|
|
srvtarget \
|
2010-04-17 07:43:58 +02:00
|
|
|
contexts \
|
2010-04-19 17:31:21 +02:00
|
|
|
gsettings \
|
|
|
|
gschema-compile
|
2008-02-07 10:56:25 +01:00
|
|
|
|
2009-11-30 02:48:52 +01:00
|
|
|
SAMPLE_PROGS = \
|
|
|
|
resolver \
|
|
|
|
socket-server \
|
|
|
|
socket-client \
|
|
|
|
echo-server \
|
|
|
|
httpd \
|
|
|
|
send-data \
|
|
|
|
filter-cat
|
2008-12-29 18:53:47 +01:00
|
|
|
|
2008-02-07 10:56:25 +01:00
|
|
|
if OS_UNIX
|
2010-04-18 02:54:53 +02:00
|
|
|
TEST_PROGS += live-g-file desktop-app-info unix-fd #unix-streams
|
2008-02-07 10:56:25 +01:00
|
|
|
endif
|
2008-01-22 10:13:28 +01:00
|
|
|
|
2010-04-19 10:32:05 +02:00
|
|
|
if OS_WIN32
|
|
|
|
TEST_PROGS += win32-streams
|
|
|
|
endif
|
|
|
|
|
2008-01-07 07:14:40 +01:00
|
|
|
memory_input_stream_SOURCES = memory-input-stream.c
|
|
|
|
memory_input_stream_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-06-30 05:47:27 +02:00
|
|
|
memory_output_stream_SOURCES = memory-output-stream.c
|
|
|
|
memory_output_stream_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-01-22 10:13:28 +01:00
|
|
|
g_file_SOURCES = g-file.c
|
|
|
|
g_file_LDADD = $(progs_ldadd)
|
|
|
|
|
2009-05-13 13:06:58 +02:00
|
|
|
readwrite_SOURCES = readwrite.c
|
|
|
|
readwrite_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-01-22 10:13:28 +01:00
|
|
|
g_file_info_SOURCES = g-file-info.c
|
|
|
|
g_file_info_LDADD = $(progs_ldadd)
|
|
|
|
|
2009-10-23 19:59:03 +02:00
|
|
|
converter_stream_SOURCES = converter-stream.c
|
|
|
|
converter_stream_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-01-22 10:13:28 +01:00
|
|
|
data_input_stream_SOURCES = data-input-stream.c
|
|
|
|
data_input_stream_LDADD = $(progs_ldadd)
|
|
|
|
|
|
|
|
data_output_stream_SOURCES = data-output-stream.c
|
|
|
|
data_output_stream_LDADD = $(progs_ldadd)
|
|
|
|
|
2009-11-18 16:07:16 +01:00
|
|
|
filter_cat_SOURCES = filter-cat.c
|
|
|
|
filter_cat_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-10-21 13:51:48 +02:00
|
|
|
g_icon_SOURCES = g-icon.c
|
|
|
|
g_icon_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-11-28 06:57:07 +01:00
|
|
|
buffered_input_stream_SOURCES = buffered-input-stream.c
|
|
|
|
buffered_input_stream_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-02-06 14:52:07 +01:00
|
|
|
live_g_file_SOURCES = live-g-file.c
|
|
|
|
live_g_file_LDADD = $(progs_ldadd)
|
2008-09-26 18:19:35 +02:00
|
|
|
|
2008-09-26 21:57:36 +02:00
|
|
|
desktop_app_info_SOURCES = desktop-app-info.c
|
|
|
|
desktop_app_info_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-04-19 11:25:22 +02:00
|
|
|
#unix_streams_SOURCES = unix-streams.c
|
|
|
|
#unix_streams_LDADD = $(progs_ldadd) \
|
|
|
|
# $(top_builddir)/gthread/libgthread-2.0.la
|
2008-12-15 21:01:49 +01:00
|
|
|
|
2010-04-19 10:32:05 +02:00
|
|
|
win32_streams_SOURCES = win32-streams.c
|
|
|
|
win32_streams_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2009-11-12 04:40:28 +01:00
|
|
|
unix_fd_SOURCES = unix-fd.c
|
|
|
|
unix_fd_LDADD = $(progs_ldadd)
|
|
|
|
|
2009-01-05 07:58:22 +01:00
|
|
|
simple_async_result_SOURCES = simple-async-result.c
|
|
|
|
simple_async_result_LDADD = $(progs_ldadd)
|
2008-12-15 21:01:49 +01:00
|
|
|
|
2009-01-28 17:39:39 +01:00
|
|
|
sleepy_stream_SOURCES = sleepy-stream.c
|
|
|
|
sleepy_stream_LDADD = $(progs_ldadd)
|
|
|
|
|
2009-01-21 15:09:56 +01:00
|
|
|
filter_streams_SOURCES = filter-streams.c
|
|
|
|
filter_streams_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-12-29 18:53:47 +01:00
|
|
|
resolver_SOURCES = resolver.c
|
|
|
|
resolver_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2009-05-15 10:08:18 +02:00
|
|
|
socket_server_SOURCES = socket-server.c
|
|
|
|
socket_server_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
|
|
|
socket_client_SOURCES = socket-client.c
|
|
|
|
socket_client_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2009-05-15 21:34:14 +02:00
|
|
|
echo_server_SOURCES = echo-server.c
|
|
|
|
echo_server_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
|
|
|
httpd_SOURCES = httpd.c
|
|
|
|
httpd_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2009-05-19 13:44:11 +02:00
|
|
|
send_data_SOURCES = send-data.c
|
|
|
|
send_data_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
Fix multiple bugs in g_srv_target_list_sort()
In particular, targets with weight 0 should be very UNlikely to be
selected, not very likely, as they were before. However, even ignoring
that bug in the logic, there was an additional bug (swapping list
items would cause the 0-weight items to get re-ordered incorrectly
anyway), and the code contained several fencepost errors.
This patch also adds gio/tests/srvtarget.c, which confirms that for a
sample list of targets, we now generate all possible correct random
sortings and no incorrect sortings, and the correct sortings occur in
roughly the expected proportions (though if the current code is
still wrong, those proportions may be wrong as well).
http://bugzilla.gnome.org/show_bug.cgi?id=583398
2009-05-28 21:27:04 +02:00
|
|
|
srvtarget_SOURCES = srvtarget.c
|
|
|
|
srvtarget_LDADD = $(progs_ldadd)
|
|
|
|
|
2009-06-17 02:22:58 +02:00
|
|
|
contexts_SOURCES = contexts.c
|
|
|
|
contexts_LDADD = $(progs_ldadd) \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2010-04-18 02:54:53 +02:00
|
|
|
gsettings_SOURCES = gsettings.c
|
2010-04-17 07:43:58 +02:00
|
|
|
gsettings_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-04-19 17:31:21 +02:00
|
|
|
gschema_compile_SOURCES = gschema-compile.c
|
|
|
|
gschema_compile_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-04-21 05:28:49 +02:00
|
|
|
EXTRA_DIST += \
|
2010-04-20 23:23:49 +02:00
|
|
|
socket-common.c \
|
2010-04-21 05:28:49 +02:00
|
|
|
org.gtk.test.gschema \
|
|
|
|
org.gtk.test.gschema.xml \
|
|
|
|
de.po \
|
|
|
|
schema-tests/bad-type.gschema.xml \
|
|
|
|
schema-tests/incomplete-list.gschema.xml \
|
|
|
|
schema-tests/missing-quotes.gschema.xml \
|
|
|
|
schema-tests/no-default.gschema.xml \
|
|
|
|
schema-tests/wrong-category.gschema.xml \
|
2010-04-21 06:43:55 +02:00
|
|
|
schema-tests/overflow.gschema.xml \
|
|
|
|
schema-tests/bad-key.gschema.xml \
|
|
|
|
schema-tests/bad-key2.gschema.xml \
|
|
|
|
schema-tests/bad-key3.gschema.xml \
|
|
|
|
schema-tests/bad-key4.gschema.xml \
|
|
|
|
schema-tests/empty-key.gschema.xml
|
2010-04-17 07:43:58 +02:00
|
|
|
|
2010-04-19 14:48:30 +02:00
|
|
|
MISC_STUFF = gschemas.compiled test.mo
|
2010-04-17 07:43:58 +02:00
|
|
|
|
|
|
|
test.mo: de.po
|
2010-04-18 02:54:53 +02:00
|
|
|
$(MSGFMT) -o test.mo $(srcdir)/de.po; \
|
2010-04-17 07:43:58 +02:00
|
|
|
$(MKDIR_P) de/LC_MESSAGES; \
|
|
|
|
cp -f test.mo de/LC_MESSAGES
|
|
|
|
|
2010-04-18 02:54:53 +02:00
|
|
|
gschemas.compiled:
|
|
|
|
$(top_builddir)/gio/gschema-compile --targetdir=$(abs_builddir) $(srcdir)
|
2010-04-17 07:43:58 +02:00
|
|
|
|
2010-04-19 19:14:30 +02:00
|
|
|
DISTCLEANFILES = \
|
|
|
|
applications/mimeinfo.cache \
|
|
|
|
de/LC_MESSAGES/test.mo \
|
|
|
|
test.mo \
|
|
|
|
gsettings.store \
|
2010-04-19 23:30:42 +02:00
|
|
|
gschemas.compiled
|