mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
upgrade to glibmm 2.16
git-svn-id: svn://localhost/ardour2/branches/3.0@5303 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5b97b13766
commit
e916ac2821
211 changed files with 26478 additions and 4168 deletions
|
|
@ -6,6 +6,6 @@ SUBDIRS = m4 pm extra_defs_gen
|
|||
EXTRA_DIST = Makefile_list_of_sources.am_fragment $(files_tools_perl) README TODO enum.pl
|
||||
|
||||
gmmproc_bin_SCRIPTS = gmmproc $(files_tools_genwrap)
|
||||
gmmproc_bindir = $(libdir)/glibmm-2.4/proc
|
||||
gmmproc_bindir = $(GMMPROC_DIR)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# Makefile.in generated by automake 1.10 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.10.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
|
@ -40,7 +40,14 @@ DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
|||
TODO
|
||||
subdir = tools
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
|
||||
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/dk-feature.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
|
|
@ -86,8 +93,10 @@ CXXFLAGS = @CXXFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
|
|
@ -109,6 +118,8 @@ GMMPROC_DIR = @GMMPROC_DIR@
|
|||
GREP = @GREP@
|
||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
|
|
@ -121,9 +132,11 @@ LIBS = @LIBS@
|
|||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
M4 = @M4@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
|
|
@ -133,6 +146,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL_PATH = @PERL_PATH@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
|
|
@ -189,6 +203,7 @@ sharedstatedir = @sharedstatedir@
|
|||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
files_tools_m4 = base.m4 class_shared.m4 class_boxedtype.m4 class_boxedtype_static.m4 \
|
||||
|
|
@ -196,7 +211,7 @@ files_tools_m4 = base.m4 class_shared.m4 class_boxedtype.m4 class_boxedtype_stat
|
|||
class_interface.m4 class_opaque_refcounted.m4 class_opaque_copyable.m4 \
|
||||
gerror.m4 \
|
||||
compare.m4 convert.m4 convert_base.m4 convert_gtkmm.m4 convert_atk.m4 convert_gdk.m4 \
|
||||
convert_glib.m4 convert_gtk.m4 convert_pango.m4 ctor.m4 doc.m4 enum.m4 list.m4 member.m4 \
|
||||
convert_glib.m4 convert_gio.m4 convert_gtk.m4 convert_pango.m4 ctor.m4 doc.m4 enum.m4 list.m4 member.m4 \
|
||||
method.m4 property.m4 signal.m4 vfunc.m4
|
||||
|
||||
files_tools_pm = DocsParser.pm GtkDefs.pm Enum.pm Function.pm FunctionBase.pm Object.pm Output.pm Property.pm Util.pm WrapParser.pm
|
||||
|
|
@ -205,7 +220,7 @@ files_tools_perl = $(files_tools_genwrap) gmmproc.in
|
|||
SUBDIRS = m4 pm extra_defs_gen
|
||||
EXTRA_DIST = Makefile_list_of_sources.am_fragment $(files_tools_perl) README TODO enum.pl
|
||||
gmmproc_bin_SCRIPTS = gmmproc $(files_tools_genwrap)
|
||||
gmmproc_bindir = $(libdir)/glibmm-2.4/proc
|
||||
gmmproc_bindir = $(GMMPROC_DIR)
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
|
|
@ -343,8 +358,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
|
|
@ -369,8 +384,8 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
|
|
@ -380,13 +395,12 @@ ctags: CTAGS
|
|||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ sub process
|
|||
}
|
||||
elsif ($i =~ /^(\S+)\s*=\s*(0x[0-9a-fA-F]+)$/ ||
|
||||
$i =~ /^(\S+)\s*=\s*(-?[0-9]+)$/ ||
|
||||
$i =~ /^(\S+)\s*=\s*(1\s*<<\s*[0-9]+)$/
|
||||
$i =~ /^(\S+)\s*=\s*\(?(1\s*<<\s*[0-9]+)\)?$/
|
||||
)
|
||||
{
|
||||
my ($tmp1, $tmp2) = ($1, $2);
|
||||
|
|
|
|||
|
|
@ -21,9 +21,13 @@ sublib_include_HEADERS = $(files_h)
|
|||
# Build the generate_properties_defs utility executable.
|
||||
# This is not used to build the rest of glibmm.
|
||||
|
||||
INCLUDES = $(GLIBMM_CFLAGS)
|
||||
LIBS = $(GLIBMM_LIBS)
|
||||
INCLUDES = $(GLIBMM_CFLAGS) $(GIOMM_CFLAGS)
|
||||
LIBS = $(GLIBMM_LIBS) $(GIOMM_LIBS)
|
||||
|
||||
noinst_PROGRAMS = generate_extra_defs generate_defs_gio
|
||||
|
||||
noinst_PROGRAMS = generate_extra_defs
|
||||
generate_extra_defs_SOURCES = generate_defs_glib.cc
|
||||
generate_extra_defs_LDADD = libglibmm_generate_extra_defs-2.4.la
|
||||
|
||||
generate_defs_gio_SOURCES = generate_defs_gio.cc
|
||||
generate_defs_gio_LDADD = libglibmm_generate_extra_defs-2.4.la
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# Makefile.in generated by automake 1.10 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.10.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
|
@ -36,12 +36,20 @@ PRE_UNINSTALL = :
|
|||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
noinst_PROGRAMS = generate_extra_defs$(EXEEXT)
|
||||
noinst_PROGRAMS = generate_extra_defs$(EXEEXT) \
|
||||
generate_defs_gio$(EXEEXT)
|
||||
subdir = tools/extra_defs_gen
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(sublib_include_HEADERS)
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
|
||||
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/dk-feature.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
|
|
@ -74,11 +82,14 @@ libglibmm_generate_extra_defs_2_4_la_LINK = $(LIBTOOL) --tag=CXX \
|
|||
$(libglibmm_generate_extra_defs_2_4_la_LDFLAGS) $(LDFLAGS) -o \
|
||||
$@
|
||||
PROGRAMS = $(noinst_PROGRAMS)
|
||||
am_generate_defs_gio_OBJECTS = generate_defs_gio.$(OBJEXT)
|
||||
generate_defs_gio_OBJECTS = $(am_generate_defs_gio_OBJECTS)
|
||||
generate_defs_gio_DEPENDENCIES = libglibmm_generate_extra_defs-2.4.la
|
||||
am_generate_extra_defs_OBJECTS = generate_defs_glib.$(OBJEXT)
|
||||
generate_extra_defs_OBJECTS = $(am_generate_extra_defs_OBJECTS)
|
||||
generate_extra_defs_DEPENDENCIES = \
|
||||
libglibmm_generate_extra_defs-2.4.la
|
||||
DEFAULT_INCLUDES = -I. -I$(top_builddir) -I$(top_builddir)/glib -I$(top_builddir)/gio@am__isrc@
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/glib -I$(top_builddir)/gio
|
||||
depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
|
|
@ -100,9 +111,9 @@ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
|||
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
SOURCES = $(libglibmm_generate_extra_defs_2_4_la_SOURCES) \
|
||||
$(generate_extra_defs_SOURCES)
|
||||
$(generate_defs_gio_SOURCES) $(generate_extra_defs_SOURCES)
|
||||
DIST_SOURCES = $(libglibmm_generate_extra_defs_2_4_la_SOURCES) \
|
||||
$(generate_extra_defs_SOURCES)
|
||||
$(generate_defs_gio_SOURCES) $(generate_extra_defs_SOURCES)
|
||||
sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
||||
HEADERS = $(sublib_include_HEADERS)
|
||||
ETAGS = etags
|
||||
|
|
@ -128,8 +139,10 @@ CXXFLAGS = @CXXFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
|
|
@ -151,6 +164,8 @@ GMMPROC_DIR = @GMMPROC_DIR@
|
|||
GREP = @GREP@
|
||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
|
|
@ -159,13 +174,15 @@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
|||
LDFLAGS = @LDFLAGS@
|
||||
LIBGLIBMM_SO_VERSION = @LIBGLIBMM_SO_VERSION@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = $(GLIBMM_LIBS)
|
||||
LIBS = $(GLIBMM_LIBS) $(GIOMM_LIBS)
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
M4 = @M4@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
|
|
@ -175,6 +192,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL_PATH = @PERL_PATH@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
|
|
@ -231,6 +249,7 @@ sharedstatedir = @sharedstatedir@
|
|||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
files_h = generate_extra_defs.h
|
||||
|
|
@ -246,9 +265,11 @@ sublib_include_HEADERS = $(files_h)
|
|||
|
||||
# Build the generate_properties_defs utility executable.
|
||||
# This is not used to build the rest of glibmm.
|
||||
INCLUDES = $(GLIBMM_CFLAGS)
|
||||
INCLUDES = $(GLIBMM_CFLAGS) $(GIOMM_CFLAGS)
|
||||
generate_extra_defs_SOURCES = generate_defs_glib.cc
|
||||
generate_extra_defs_LDADD = libglibmm_generate_extra_defs-2.4.la
|
||||
generate_defs_gio_SOURCES = generate_defs_gio.cc
|
||||
generate_defs_gio_LDADD = libglibmm_generate_extra_defs-2.4.la
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
|
|
@ -288,8 +309,8 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
|||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
|
|
@ -297,8 +318,8 @@ uninstall-libLTLIBRARIES:
|
|||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
p=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
||||
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
||||
done
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
|
|
@ -318,6 +339,9 @@ clean-noinstPROGRAMS:
|
|||
echo " rm -f $$p $$f"; \
|
||||
rm -f $$p $$f ; \
|
||||
done
|
||||
generate_defs_gio$(EXEEXT): $(generate_defs_gio_OBJECTS) $(generate_defs_gio_DEPENDENCIES)
|
||||
@rm -f generate_defs_gio$(EXEEXT)
|
||||
$(CXXLINK) $(generate_defs_gio_OBJECTS) $(generate_defs_gio_LDADD) $(LIBS)
|
||||
generate_extra_defs$(EXEEXT): $(generate_extra_defs_OBJECTS) $(generate_extra_defs_DEPENDENCIES)
|
||||
@rm -f generate_extra_defs$(EXEEXT)
|
||||
$(CXXLINK) $(generate_extra_defs_OBJECTS) $(generate_extra_defs_LDADD) $(LIBS)
|
||||
|
|
@ -328,6 +352,7 @@ mostlyclean-compile:
|
|||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/generate_defs_gio.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/generate_defs_glib.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/generate_extra_defs.Plo@am__quote@
|
||||
|
||||
|
|
@ -380,8 +405,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
|
|
@ -393,8 +418,8 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
|
|
@ -404,13 +429,12 @@ ctags: CTAGS
|
|||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
|
|
|||
72
libs/glibmm2/tools/extra_defs_gen/generate_defs_gio.cc
Normal file
72
libs/glibmm2/tools/extra_defs_gen/generate_defs_gio.cc
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
/* generate_defs_gio.cc
|
||||
*
|
||||
* Copyright (C) 2007 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include "generate_extra_defs.h"
|
||||
#include <iostream>
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixinputstream.h>
|
||||
#include <gio/gunixoutputstream.h>
|
||||
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
g_type_init ();
|
||||
|
||||
std::cout << get_defs(G_TYPE_ASYNC_RESULT)
|
||||
<< get_defs(G_TYPE_CANCELLABLE)
|
||||
<< get_defs(G_TYPE_BUFFERED_INPUT_STREAM)
|
||||
<< get_defs(G_TYPE_BUFFERED_OUTPUT_STREAM)
|
||||
<< get_defs(G_TYPE_DATA_INPUT_STREAM)
|
||||
<< get_defs(G_TYPE_DATA_OUTPUT_STREAM)
|
||||
<< get_defs(G_TYPE_DRIVE)
|
||||
<< get_defs(G_TYPE_FILE)
|
||||
<< get_defs(G_TYPE_FILE_ENUMERATOR)
|
||||
<< get_defs(G_TYPE_FILE_INFO)
|
||||
<< get_defs(G_TYPE_FILE_ICON)
|
||||
<< get_defs(G_TYPE_FILE_MONITOR)
|
||||
<< get_defs(G_TYPE_FILENAME_COMPLETER)
|
||||
// << get_defs(G_TYPE_FILE_ATTRIBUTE_INFO_LIST)
|
||||
// << get_defs(G_TYPE_FILE_ATTRIBUTE_MATCHER)
|
||||
<< get_defs(G_TYPE_FILE_INPUT_STREAM)
|
||||
<< get_defs(G_TYPE_FILE_OUTPUT_STREAM)
|
||||
<< get_defs(G_TYPE_FILTER_INPUT_STREAM)
|
||||
<< get_defs(G_TYPE_FILTER_OUTPUT_STREAM)
|
||||
|
||||
<< get_defs(G_TYPE_UNIX_INPUT_STREAM)
|
||||
<< get_defs(G_TYPE_UNIX_OUTPUT_STREAM)
|
||||
|
||||
<< get_defs(G_TYPE_INPUT_STREAM)
|
||||
<< get_defs(G_TYPE_LOADABLE_ICON)
|
||||
<< get_defs(G_TYPE_MEMORY_INPUT_STREAM)
|
||||
<< get_defs(G_TYPE_MEMORY_OUTPUT_STREAM)
|
||||
<< get_defs(G_TYPE_MOUNT)
|
||||
<< get_defs(G_TYPE_MOUNT_OPERATION)
|
||||
<< get_defs(G_TYPE_SEEKABLE)
|
||||
<< get_defs(G_TYPE_SIMPLE_ASYNC_RESULT)
|
||||
<< get_defs(G_TYPE_THEMED_ICON)
|
||||
|
||||
//TODO: This causes a g_warning:
|
||||
//GLib-GObject-CRITICAL **: g_param_spec_pool_list: assertion `pool != NULL' failed"
|
||||
<< get_defs(G_TYPE_VOLUME)
|
||||
|
||||
<< get_defs(G_TYPE_VOLUME_MONITOR)
|
||||
|
||||
<< std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: generate_defs_glib.cc 29 2003-04-19 12:39:06Z murrayc $ */
|
||||
/* $Id: generate_defs_glib.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||
|
||||
/* generate_defs_gtk.cc
|
||||
*
|
||||
|
|
@ -12,9 +12,9 @@
|
|||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,26 +1,27 @@
|
|||
/* $Id: generate_extra_defs.cc 204 2005-02-13 14:30:19Z murrayc $ */
|
||||
/* $Id: generate_extra_defs.cc 792 2009-03-09 17:43:04Z daniel $ */
|
||||
|
||||
/* generate_extra_defs.cc
|
||||
*
|
||||
* Copyright (C) 2001 The Free Software Foundation
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
|
||||
#include "generate_extra_defs.h"
|
||||
#include <algorithm>
|
||||
|
||||
std::string get_properties(GType gtype)
|
||||
{
|
||||
|
|
@ -28,10 +29,37 @@ std::string get_properties(GType gtype)
|
|||
std::string strObjectName = g_type_name(gtype);
|
||||
|
||||
//Get the list of properties:
|
||||
GObjectClass* pGClass = G_OBJECT_CLASS(g_type_class_ref(gtype));
|
||||
|
||||
GParamSpec** ppParamSpec = 0;
|
||||
guint iCount = 0;
|
||||
GParamSpec** ppParamSpec = g_object_class_list_properties (pGClass, &iCount);
|
||||
if(G_TYPE_IS_OBJECT(gtype))
|
||||
{
|
||||
GObjectClass* pGClass = G_OBJECT_CLASS(g_type_class_ref(gtype));
|
||||
ppParamSpec = g_object_class_list_properties (pGClass, &iCount);
|
||||
g_type_class_unref(pGClass);
|
||||
|
||||
if(!ppParamSpec)
|
||||
{
|
||||
strResult += ";; Warning: g_object_class_list_properties() returned NULL for " + std::string(g_type_name(gtype)) + "\n";
|
||||
}
|
||||
}
|
||||
else if (G_TYPE_IS_INTERFACE(gtype))
|
||||
{
|
||||
gpointer pGInterface = g_type_default_interface_ref(gtype);
|
||||
if(pGInterface) //We check because this fails for G_TYPE_VOLUME, for some reason.
|
||||
{
|
||||
ppParamSpec = g_object_interface_list_properties(pGInterface, &iCount);
|
||||
g_type_default_interface_unref(pGInterface);
|
||||
|
||||
if(!ppParamSpec)
|
||||
{
|
||||
strResult += ";; Warning: g_object_interface_list_properties() returned NULL for " + std::string(g_type_name(gtype)) + "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//This extra check avoids an occasional crash, for instance for GVolume
|
||||
if(!ppParamSpec)
|
||||
iCount = 0;
|
||||
|
||||
for(guint i = 0; i < iCount; i++)
|
||||
{
|
||||
|
|
@ -39,11 +67,13 @@ std::string get_properties(GType gtype)
|
|||
if(pParamSpec)
|
||||
{
|
||||
//Name and type:
|
||||
std::string strName = g_param_spec_get_name(pParamSpec);
|
||||
std::string strTypeName = G_PARAM_SPEC_TYPE_NAME(pParamSpec);
|
||||
|
||||
const std::string strName = g_param_spec_get_name(pParamSpec);
|
||||
const std::string strTypeName = G_PARAM_SPEC_TYPE_NAME(pParamSpec);
|
||||
|
||||
const gchar* pchBlurb = g_param_spec_get_blurb(pParamSpec);
|
||||
std::string strDocs = (pchBlurb ? pchBlurb : std::string());
|
||||
std::string strDocs = (pchBlurb) ? pchBlurb : "";
|
||||
// Quick hack to get rid of nested double quotes:
|
||||
std::replace(strDocs.begin(), strDocs.end(), '"', '\'');
|
||||
|
||||
strResult += "(define-property " + strName + "\n";
|
||||
strResult += " (of-object \"" + strObjectName + "\")\n";
|
||||
|
|
@ -69,7 +99,6 @@ std::string get_properties(GType gtype)
|
|||
}
|
||||
|
||||
g_free(ppParamSpec);
|
||||
g_type_class_unref(pGClass); //to match the g_type_class_ref() above.
|
||||
|
||||
return strResult;
|
||||
}
|
||||
|
|
@ -109,9 +138,12 @@ std::string get_signals(GType gtype)
|
|||
std::string strObjectName = g_type_name(gtype);
|
||||
|
||||
gpointer gclass_ref = 0;
|
||||
gpointer ginterface_ref = 0;
|
||||
|
||||
if(G_TYPE_IS_OBJECT(gtype))
|
||||
gclass_ref = g_type_class_ref(gtype); //Ensures that class_init() is called.
|
||||
else if(G_TYPE_IS_INTERFACE(gtype))
|
||||
ginterface_ref = g_type_default_interface_ref(gtype); //install signals.
|
||||
|
||||
//Get the list of signals:
|
||||
guint iCount = 0;
|
||||
|
|
@ -194,6 +226,8 @@ std::string get_signals(GType gtype)
|
|||
|
||||
if(gclass_ref)
|
||||
g_type_class_unref(gclass_ref); //to match the g_type_class_ref() above.
|
||||
else if(ginterface_ref)
|
||||
g_type_default_interface_unref(ginterface_ref); // for interface ref above.
|
||||
|
||||
return strResult;
|
||||
}
|
||||
|
|
@ -205,10 +239,11 @@ std::string get_defs(GType gtype)
|
|||
std::string strObjectName = g_type_name(gtype);
|
||||
std::string strDefs = ";; From " + strObjectName + "\n\n";
|
||||
|
||||
strDefs += get_signals(gtype);
|
||||
|
||||
if(G_TYPE_IS_OBJECT(gtype))
|
||||
if(G_TYPE_IS_OBJECT(gtype) || G_TYPE_IS_INTERFACE(gtype))
|
||||
{
|
||||
strDefs += get_signals(gtype);
|
||||
strDefs += get_properties(gtype);
|
||||
}
|
||||
|
||||
return strDefs;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
/* $Id: generate_extra_defs.h 2 2003-01-07 16:59:16Z murrayc $ */
|
||||
/* $Id: generate_extra_defs.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||
|
||||
/* generate_extra_defs.h
|
||||
*
|
||||
* Copyright (C) 2001 The Free Software Foundation
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ EXTRA_DIST = Makefile_list_of_sources.am_fragment $(files_tools_m4)
|
|||
|
||||
# Install the .m4, files:
|
||||
|
||||
tools_m4_includedir = $(libdir)/glibmm-2.4/proc/m4
|
||||
tools_m4_includedir = $(GMMPROC_DIR)/m4
|
||||
tools_m4_include_HEADERS = $(files_tools_m4)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# Makefile.in generated by automake 1.10 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.10.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
|
@ -37,7 +37,14 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
|||
$(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment
|
||||
subdir = tools/m4
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
|
||||
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/dk-feature.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
|
|
@ -79,8 +86,10 @@ CXXFLAGS = @CXXFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
|
|
@ -102,6 +111,8 @@ GMMPROC_DIR = @GMMPROC_DIR@
|
|||
GREP = @GREP@
|
||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
|
|
@ -114,9 +125,11 @@ LIBS = @LIBS@
|
|||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
M4 = @M4@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
|
|
@ -126,6 +139,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL_PATH = @PERL_PATH@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
|
|
@ -182,6 +196,7 @@ sharedstatedir = @sharedstatedir@
|
|||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
files_tools_m4 = base.m4 class_shared.m4 class_boxedtype.m4 class_boxedtype_static.m4 \
|
||||
|
|
@ -189,13 +204,13 @@ files_tools_m4 = base.m4 class_shared.m4 class_boxedtype.m4 class_boxedtype_stat
|
|||
class_interface.m4 class_opaque_refcounted.m4 class_opaque_copyable.m4 \
|
||||
gerror.m4 \
|
||||
compare.m4 convert.m4 convert_base.m4 convert_gtkmm.m4 convert_atk.m4 convert_gdk.m4 \
|
||||
convert_glib.m4 convert_gtk.m4 convert_pango.m4 ctor.m4 doc.m4 enum.m4 list.m4 member.m4 \
|
||||
convert_glib.m4 convert_gio.m4 convert_gtk.m4 convert_pango.m4 ctor.m4 doc.m4 enum.m4 list.m4 member.m4 \
|
||||
method.m4 property.m4 signal.m4 vfunc.m4
|
||||
|
||||
EXTRA_DIST = Makefile_list_of_sources.am_fragment $(files_tools_m4)
|
||||
|
||||
# Install the .m4, files:
|
||||
tools_m4_includedir = $(libdir)/glibmm-2.4/proc/m4
|
||||
tools_m4_includedir = $(GMMPROC_DIR)/m4
|
||||
tools_m4_include_HEADERS = $(files_tools_m4)
|
||||
all: all-am
|
||||
|
||||
|
|
@ -258,8 +273,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
|
|
@ -271,8 +286,8 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
|
|
@ -282,13 +297,12 @@ ctags: CTAGS
|
|||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ files_tools_m4 = base.m4 class_shared.m4 class_boxedtype.m4 class_boxedtype_stat
|
|||
class_interface.m4 class_opaque_refcounted.m4 class_opaque_copyable.m4 \
|
||||
gerror.m4 \
|
||||
compare.m4 convert.m4 convert_base.m4 convert_gtkmm.m4 convert_atk.m4 convert_gdk.m4 \
|
||||
convert_glib.m4 convert_gtk.m4 convert_pango.m4 ctor.m4 doc.m4 enum.m4 list.m4 member.m4 \
|
||||
convert_glib.m4 convert_gio.m4 convert_gtk.m4 convert_pango.m4 ctor.m4 doc.m4 enum.m4 list.m4 member.m4 \
|
||||
method.m4 property.m4 signal.m4 vfunc.m4
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
dnl $Id: base.m4 454 2007-10-12 19:58:00Z arminb $
|
||||
dnl $Id: base.m4 452 2007-10-12 19:52:11Z arminb $
|
||||
divert(-1)
|
||||
|
||||
dnl
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
dnl $Id: class_gobject.m4 413 2007-05-14 19:28:31Z murrayc $
|
||||
dnl $Id: class_gobject.m4 479 2007-12-28 11:51:47Z murrayc $
|
||||
|
||||
|
||||
define(`_CLASS_GOBJECT',`dnl
|
||||
|
|
@ -59,6 +59,17 @@ dnl define(`__BOOL_NO_WRAP_FUNCTION__',`$1')
|
|||
dnl _POP()
|
||||
dnl ')
|
||||
|
||||
dnl Some gobjects actually derive from GInitiallyUnowned, which does some odd reference-counting that is useful to C coders.
|
||||
dnl We don't want to expose that base class in our API,
|
||||
dnl but we do want to reverse what it does:
|
||||
define(`_DERIVES_INITIALLY_UNOWNED',`dnl
|
||||
_PUSH()
|
||||
dnl Define this macro to be tested for later.
|
||||
define(`__BOOL_DERIVES_INITIALLY_UNOWNED__',`$1')
|
||||
_POP()
|
||||
')
|
||||
|
||||
|
||||
dnl
|
||||
dnl _CREATE_METHOD(args_type_and_name_hpp, args_type_and_name_cpp,args_name_only);
|
||||
dnl
|
||||
|
|
@ -161,7 +172,9 @@ __CNAME__* __CPPNAME__::gobj_copy()
|
|||
__CPPNAME__::__CPPNAME__`'(const Glib::ConstructParams& construct_params)
|
||||
:
|
||||
__CPPPARENT__`'(construct_params)
|
||||
{}
|
||||
{
|
||||
_INITIALLY_UNOWNED_SINK
|
||||
}
|
||||
|
||||
__CPPNAME__::__CPPNAME__`'(__CNAME__* castitem)
|
||||
:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
dnl $Id: class_interface.m4 446 2007-09-26 15:10:44Z murrayc $
|
||||
dnl $Id: class_interface.m4 580 2008-02-04 20:27:38Z murrayc $
|
||||
|
||||
|
||||
define(`_CLASS_INTERFACE',`dnl
|
||||
|
|
@ -10,9 +10,9 @@ define(`__CNAME__',`$2')
|
|||
define(`__CCAST__',`$3')
|
||||
define(`__CCLASS__',`$4') dnl SomethingIface or SomethingClass, both suffixes are used.
|
||||
define(`__BASE__',_LOWER(__CPPNAME__))
|
||||
define(`__CPPPARENT__',`Glib::Interface')
|
||||
dnl define(`__CPARENT__',`GObject')
|
||||
define(`__PCAST__',`(GObject*)')
|
||||
define(`__CPPPARENT__',m4_ifelse($5,`',`Glib::Interface',$5)) #Optional parameter.
|
||||
define(`__CPARENT__',m4_ifelse($6,`',`GObject',$6)) #Optional parameter.
|
||||
define(`__PCAST__',`(__CPARENT__`'*)')
|
||||
define(`__BOOL_IS_INTERFACE__',`1')
|
||||
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ dnl
|
|||
dnl
|
||||
dnl
|
||||
define(`_PH_CLASS_DECLARATION_INTERFACE',`dnl
|
||||
class __CPPNAME__`'_Class : public Glib::Interface_Class
|
||||
class __CPPNAME__`'_Class : public __CPPPARENT__`'_Class
|
||||
{
|
||||
public:
|
||||
typedef __CPPNAME__ CppObjectType;
|
||||
|
|
@ -187,7 +187,7 @@ Glib::ObjectBase* __CPPNAME__`'_Class::wrap_new(GObject* object)
|
|||
|
||||
__CPPNAME__::__CPPNAME__`'()
|
||||
:
|
||||
Glib::Interface(__BASE__`'_class_.init())
|
||||
__CPPPARENT__`'(__BASE__`'_class_.init())
|
||||
{}
|
||||
|
||||
__CPPNAME__::__CPPNAME__`'(__CNAME__* castitem)
|
||||
|
|
@ -195,6 +195,11 @@ __CPPNAME__::__CPPNAME__`'(__CNAME__* castitem)
|
|||
__CPPPARENT__`'(__PCAST__`'(castitem))
|
||||
{}
|
||||
|
||||
__CPPNAME__::__CPPNAME__`'(const Glib::Interface_Class& interface_class)
|
||||
: __CPPPARENT__`'(interface_class)
|
||||
{
|
||||
}
|
||||
|
||||
__CPPNAME__::~__CPPNAME__`'()
|
||||
{}
|
||||
|
||||
|
|
@ -238,6 +243,14 @@ private:
|
|||
protected:
|
||||
__CPPNAME__`'(); // you must derive from this class
|
||||
|
||||
/** Called by constructors of derived classes. Provide the result of
|
||||
* the Class init() function to ensure that it is properly
|
||||
* initialized.
|
||||
*
|
||||
* @param interface_class The Class object for the derived type.
|
||||
*/
|
||||
explicit __CPPNAME__`'(const Glib::Interface_Class& interface_class);
|
||||
|
||||
public:
|
||||
// This is public so that C++ wrapper instances can be
|
||||
// created for C instances of unwrapped types.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
dnl $Id: class_shared.m4 320 2006-09-19 20:07:31Z murrayc $
|
||||
dnl $Id: class_shared.m4 540 2008-01-25 20:29:42Z murrayc $
|
||||
|
||||
define(`_CLASS_START',`dnl
|
||||
_PUSH(SECTION_CLASS1)
|
||||
|
|
@ -42,7 +42,13 @@ ifelse(`$2',,,`
|
|||
_POP()
|
||||
')
|
||||
|
||||
|
||||
dnl GVolumeMonitor can be broken/impeded by defining a sub-type.
|
||||
define(`_DO_NOT_DERIVE_GTYPE',`dnl
|
||||
_PUSH()
|
||||
dnl Define this macro to be tested for later.
|
||||
define(`__BOOL_DO_NOT_DERIVE_GTYPE__',`$1')
|
||||
_POP()
|
||||
')
|
||||
|
||||
dnl
|
||||
dnl
|
||||
|
|
@ -54,7 +60,8 @@ public:
|
|||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
typedef __CPPNAME__ CppObjectType;
|
||||
typedef __REAL_CNAME__ BaseObjectType;
|
||||
ifdef(`__BOOL_NO_DERIVED_CLASS__',`dnl
|
||||
ifdef(`__BOOL_DO_NOT_DERIVE_GTYPE__',`dnl
|
||||
typedef __CPPPARENT__`'_Class CppClassParent;
|
||||
',`dnl
|
||||
typedef __REAL_CNAME__`'Class BaseClassType;
|
||||
typedef __CPPPARENT__`'_Class CppClassParent;
|
||||
|
|
@ -66,7 +73,7 @@ ifdef(`__BOOL_NO_DERIVED_CLASS__',`dnl
|
|||
|
||||
const Glib::Class& init();
|
||||
|
||||
ifdef(`__BOOL_NO_DERIVED_CLASS__',`dnl
|
||||
ifdef(`__BOOL_DO_NOT_DERIVE_GTYPE__',`dnl
|
||||
',`dnl
|
||||
static void class_init_function(void* g_class, void* class_data);
|
||||
')dnl
|
||||
|
|
@ -98,6 +105,10 @@ const Glib::Class& __CPPNAME__`'_Class::init()
|
|||
{
|
||||
if(!gtype_) // create the GType if necessary
|
||||
{
|
||||
ifdef(`__BOOL_DO_NOT_DERIVE_GTYPE__',`dnl
|
||||
// Do not derive a GType, or use a derived klass:
|
||||
gtype_ = CppClassParent::CppObjectType::get_type();
|
||||
',`dnl
|
||||
// Glib::Class has to know the class init function to clone custom types.
|
||||
class_init_func_ = &__CPPNAME__`'_Class::class_init_function;
|
||||
|
||||
|
|
@ -110,11 +121,12 @@ const Glib::Class& __CPPNAME__`'_Class::init()
|
|||
|
||||
// Add derived versions of interfaces, if the C type implements any interfaces:
|
||||
_IMPORT(SECTION_CC_IMPLEMENTS_INTERFACES)
|
||||
')
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
ifdef(`__BOOL_NO_DERIVED_CLASS__',`dnl
|
||||
ifdef(`__BOOL_DO_NOT_DERIVE_GTYPE__',`dnl
|
||||
',`dnl
|
||||
|
||||
void __CPPNAME__`'_Class::class_init_function(void* g_class, void* class_data)
|
||||
|
|
|
|||
123
libs/glibmm2/tools/m4/convert_gio.m4
Normal file
123
libs/glibmm2/tools/m4/convert_gio.m4
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
_CONV_ENUM(G,PasswordSave)
|
||||
_CONV_ENUM(G,AskPasswordFlags)
|
||||
_CONV_ENUM(G,MountOperationResult)
|
||||
_CONV_ENUM(G,MountUnmountFlags)
|
||||
_CONV_ENUM(G,MountMountFlags)
|
||||
_CONV_ENUM(G,FileAttributeType)
|
||||
_CONV_ENUM(G,FileAttributeInfoFlags)
|
||||
_CONV_ENUM(G,FileCopyFlags)
|
||||
_CONV_ENUM(G,FileCreateFlags)
|
||||
_CONV_ENUM(G,FileMonitorFlags)
|
||||
_CONV_ENUM(G,FileMonitorEvent)
|
||||
_CONV_ENUM(G,FileQueryInfoFlags)
|
||||
_CONV_ENUM(G,FileType)
|
||||
_CONV_ENUM(G,OutputStreamSpliceFlags)
|
||||
_CONV_ENUM(G,AppInfoCreateFlags)
|
||||
_CONV_ENUM(G,DataStreamByteOrder)
|
||||
_CONV_ENUM(G,DataStreamNewlineType)
|
||||
_CONV_ENUM(G,EmblemOrigin)
|
||||
|
||||
|
||||
# AppInfo
|
||||
_CONVERSION(`GAppInfo*',`Glib::RefPtr<AppInfo>',`Glib::wrap($3)')
|
||||
_CONVERSION(`const Glib::RefPtr<AppLaunchContext>&',`GAppLaunchContext*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`GAppLaunchContext*',`const Glib::RefPtr<AppLaunchContext>&',Glib::wrap($3))
|
||||
_CONVERSION(`const Glib::RefPtr<AppInfo>&',`GAppInfo*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`Glib::RefPtr<AppInfo>',`GAppInfo*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`GAppInfo*',`const Glib::RefPtr<AppInfo>&',`Glib::wrap($3)')
|
||||
_CONVERSION(`const Glib::ListHandle< Glib::RefPtr<Gio::File> >&',`GList*',`$3.data()')
|
||||
|
||||
# AsyncResult
|
||||
_CONVERSION(`Glib::RefPtr<Glib::Object>',`GObject*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`const Glib::RefPtr<AsyncResult>&',`GAsyncResult*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`Glib::RefPtr<AsyncResult>&',`GAsyncResult*',__CONVERT_REFPTR_TO_P)
|
||||
|
||||
# Cancellable
|
||||
_CONVERSION(`const Glib::RefPtr<Cancellable>&',`GCancellable*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
_CONVERSION(`GCancellable*', `Glib::RefPtr<Cancellable>', `Glib::wrap($3)')
|
||||
|
||||
# DesktopAppInfo
|
||||
_CONVERSION(`GDesktopAppInfo*', `Glib::RefPtr<DesktopAppInfo>', `Glib::wrap($3)')
|
||||
|
||||
# Drive
|
||||
_CONVERSION(`GDrive*',`Glib::RefPtr<Drive>',`Glib::wrap($3)')
|
||||
|
||||
# File
|
||||
_CONVERSION(`return-char*',`std::string',`Glib::convert_return_gchar_ptr_to_stdstring($3)')
|
||||
_CONVERSION(`Glib::RefPtr<File>',`GFile*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`const Glib::RefPtr<File>&',`GFile*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`const Glib::RefPtr<const File>&',`GFile*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gio::File))
|
||||
_CONVERSION(`GFile*',`Glib::RefPtr<File>',`Glib::wrap($3)')
|
||||
_CONVERSION(`GFile*',`Glib::RefPtr<const File>',`Glib::wrap($3)')
|
||||
|
||||
|
||||
# FileAttribute
|
||||
_CONVERSION(`GFileAttributeValue*',`FileAttributeValue',`Glib::wrap($3)')
|
||||
_CONVERSION(`const FileAttributeValue&',`const GFileAttributeValue*',`$3.gobj()')
|
||||
_CONVERSION(`GFileAttributeInfoList*',`Glib::RefPtr<FileAttributeInfoList>',`Glib::wrap($3)')
|
||||
|
||||
#FileEnumerator
|
||||
_CONVERSION(`GFileEnumerator*',`Glib::RefPtr<FileEnumerator>',`Glib::wrap($3)')
|
||||
|
||||
# FileInfo
|
||||
_CONVERSION(`GFileInfo*',`Glib::RefPtr<FileInfo>',`Glib::wrap($3)')
|
||||
_CONVERSION(`Glib::RefPtr<FileInfo>&',`GFileInfo*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`const Glib::RefPtr<FileInfo>&',`GFileInfo*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`char**',`Glib::StringArrayHandle',`Glib::StringArrayHandle($3)')
|
||||
_CONVERSION(`Glib::TimeVal&', `GTimeVal*', static_cast<$2>(&$3))
|
||||
_CONVERSION(`const Glib::TimeVal&', `GTimeVal*', const_cast<GTimeVal*>(static_cast<const GTimeVal*>(&$3)))
|
||||
_CONVERSION(`const Glib::RefPtr<FileAttributeMatcher>&',`GFileAttributeMatcher*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
|
||||
# FileInputStream
|
||||
_CONVERSION(`GFileInputStream*',`Glib::RefPtr<FileInputStream>',`Glib::wrap($3)')
|
||||
|
||||
# FileMonitor
|
||||
_CONVERSION(`GFileMonitor*',`Glib::RefPtr<FileMonitor>',`Glib::wrap($3)')
|
||||
|
||||
# FileOutputStream
|
||||
_CONVERSION(`GFileOutputStream*',`Glib::RefPtr<FileOutputStream>',`Glib::wrap($3)')
|
||||
|
||||
# FilterInputStream
|
||||
#_CONVERSION(`GFilterInputStream*',`Glib::RefPtr<FilterInputStream>',`Glib::wrap($3)')
|
||||
|
||||
|
||||
# Icon
|
||||
_CONVERSION(`GIcon*',`Glib::RefPtr<Icon>',`Glib::wrap($3)')
|
||||
_CONVERSION(`const Glib::RefPtr<Icon>&',`GIcon*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
_CONVERSION(`Glib::RefPtr<Icon>',`GIcon*',__CONVERT_REFPTR_TO_P)
|
||||
_CONVERSION(`Glib::RefPtr<const Icon>',`GIcon*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
|
||||
_CONVERSION(`const Glib::RefPtr<Emblem>&',`GEmblem*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
_CONVERSION(`const Glib::RefPtr<Emblem>&',`GEmblem*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
|
||||
# InputStream
|
||||
_CONVERSION(`const Glib::RefPtr<InputStream>&',`GInputStream*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
_CONVERSION(`GInputStream*',`Glib::RefPtr<InputStream>',`Glib::wrap($3)')
|
||||
|
||||
#Mount
|
||||
_CONVERSION(`GMount*',`Glib::RefPtr<Mount>',`Glib::wrap($3)')
|
||||
_CONVERSION(`const Glib::RefPtr<Mount>&',`GMount*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
|
||||
# MountOptions
|
||||
_CONVERSION(`GPasswordSave',`PasswordSave',`($2)$3')
|
||||
_CONVERSION(`PasswordSave',`GPasswordSave',`($2)$3')
|
||||
|
||||
#MountOperation
|
||||
#_CONVERSION(`GAskPasswordFlags',`AskPasswordFlags',`($2)$3')
|
||||
|
||||
# OutputStream
|
||||
_CONVERSION(`GOutputStream*',`Glib::RefPtr<OutputStream>',`Glib::wrap($3)')
|
||||
_CONVERSION(`const Glib::RefPtr<OutputStream>&',`GOutputStream*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
|
||||
#Volume
|
||||
_CONVERSION(`GVolume*',`Glib::RefPtr<Volume>',`Glib::wrap($3)')
|
||||
|
||||
# VolumeMonitor
|
||||
_CONVERSION(`GVolumeMonitor*',`Glib::RefPtr<VolumeMonitor>',`Glib::wrap($3)')
|
||||
_CONVERSION(`const Glib::RefPtr<Drive>&',`GDrive*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
_CONVERSION(`const Glib::RefPtr<Mount>&',`GMount*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
_CONVERSION(`const Glib::RefPtr<Volume>&',`GVolume*',__CONVERT_CONST_REFPTR_TO_P)
|
||||
|
||||
#Vfs
|
||||
_CONVERSION(`GVfs*', `Glib::RefPtr<Vfs>', `Glib::wrap($3)')
|
||||
|
||||
|
|
@ -26,6 +26,7 @@ _CONV_GLIB_ENUM(KeyFileFlags)
|
|||
_CONV_GLIB_ENUM(RegexCompileFlags)
|
||||
_CONV_GLIB_ENUM(RegexMatchFlags)
|
||||
|
||||
|
||||
_CONVERSION(`gunichar&',`gunichar*',`&($3)')
|
||||
_CONVERSION(`gsize&',`gsize*',`&($3)')
|
||||
|
||||
|
|
@ -35,16 +36,23 @@ define(`__GCHARP_TO_USTRING',`Glib::convert_const_gchar_ptr_to_ustring($`'3)')
|
|||
define(`__GCHARP_TO_STDSTRING',`Glib::convert_const_gchar_ptr_to_stdstring($`'3)')
|
||||
|
||||
_CONVERSION(`const Glib::ustring&',`const char*',`$3.c_str()')
|
||||
_CONVERSION(`const Glib::ustring&', `const guchar*', `(($2)$3.c_str())')
|
||||
_CONVERSION(`const std::string&',`const char*',`$3.c_str()')
|
||||
_CONVERSION(`std::string',`const char*',`$3.c_str()')
|
||||
_CONVERSION(`const Glib::ustring&',`gchar*',`const_cast<gchar*>($3.c_str())')
|
||||
_CONVERSION(`gchar*',`Glib::ustring',__GCHARP_TO_USTRING)
|
||||
_CONVERSION(`const-gchar*',`Glib::ustring',__GCHARP_TO_USTRING)
|
||||
_CONVERSION(`const-guchar*',`Glib::ustring',__GCHARP_TO_USTRING)
|
||||
_CONVERSION(`const gchar*',`Glib::ustring',__GCHARP_TO_USTRING)
|
||||
_CONVERSION(`const char*',`Glib::ustring',__GCHARP_TO_USTRING)
|
||||
_CONVERSION(`const char*',`std::string',__GCHARP_TO_STDSTRING)
|
||||
_CONVERSION(`const gchar*',`const Glib::ustring&',__GCHARP_TO_USTRING)
|
||||
_CONVERSION(`const char*',`const-gchar*',`$3')
|
||||
_CONVERSION(`const-gchar*',`const char*',`$3')
|
||||
_CONVERSION(`const char*',`const std::string&',__GCHARP_TO_STDSTRING)
|
||||
_CONVERSION(`char*',`std::string',__GCHARP_TO_STDSTRING)
|
||||
_CONVERSION(`std::string', `char*', `g_strdup(($3).c_str())')
|
||||
_CONVERSION(`const std::string&', `char*', `g_strdup(($3).c_str())')
|
||||
_CONVERSION(`Glib::ustring', `char*', `g_strdup(($3).c_str())')
|
||||
|
||||
_CONVERSION(`return-gchar*',`Glib::ustring',`Glib::convert_return_gchar_ptr_to_ustring($3)')
|
||||
_CONVERSION(`return-gchar*',`std::string',`Glib::convert_return_gchar_ptr_to_stdstring($3)')
|
||||
|
|
@ -67,3 +75,4 @@ _CONVERSION(`const GValue*', `const Glib::ValueBase&', `*reinterpret_cast<const
|
|||
_CONVERSION(`OptionGroup&',`GOptionGroup*',`($3).gobj()')
|
||||
#_CONVERSION(`GOptionGroup*',`OptionGroup',`Glib::wrap(($3), true /* take_copy */)')
|
||||
|
||||
_CONVERSION(`Glib::KeyFile&',`GKeyFile*',`($3).gobj()')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
dnl $Id: convert_gtkmm.m4 2 2003-01-07 16:59:16Z murrayc $
|
||||
dnl $Id: convert_gtkmm.m4 509 2008-01-15 12:23:43Z murrayc $
|
||||
|
||||
include(convert_base.m4)
|
||||
include(convert_gtk.m4)
|
||||
|
|
@ -6,3 +6,4 @@ include(convert_pango.m4)
|
|||
include(convert_gdk.m4)
|
||||
include(convert_atk.m4)
|
||||
include(convert_glib.m4)
|
||||
include(convert_gio.m4)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,16 @@
|
|||
dnl $Id: ctor.m4 376 2007-01-28 22:22:16Z daniel $
|
||||
dnl $Id: ctor.m4 479 2007-12-28 11:51:47Z murrayc $
|
||||
dnl
|
||||
dnl M4 macros for constructor generation.
|
||||
dnl
|
||||
|
||||
dnl Code to sink a GInitiallyUnowned:
|
||||
dnl
|
||||
m4_define(`_INITIALLY_UNOWNED_SINK',`dnl
|
||||
ifdef(`__BOOL_DERIVES_INITIALLY_UNOWNED__',`dnl
|
||||
if(gobject_ && g_object_is_floating (gobject_))
|
||||
g_object_ref_sink(gobject_); //Stops it from being floating.
|
||||
',`')')
|
||||
|
||||
dnl Declares and implements the default constructor
|
||||
dnl
|
||||
m4_define(`_CTOR_DEFAULT',`dnl
|
||||
|
|
@ -15,6 +23,8 @@ __CPPNAME__::__CPPNAME__`'()
|
|||
__CPPPARENT__`'(Glib::ConstructParams(__BASE__`'_class_.init()))
|
||||
{
|
||||
_IMPORT(SECTION_CC_INITIALIZE_CLASS_EXTRA)
|
||||
|
||||
_INITIALLY_UNOWNED_SINK
|
||||
}
|
||||
|
||||
_POP()')
|
||||
|
|
@ -33,6 +43,8 @@ __CPPNAME__::$1`'($3)
|
|||
__CPPPARENT__`'(Glib::ConstructParams(__BASE__`'_class_.init()m4_ifelse(`$4',,,`, $4, static_cast<char*>(0)')))
|
||||
{
|
||||
_IMPORT(SECTION_CC_INITIALIZE_CLASS_EXTRA)
|
||||
|
||||
_INITIALLY_UNOWNED_SINK
|
||||
}
|
||||
|
||||
_POP()')
|
||||
|
|
|
|||
|
|
@ -291,14 +291,17 @@ sub append_parameter_docs($$)
|
|||
|
||||
foreach my $param (@param_names)
|
||||
{
|
||||
my $desc = $$param_descriptions->{$param};
|
||||
|
||||
$param =~ s/([a-zA-Z0-9]*(_[a-zA-Z0-9]+)*)_?/$1/g;
|
||||
DocsParser::convert_docs_to_cpp($obj_function, \$desc);
|
||||
if(length($desc) > 0)
|
||||
if ($param ne "error" ) #We wrap GErrors as exceptions, so ignore these.
|
||||
{
|
||||
$desc .= '.' unless($desc =~ /(?:^|\.)$/);
|
||||
$$text .= "\n\@param ${param} \u${desc}";
|
||||
my $desc = $$param_descriptions->{$param};
|
||||
|
||||
$param =~ s/([a-zA-Z0-9]*(_[a-zA-Z0-9]+)*)_?/$1/g;
|
||||
DocsParser::convert_docs_to_cpp($obj_function, \$desc);
|
||||
if(length($desc) > 0)
|
||||
{
|
||||
$desc .= '.' unless($desc =~ /(?:^|\.)$/);
|
||||
$$text .= "\n\@param ${param} \u${desc}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -350,7 +353,11 @@ sub convert_tags_to_doxygen($)
|
|||
|
||||
# Some argument names are suffixed by "_" -- strip this.
|
||||
# gtk-doc uses @thearg, but doxygen uses @a thearg.
|
||||
s" ?\@([a-zA-Z0-9]*(_[a-zA-Z0-9]+)*)_?\b" \@a $1 "g;
|
||||
s" ?\@([a-zA-Z0-9]*(_[a-zA-Z0-9]+)*)_?\b" \@a $1"g;
|
||||
|
||||
# Don't convert doxygen's @throws and @param, so these can be used in the
|
||||
# docs_override.xml:
|
||||
s" \@a (throws|param)" \@$1"g;
|
||||
s"^Note ?\d?: "\@note "mg;
|
||||
|
||||
s"</?programlisting>""g;
|
||||
|
|
@ -410,6 +417,7 @@ sub substitute_identifiers($$)
|
|||
# Undo wrong substitutions.
|
||||
s/\bHas::/HAS_/g;
|
||||
s/\bNo::/NO_/g;
|
||||
s/\bG:://g; #Rename G::Something to Something. Doesn't seem to work. murrayc.
|
||||
|
||||
# Replace C function names with C++ counterparts.
|
||||
s/\b([a-z]+_[a-z][a-z\d_]+) ?\(\)/&DocsParser::substitute_function($doc_func, $1)/eg;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ EXTRA_DIST = Makefile_list_of_sources.am_fragment $(files_tools_pm)
|
|||
|
||||
# Install the .pm, files:
|
||||
|
||||
tools_pm_includedir = $(libdir)/glibmm-2.4/proc/pm
|
||||
tools_pm_includedir = $(GMMPROC_DIR)/pm
|
||||
tools_pm_include_HEADERS = $(files_tools_pm)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# Makefile.in generated by automake 1.10 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.10.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
|
@ -37,7 +37,14 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
|||
$(top_srcdir)/tools/pm/Makefile_list_of_sources.am_fragment
|
||||
subdir = tools/pm
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
|
||||
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
|
||||
$(top_srcdir)/scripts/dk-feature.m4 \
|
||||
$(top_srcdir)/scripts/docgen.m4 \
|
||||
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||
$(top_srcdir)/scripts/macros.m4 \
|
||||
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
|
|
@ -79,8 +86,10 @@ CXXFLAGS = @CXXFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
|
|
@ -102,6 +111,8 @@ GMMPROC_DIR = @GMMPROC_DIR@
|
|||
GREP = @GREP@
|
||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
|
|
@ -114,9 +125,11 @@ LIBS = @LIBS@
|
|||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
M4 = @M4@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
|
|
@ -126,6 +139,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PERL_PATH = @PERL_PATH@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
|
|
@ -182,13 +196,14 @@ sharedstatedir = @sharedstatedir@
|
|||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
files_tools_pm = DocsParser.pm GtkDefs.pm Enum.pm Function.pm FunctionBase.pm Object.pm Output.pm Property.pm Util.pm WrapParser.pm
|
||||
EXTRA_DIST = Makefile_list_of_sources.am_fragment $(files_tools_pm)
|
||||
|
||||
# Install the .pm, files:
|
||||
tools_pm_includedir = $(libdir)/glibmm-2.4/proc/pm
|
||||
tools_pm_includedir = $(GMMPROC_DIR)/pm
|
||||
tools_pm_include_HEADERS = $(files_tools_pm)
|
||||
all: all-am
|
||||
|
||||
|
|
@ -251,8 +266,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
|
|
@ -264,8 +279,8 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
|||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
|
|
@ -275,13 +290,12 @@ ctags: CTAGS
|
|||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
|
|
|||
|
|
@ -598,6 +598,12 @@ sub output_wrap_property($$$$$$)
|
|||
{
|
||||
# construct-only functions can be read, but not written.
|
||||
$proxy_suffix = "_ReadOnly";
|
||||
|
||||
if($objProperty->get_readable() ne 1)
|
||||
{
|
||||
$self->output_wrap_failed($name, "attempt to wrap write-only and construct-only property.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
elsif($objProperty->get_readable() ne 1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue