mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
2ae1a46b4c
2005-05-05 Owen Taylor <otaylor@redhat.com> * gobject.[ch] gobject.symbols: Add g_object_add/remove_toggle_ref() functions to get notification when a reference count is the last remaining reference; this enables better memory management for language bindings. (http://mail.gnome.org/archives/gtk-devel-list/2005-April/msg00095.html) 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/gdataset.[ch] glib/gdatasetprivate.h: Add g_datalist_set/unset_flags(), g_datalist_get_flags() functions to squeeze some bits into a GDataSet... this is needed for efficient implementation of toggle references in GObject. * tests/gobject/references.c tests/gobject/Makefile.am: Add a test case for weak and toggle references. * glib/gfileutils.[ch]: Rename g_file_replace() back to g_file_set_contents(). * glib/glib.symbols: Update. 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt: Update * gobject/tmpl/objects.sgml: Document toggle-references.
83 lines
2.1 KiB
Makefile
83 lines
2.1 KiB
Makefile
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/glib \
|
|
-I$(top_srcdir)/gmodule \
|
|
$(GLIB_DEBUG_FLAGS)
|
|
|
|
libglib = $(top_builddir)/glib/libglib-2.0.la
|
|
libgthread = $(top_builddir)/gthread/libgthread-2.0.la
|
|
libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
|
|
libgobject = $(top_builddir)/gobject/libgobject-2.0.la
|
|
|
|
########################################################################
|
|
|
|
noinst_LTLIBRARIES = libtestgobject.la
|
|
|
|
libtestgobject_la_SOURCES = \
|
|
testcommon.h \
|
|
testmarshal.h \
|
|
testmarshal.c \
|
|
testmodule.c \
|
|
testmodule.h
|
|
|
|
if CROSS_COMPILING
|
|
glib_genmarshal=$(GLIB_GENMARSHAL)
|
|
else
|
|
glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
|
|
endif
|
|
|
|
testmarshal.h: stamp-testmarshal.h
|
|
@true
|
|
stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
|
|
$(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
|
|
&& (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
|
|
&& rm -f xgen-gmh xgen-gmh~ \
|
|
&& echo timestamp > $@
|
|
testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
|
|
$(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
|
|
&& cp xgen-gmc testmarshal.c \
|
|
&& rm -f xgen-gmc xgen-gmc~
|
|
|
|
BUILT_SOURCES = testmarshal.h testmarshal.c
|
|
CLEANFILES = stamp-testmarshal.h
|
|
|
|
########################################################################
|
|
|
|
LDADD = libtestgobject.la $(libgobject)
|
|
|
|
test_programs = \
|
|
accumulator \
|
|
defaultiface \
|
|
ifacecheck \
|
|
ifaceinit \
|
|
ifaceinherit \
|
|
ifaceproperties \
|
|
override \
|
|
references
|
|
|
|
check_PROGRAMS = $(test_programs)
|
|
|
|
TESTS = $(test_programs)
|
|
TESTS_ENVIRONMENT = srcdir=$(srcdir) \
|
|
LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
|
|
|
|
########################################################################
|
|
|
|
EXTRA_DIST = \
|
|
testmarshal.list
|
|
|
|
BUILT_EXTRA_DIST = \
|
|
testmarshal.h \
|
|
testmarshal.c
|
|
|
|
dist-hook: $(BUILT_EXTRA_DIST)
|
|
files='$(BUILT_EXTRA_DIST)'; \
|
|
for f in $$files; do \
|
|
if test -f $$f; then d=.; else d=$(srcdir); fi; \
|
|
cp $$d/$$f $(distdir) || exit 1; done
|
|
|
|
distclean-local:
|
|
if test $(srcdir) = .; then :; else \
|
|
rm -f $(BUILT_EXTRA_DIST); \
|
|
fi
|