Everything isn't a test for quite a while now, it's a public library.
So move it to gir/.
tests/offsets/Makefile
tests/scanner/Makefile
tests/repository/Makefile
-tests/everything/Makefile
examples/Makefile
docs/Makefile
docs/reference/Makefile
include $(top_srcdir)/common.mk
+CHECKGIRS =
BUILT_GIRSOURCES =
CLEANFILES =
EXTRA_DIST =
$(GIREPOSITORY_FILES)
BUILT_GIRSOURCES += GIRepository-2.0.gir
+LT_CURRENT = 1
+LT_REVISION = 0
+LT_AGE = 0
+LT_VERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+TYPELIB_VERSION = $(LT_CURRENT).0
+
+lib_LTLIBRARIES = libgirepository-everything-1.0.la
+
+libgirepository_everything_1_0_la_SOURCES = $(srcdir)/everything.c $(srcdir)/everything.h
+libgirepository_everything_1_0_la_CFLAGS = $(GOBJECT_CFLAGS)
+libgirepository_everything_1_0_la_LDFLAGS = -version-info $(LT_VERSION)
+libgirepository_everything_1_0_la_LIBS = $(GOBJECT_LIBS)
+
+if OS_WIN32
+libgirepository_everything_1_0_la_LDFLAGS += -no-undefined
+endif
+
+Everything-$(TYPELIB_VERSION).gir: libgirepository-everything-1.0.la everything.c everything.h $(SCANNER_BIN) $(SCANNER_LIBS)
+ $(CHECK_DEBUG) $(SCANNER) \
+ --include=GObject-2.0 \
+ --libtool="$(SHAVE_SAVED_LIBTOOL)" \
+ --library=girepository-everything-1.0 \
+ --namespace=Everything --nsversion=$(TYPELIB_VERSION) \
+ --pkg gobject-2.0 \
+ $(srcdir)/everything.h $(srcdir)/everything.c \
+ --output $@
+BUILT_GIRSOURCES += Everything-$(TYPELIB_VERSION).gir
+CHECKGIRS += Everything-$(TYPELIB_VERSION)-expected.gir
+
# Generic rules
CLEANFILES += $(BUILT_GIRSOURCES)
CLEANFILES += $(typelibs_DATA)
+%.gir.check: %.gir
+ @diff -u -U 10 $(srcdir)/$*-expected.gir $*.gir && echo " TEST $*.gir"
+
+check-local: $(CHECKGIRS)
+
# Check that typelib -> gir -> typelib transformation is lossless.
# Comparing gir files is relatively fragile (whitespace, attribute default
# values, etc.) but the typelibs should identical as long as the gir files are
static const char utf8_const[] = "const \xe2\x99\xa5 utf8";
static const char utf8_nonconst[] = "nonconst \xe2\x99\xa5 utf8";
-/**
+/**
* test_utf8_const_return:
* Return value: <const char*> UTF-8 string
*/
return utf8_const;
}
-/**
+/**
* test_utf8_nonconst_return:
* Return value: <char*> UTF-8 string
*/
/**
* test_array_gtype_in:
- * @n_types:
+ * @n_types:
* @types: (array length=n_types): List of types
* Return value: string representation of provided types
* */
GEnumValue *ev;
GEnumClass *ec;
- ec = g_type_class_ref (test_enum_get_type ());
+ ec = g_type_class_ref (test_enum_get_type ());
ev = g_enum_get_value (ec, e);
g_type_class_unref (ec);
return ev->value_nick;
-
}
/* structures */
gobject_class->set_property = test_obj_set_property;
gobject_class->get_property = test_obj_get_property;
gobject_class->dispose = test_obj_dispose;
-
+
pspec = g_param_spec_object ("bare",
"Bare property",
"A contained object",
/**
* test_callback_destroy_notify:
- * @callback: (scope notified):
+ * @callback: (scope notified):
*
* Notified - callback persists until a DestroyNotify delegate
* is invoked.
{
int retval;
CallbackInfo *info;
-
+
retval = callback(user_data);
-
+
info = g_new(CallbackInfo, 1);
info->callback = callback;
info->notify = notify;
info->user_data = user_data;
-
+
notified_callbacks = g_slist_prepend(notified_callbacks, info);
return retval;
{
int retval = 0;
GSList *node;
-
+
for (node = notified_callbacks; node != NULL; node = node->next)
{
CallbackInfo *info = (CallbackInfo *)node->data;
g_slist_free (notified_callbacks);
notified_callbacks = NULL;
-
+
return retval;
}
/**
* test_callback_infinte:
- * @callback: (scope infinte):
+ * @callback: (scope infinte):
*
* Infinite - callback persists forever.
**/
gpointer user_data)
{
infinite_callbacks = g_slist_prepend(infinite_callbacks, callback);
-
+
return callback(user_data);
}
-SUBDIRS = . scanner everything repository invoke offsets
+SUBDIRS = . scanner repository invoke offsets
+++ /dev/null
-include $(top_srcdir)/common.mk
-
-LT_CURRENT = 1
-LT_REVISION = 0
-LT_AGE = 0
-LT_VERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
-TYPELIB_VERSION = $(LT_CURRENT).0
-
-AM_CFLAGS = $(GOBJECT_CFLAGS)
-AM_LDFLAGS = -version-info $(LT_VERSION)
-LIBS = $(GOBJECT_LIBS)
-
-typelibsdir = $(libdir)/girepository-1.0
-typelibs_DATA = $(TYPELIBS)
-
-girsdir = $(datadir)/gir-1.0
-girs_DATA = $(GIRS)
-
-lib_LTLIBRARIES = libgirepository-everything-1.0.la
-
-libgirepository_everything_1_0_la_SOURCES = $(srcdir)/everything.c $(srcdir)/everything.h
-
-if OS_WIN32
-AM_LDFLAGS += -no-undefined
-endif
-
-GIRS =
-CHECKGIRS = $(GIRS:.gir=.gir.check)
-EXPECTEDGIRS = $(GIRS:.gir=-expected.gir)
-TYPELIBS = $(GIRS:.gir=.typelib)
-TXMLS = $(GIRS:.gir=.tgir)
-CLEANFILES = $(TYPELIBS) $(TXMLS) $(GIRS)
-BUILT_SOURCES = $(TYPELIBS) $(TXMLS) $(GIRS)
-EXTRA_DIST = $(EXPECTEDGIRS)
-
-Everything-$(TYPELIB_VERSION).gir: libgirepository-everything-1.0.la everything.c everything.h $(SCANNER_BIN) $(SCANNER_LIBS)
- $(CHECK_DEBUG) $(SCANNER) \
- --include=GObject-2.0 \
- --libtool="$(SHAVE_SAVED_LIBTOOL)" \
- --library=girepository-everything-1.0 \
- --namespace=Everything --nsversion=$(TYPELIB_VERSION) \
- --pkg gobject-2.0 \
- $(srcdir)/everything.h $(srcdir)/everything.c \
- --output $@
-GIRS += Everything-$(TYPELIB_VERSION).gir
-
-%.typelib: %.gir $(top_builddir)/tools/g-ir-compiler$(EXEEXT) Makefile
- LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}:$(top_builddir)/girepository/.libs $(top_builddir)/tools/g-ir-compiler --includedir=. --includedir=$(top_builddir)/gir $< -o $@
-
-%.tgir: %.typelib $(top_builddir)/tools/g-ir-generate$(EXEEXT) Makefile
- LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}:$(top_builddir)/girepository/.libs $(top_builddir)/tools/g-ir-generate --includedir=. --includedir=$(top_builddir)/gir $< -o $@
-
-%.gir.check: %.gir
- @diff -u -U 10 $(srcdir)/$*-expected.gir $*.gir && echo " TEST $*.gir"
-
-check-local: $(CHECKGIRS)