# Makefile.am for gtk+/gtk
include $(top_srcdir)/Makefile.decl
-SUBDIRS = theme-bits . tests
+xdgmimedir =
if OS_UNIX
-SUBDIRS += xdgmime
+xdgmimedir += xdgmime
+if USE_QUARTZ
+GTK_PRINT_PREVIEW_COMMAND="/Applications/Preview.app/Contents/MacOS/Preview %f"
+else
GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
endif
+endif
-DIST_SUBDIRS=theme-bits xdgmime
+SUBDIRS = theme-bits $(xdgmimedir) . tests
+DIST_SUBDIRS=theme-bits xdgmime tests
if HAVE_CUPS
GTK_PRINT_BACKENDS=file,cups
-DGTK_COMPILATION \
-DGTK_PRINT_BACKENDS=\"$(GTK_PRINT_BACKENDS)\" \
-DGTK_PRINT_PREVIEW_COMMAND=\"$(GTK_PRINT_PREVIEW_COMMAND)\" \
+ -I$(top_builddir) \
-I$(top_builddir)/gtk \
-I$(top_srcdir) -I../gdk \
-I$(top_srcdir)/gdk \
gtkcheckbutton.h \
gtkcheckmenuitem.h \
gtkclipboard.h \
- gtkclist.h \
gtkcolorbutton.h \
gtkcolorsel.h \
gtkcolorseldialog.h \
- gtkcombo.h \
gtkcombobox.h \
gtkcomboboxentry.h \
gtkcontainer.h \
- gtkctree.h \
gtkcurve.h \
gtkdebug.h \
gtkdialog.h \
gtkfilechooserdialog.h \
gtkfilechooserwidget.h \
gtkfilefilter.h \
- gtkfilesel.h \
gtkfixed.h \
gtkfontbutton.h \
gtkfontsel.h \
gtkinputdialog.h \
gtkinvisible.h \
gtkitem.h \
- gtkitemfactory.h \
gtklabel.h \
gtklayout.h \
gtklinkbutton.h \
- gtklist.h \
- gtklistitem.h \
gtkliststore.h \
gtkmain.h \
gtkmenu.h \
gtkmodules.h \
gtknotebook.h \
gtkobject.h \
- gtkoldeditable.h \
- gtkoptionmenu.h \
gtkpagesetup.h \
gtkpaned.h \
gtkpapersize.h \
- gtkpixmap.h \
gtkplug.h \
- gtkpreview.h \
gtkprintcontext.h \
gtkprintoperation.h \
gtkprintoperationpreview.h \
gtkprintsettings.h \
gtkprivate.h \
- gtkprogress.h \
gtkprogressbar.h \
gtkradioaction.h \
gtkradiobutton.h \
gtkseparatormenuitem.h \
gtkseparatortoolitem.h \
gtksettings.h \
- gtksignal.h \
gtksizegroup.h \
gtksocket.h \
gtkspinbutton.h \
gtktable.h \
gtktearoffmenuitem.h \
gtktestutils.h \
- gtktext.h \
gtktextbuffer.h \
gtktextbufferrichtext.h \
gtktextchild.h \
gtktexttag.h \
gtktexttagtable.h \
gtktextview.h \
- gtktipsquery.h \
gtktoggleaction.h \
gtktogglebutton.h \
gtktoggletoolbutton.h \
gtktoolbar.h \
gtktoolbutton.h \
gtktoolitem.h \
+ gtktoolshell.h \
gtktooltip.h \
- gtktooltips.h \
- gtktree.h \
gtktreednd.h \
- gtktreeitem.h \
gtktreemodel.h \
gtktreemodelfilter.h \
gtktreemodelsort.h \
gtkcellview.c \
gtkcheckbutton.c \
gtkcheckmenuitem.c \
- gtkclist.c \
gtkcolorbutton.c \
gtkcolorsel.c \
gtkcolorseldialog.c \
- gtkcombo.c \
gtkcombobox.c \
gtkcomboboxentry.c \
gtkcontainer.c \
- gtkctree.c \
gtkcurve.c \
gtkdialog.c \
gtkdrawingarea.c \
gtkfilechooserutils.c \
gtkfilechooserwidget.c \
gtkfilefilter.c \
- gtkfilesel.c \
gtkfilesystem.c \
gtkfilesystemmodel.c \
gtkfixed.c \
gtkinputdialog.c \
gtkinvisible.c \
gtkitem.c \
- gtkitemfactory.c \
gtkkeyhash.c \
gtklabel.c \
gtklayout.c \
gtklinkbutton.c \
- gtklist.c \
- gtklistitem.c \
gtkliststore.c \
gtkmain.c \
gtkmarshal.c \
gtkmodules.c \
gtknotebook.c \
gtkobject.c \
- gtkoldeditable.c \
- gtkoptionmenu.c \
gtkpagesetup.c \
gtkpaned.c \
gtkpapersize.c \
gtkpathbar.c \
- gtkpixmap.c \
gtkplug.c \
- gtkpreview.c \
gtkprintcontext.c \
gtkprintoperation.c \
gtkprintoperationpreview.c \
gtkprintsettings.c \
gtkprintutils.c \
- gtkprogress.c \
gtkprogressbar.c \
gtkradioaction.c \
gtkradiobutton.c \
gtkseparatormenuitem.c \
gtkseparatortoolitem.c \
gtksettings.c \
- gtksignal.c \
gtksizegroup.c \
gtksocket.c \
gtkspinbutton.c \
gtktable.c \
gtktearoffmenuitem.c \
gtktestutils.c \
- gtktext.c \
gtktextbtree.c \
gtktextbuffer.c \
gtktextbufferrichtext.c \
gtktextutil.c \
gtktextview.c \
gtkthemes.c \
- gtktipsquery.c \
gtktoggleaction.c \
gtktogglebutton.c \
gtktoggletoolbutton.c \
gtktoolbar.c \
gtktoolbutton.c \
gtktoolitem.c \
+ gtktoolshell.c \
gtktooltip.c \
- gtktooltips.c \
- gtktree.c \
gtktreedatalist.c \
gtktreednd.c \
- gtktreeitem.c \
gtktreemodel.c \
gtktreemodelfilter.c \
gtktreemodelsort.c \
gtkwindow-decorate.c \
gtkwindow.c \
$(gtk_clipboard_dnd_c_sources)
+
+# Broken
+gtk_public_h_sources += \
+ gtktext.h \
+ gtktree.h \
+ gtktreeitem.h
+gtk_base_c_sources += \
+ gtktext.c \
+ gtktree.c \
+ gtktreeitem.c
+
+# Deprecated
+gtk_public_h_sources += \
+ gtkclist.h \
+ gtkcombo.h \
+ gtkctree.h \
+ gtkfilesel.h \
+ gtkitemfactory.h \
+ gtklist.h \
+ gtklistitem.h \
+ gtkoldeditable.h \
+ gtkoptionmenu.h \
+ gtkpixmap.h \
+ gtkpreview.h \
+ gtkprogress.h \
+ gtksignal.h \
+ gtktipsquery.h \
+ gtktooltips.h
+gtk_base_c_sources += \
+ gtkclist.c \
+ gtkcombo.c \
+ gtkctree.c \
+ gtkfilesel.c \
+ gtkitemfactory.c \
+ gtklist.c \
+ gtklistitem.c \
+ gtkoldeditable.c \
+ gtkoptionmenu.c \
+ gtkpixmap.c \
+ gtkpreview.c \
+ gtkprogress.c \
+ gtksignal.c \
+ gtktipsquery.c \
+ gtktooltips.c
+
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
echo "#define __gtk_marshal_MARSHAL_C__"; \
echo "#include \"gtkaliasdef.c\"") >> xgen-gmc \
&& cp xgen-gmc gtkmarshal.c \
- && rm -f xgen-gmc
+ && rm -f xgen-gmc
gtktypebuiltins.h: stamp-gtktypebuiltins.h
@true
-stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) Makefile
- ( cd $(srcdir) && $(GLIB_MKENUMS) \
- --fhead "#ifndef __GTK_TYPE_BUILTINS_H__\n#define __GTK_TYPE_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
- --fprod "/* enumerations from \"@filename@\" */\n" \
- --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GTK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
- --ftail "G_END_DECLS\n\n#endif /* __GTK_TYPE_BUILTINS_H__ */" \
+stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.h.template
+ ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.h.template \
$(gtk_public_h_sources) ) >> xgen-gtbh \
&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
&& rm -f xgen-gtbh \
&& echo timestamp > $(@F)
-gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) Makefile
- ( cd $(srcdir) && $(GLIB_MKENUMS) \
- --fhead "#undef GTK_DISABLE_DEPRECATED\n#define GTK_ENABLE_BROKEN\n#include \"gtk.h\"\n#include \"gtkprivate.h\"\n#include \"gtkalias.h\"\n" \
- --ftail "#define __GTK_TYPE_BUILTINS_C__\n#include \"gtkaliasdef.c\"\n" \
- --fprod "\n/* enumerations from \"@filename@\" */" \
- --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
- --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
- --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \
+gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template
+ ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.c.template \
$(gtk_public_h_sources) ) > xgen-gtbc \
&& cp xgen-gtbc gtktypebuiltins.c \
&& rm -f xgen-gtbc
gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
- egrep -o '\<g[td]k_[a-zA-Z0-9_]+_get_type\>' | sort | uniq | \
- sed '{ s/^/vgt=/; s/$$/();/; }' > xgen-gtf \
+ grep -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \
+ sort | uniq | \
+ sed '{ s/^/*tp++ = /; s/$$/();/; }' > xgen-gtf \
&& cp xgen-gtf $@ && rm -f xgen-gtf
gtktestutils.c: gtktypefuncs.c
gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)
libgtk_x11_2_0_la_SOURCES = $(gtk_c_sources)
-libgtk_linux_fb_2_0_la_SOURCES = $(gtk_c_sources)
libgtk_win32_2_0_la_SOURCES = $(gtk_c_sources)
libgtk_quartz_2_0_la_SOURCES = $(gtk_c_sources)
libgtk_directfb_2_0_la_SOURCES = $(gtk_c_sources)
libgtk_x11_2_0_la_LDFLAGS = $(libtool_opts)
-libgtk_linux_fb_2_0_la_LDFLAGS = $(libtool_opts)
libgtk_win32_2_0_la_LDFLAGS = $(libtool_opts) -Wl,-luuid
libgtk_quartz_2_0_la_LDFLAGS = $(libtool_opts)
libgtk_directfb_2_0_la_LDFLAGS = $(libtool_opts)
libgtk_x11_2_0_la_LIBADD = $(libadd)
-libgtk_linux_fb_2_0_la_LIBADD = $(libadd)
libgtk_win32_2_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32
libgtk_win32_2_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res)
libgtk_quartz_2_0_la_LIBADD = $(libadd)
if USE_WIN32
libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols)
endif
-EXTRA_LTLIBRARIES = libgtk-x11-2.0.la libgtk-linux-fb-2.0.la libgtk-win32-2.0.la libgtk-quartz-2.0.la libgtk-directfb-2.0.la
+EXTRA_LTLIBRARIES = libgtk-x11-2.0.la libgtk-win32-2.0.la libgtk-quartz-2.0.la libgtk-directfb-2.0.la
install-exec-hook:
if DISABLE_EXPLICIT_DEPS
stock-icons/16/gtk-network.png \
stock-icons/16/gtk-new.png \
stock-icons/16/gtk-open.png \
+ stock-icons/16/gtk-page-setup.png \
stock-icons/16/gtk-paste.png \
stock-icons/16/gtk-preferences.png \
stock-icons/16/gtk-print.png \
stock-icons/24/gtk-orientation-landscape.png \
stock-icons/24/gtk-orientation-reverse-portrait.png \
stock-icons/24/gtk-orientation-portrait.png \
+ stock-icons/24/gtk-page-setup.png \
stock-icons/24/gtk-paste.png \
stock-icons/24/gtk-preferences.png \
stock-icons/24/gtk-print.png \
makegtkalias.pl \
aliasfilescheck.sh \
abicheck.sh \
- pltcheck.sh
+ pltcheck.sh \
+ gtktypebuiltins.c.template \
+ gtktypebuiltins.h.template
+
install-data-local: