1 # Makefile.am for gtk+/gtk
2 include $(top_srcdir)/Makefile.decl
3 -include $(INTROSPECTION_MAKEFILE)
5 INTROSPECTION_SCANNER_ARGS = \
6 --add-include-path=../gdk
7 INTROSPECTION_COMPILER_ARGS = \
8 --includedir=$(srcdir) \
13 GTK_PRINT_PREVIEW_COMMAND="open -a /Applications/Preview.app %f"
15 GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
18 SUBDIRS = theme-bits . tests
19 DIST_SUBDIRS=theme-bits tests
22 GTK_PRINT_BACKENDS=file,papi,cups
25 GTK_PRINT_BACKENDS=file,cups
28 GTK_PRINT_BACKENDS=file,papi
30 GTK_PRINT_BACKENDS=file,lpr
36 -DG_LOG_DOMAIN=\"Gtk\" \
37 -DGTK_LIBDIR=\"$(libdir)\" \
38 -DGTK_DATADIR=\"$(datadir)\" \
39 -DGTK_DATA_PREFIX=\"$(prefix)\" \
40 -DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
41 -DGTK_VERSION=\"$(GTK_VERSION)\" \
42 -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
43 -DGTK_HOST=\"$(host)\" \
45 -DGTK_PRINT_BACKENDS=\"$(GTK_PRINT_BACKENDS)\" \
46 -DGTK_PRINT_PREVIEW_COMMAND=\"$(GTK_PRINT_PREVIEW_COMMAND)\" \
48 -I$(top_builddir)/gtk \
49 -I$(top_srcdir) -I../gdk \
51 -DGDK_DISABLE_DEPRECATED \
52 -DGTK_DISABLE_DEPRECATED \
53 -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED \
54 -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED \
57 $(gtk_clipboard_dnd_c_sources_CFLAGS) \
58 $(INCLUDED_IMMODULE_DEFINE)
63 no_undefined = -no-undefined
68 gtk_win32_symbols = -export-symbols $(srcdir)/gtk.def
70 gtk_win32_res = gtk-win32-res.o
71 gtk_win32_res_ldflag = -Wl,gtk-win32-res.o
73 gtk-win32-res.o : gtk-win32.rc
74 $(WINDRES) gtk-win32.rc $@
76 install-def-file: gtk.def
77 $(INSTALL) $(srcdir)/gtk.def $(DESTDIR)$(libdir)/gtk-win32-3.0.def
79 -rm $(DESTDIR)$(libdir)/gtk-win32-3.0.def
86 noinst_DATA = gtk-win32-$(GTK_API_VERSION).lib
88 gtk-win32-$(GTK_API_VERSION).lib: libgtk-win32-$(GTK_API_VERSION).la gtk.def
89 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgtk-win32-$(GTK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gtk.def -out:$@
92 $(INSTALL) gtk-win32-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)
95 -rm $(DESTDIR)$(libdir)/gtk-win32-$(GTK_API_VERSION).lib
101 # This places the generated .def file in srcdir, since it is expected to be there.
102 # (The one from a tarball is)
104 (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gtk.symbols | $(SED) -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > $(srcdir)/gtk.def
106 gtkalias.h: gtk.symbols
107 $(PERL) $(srcdir)/makegtkalias.pl < $(srcdir)/gtk.symbols > gtkalias.h
108 gtkaliasdef.c: gtk.symbols
109 $(PERL) $(srcdir)/makegtkalias.pl -def < $(srcdir)/gtk.symbols > gtkaliasdef.c
112 @$(TESTS_ENVIRONMENT) $(srcdir)/aliasfilescheck.sh
114 .PHONY: check-aliases
116 TESTS_ENVIRONMENT = srcdir="$(srcdir)" gtk_all_c_sources="$(gtk_all_c_sources)"
117 TESTS = aliasfilescheck.sh
119 TESTS += abicheck.sh pltcheck.sh
122 libgtkincludedir = $(includedir)/gtk-3.0/gtk
124 $(top_builddir)/gdk/$(gdktargetlib) \
128 # libtool stuff: set version and export symbols for resolving
129 # since automake doesn't support conditionalized libsomething_la_LDFLAGS
130 # we use the general approach here
133 -version-info $(LT_VERSION_INFO) \
134 -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS) \
135 -rpath $(libdir) $(libgtk_target_ldflags)
139 if HAVE_INCLUDED_IMMMODULES
140 @cd $(top_builddir)/modules/input && $(MAKE) $(AM_MAKEFLAGS) included-modules
142 libadd += $(INCLUDED_IMMODULE_OBJ)
143 deps += $(INCLUDED_IMMODULE_OBJ)
145 $(INCLUDED_IMMODULE_OBJ): included-modules
149 .PHONY: included-modules
152 # setup source file variables
155 # GTK+ header files for public installation (non-generated, or generated
157 gtk_public_h_sources = \
166 gtkaccelgroupprivate.h \
185 gtkcellrendereraccel.h \
186 gtkcellrenderercombo.h \
187 gtkcellrendererpixbuf.h \
188 gtkcellrendererprogress.h \
189 gtkcellrendererspin.h \
190 gtkcellrendererspinner.h\
191 gtkcellrenderertext.h \
192 gtkcellrenderertoggle.h \
199 gtkcolorseldialog.h \
210 gtkentrycompletion.h \
215 gtkfilechooserbutton.h \
216 gtkfilechooserdialog.h \
217 gtkfilechooserwidget.h \
239 gtkimcontextsimple.h \
241 gtkimmulticontext.h \
254 gtkmenutoolbutton.h \
258 gtkmountoperation.h \
261 gtkoffscreenwindow.h \
268 gtkprintoperation.h \
269 gtkprintoperationpreview.h \
276 gtkradiotoolbutton.h \
281 gtkrecentchooserdialog.h \
282 gtkrecentchoosermenu.h \
283 gtkrecentchooserwidget.h \
290 gtkscrolledwindow.h \
293 gtkseparatormenuitem.h \
294 gtkseparatortoolitem.h \
307 gtktearoffmenuitem.h \
310 gtktextbufferrichtext.h \
320 gtktoggletoolbutton.h \
330 gtktreemodelfilter.h \
336 gtktreeviewcolumn.h \
352 gtk_unix_print_public_h_sources = \
353 gtkpagesetupunixdialog.h \
354 gtkprintunixdialog.h \
360 # Installed header files without compatibility guarantees
361 # that are not included in gtk/gtk.h
362 gtk_semi_private_h_sources = \
365 # GTK+ header files that don't get installed
366 gtk_private_h_sources = \
369 gtksearchenginesimple.h \
372 gtkbuilderprivate.h \
373 gtkcustompaperunixdialog.h\
374 gtkfilechooserdefault.h \
375 gtkfilechooserembed.h \
376 gtkfilechooserentry.h \
377 gtkfilechooserprivate.h \
378 gtkfilechoosersettings.h \
379 gtkfilechooserutils.h \
381 gtkfilesystemmodel.h \
386 gtkmountoperationprivate.h \
389 gtkprintoperation-private.h\
392 gtkrecentchooserdefault.h \
393 gtkrecentchooserprivate.h \
394 gtkrecentchooserutils.h \
397 gtktextbufferserialize.h\
398 gtktextchildprivate.h \
399 gtktextiterprivate.h \
400 gtktextmarkprivate.h \
402 gtktexttagprivate.h \
406 gtktoggleactionprivate.h\
407 gtktoolpaletteprivate.h \
410 gtkwindow-decorate.h \
411 $(gtk_clipboard_dnd_h_sources)
413 # GTK+ C sources to build the library from
414 gtk_base_c_sources = \
417 gtksearchenginesimple.c \
445 gtkcellrendereraccel.c \
446 gtkcellrenderercombo.c \
447 gtkcellrendererpixbuf.c \
448 gtkcellrendererprogress.c \
449 gtkcellrendererspin.c \
450 gtkcellrendererspinner.c\
451 gtkcellrenderertext.c \
452 gtkcellrenderertoggle.c \
458 gtkcolorseldialog.c \
467 gtkentrycompletion.c \
471 gtkfilechooserbutton.c \
472 gtkfilechooserdefault.c \
473 gtkfilechooserdialog.c \
474 gtkfilechooserembed.c \
475 gtkfilechooserentry.c \
476 gtkfilechoosersettings.c \
477 gtkfilechooserutils.c \
478 gtkfilechooserwidget.c \
481 gtkfilesystemmodel.c \
497 gtkiconcachevalidator.c \
504 gtkimcontextsimple.c \
506 gtkimmulticontext.c \
521 gtkmenutoolbutton.c \
526 gtkmountoperation.c \
529 gtkoffscreenwindow.c \
537 gtkprintoperation.c \
538 gtkprintoperationpreview.c \
545 gtkradiotoolbutton.c \
550 gtkrecentchooserdefault.c \
551 gtkrecentchooserdialog.c \
552 gtkrecentchoosermenu.c \
553 gtkrecentchooserwidget.c \
554 gtkrecentchooserutils.c \
562 gtkscrolledwindow.c \
565 gtkseparatormenuitem.c \
566 gtkseparatortoolitem.c \
579 gtktearoffmenuitem.c \
583 gtktextbufferrichtext.c \
584 gtktextbufferserialize.c\
599 gtktoggletoolbutton.c \
610 gtktreemodelfilter.c \
616 gtktreeviewcolumn.c \
630 gtkwindow-decorate.c \
632 $(gtk_clipboard_dnd_c_sources)
634 gtk_c_sources = $(gtk_base_c_sources)
635 gtk_all_c_sources = $(gtk_base_c_sources)
637 gtk_os_unix_c_sources = \
638 gtkcustompaperunixdialog.c \
639 gtkpagesetupunixdialog.c \
642 gtkprinteroptionset.c \
643 gtkprinteroptionwidget.c \
645 gtkprintoperation-unix.c \
646 gtkprintunixdialog.c \
648 gtksearchenginebeagle.c \
649 gtksearchenginetracker.c
650 gtk_all_c_sources += $(gtk_os_unix_c_sources)
652 gtk_private_h_sources += \
653 gtkiconcachevalidator.h \
655 gtkprinter-private.h \
657 gtkprinteroptionset.h \
658 gtkprinteroptionwidget.h \
659 gtksearchenginebeagle.h \
660 gtksearchenginetracker.h
661 gtk_c_sources += $(gtk_os_unix_c_sources)
664 gtk_os_win32_c_sources = \
666 gtkprintoperation-win32.c
667 gtk_all_c_sources += $(gtk_os_win32_c_sources)
669 gtk_private_h_sources += gtkprint-win32.h
670 gtk_c_sources += $(gtk_os_win32_c_sources)
673 gtk_use_x11_c_sources = \
678 gtkmountoperation-x11.c
679 gtk_use_win32_c_sources = \
683 gtkwin32embedwidget.c \
684 gtkmountoperation-stub.c
685 gtk_use_quartz_c_sources = \
686 gtksearchenginequartz.c \
689 gtkmountoperation-stub.c
690 gtk_use_stub_c_sources = \
693 gtkmountoperation-stub.c
694 gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_quartz_c_sources) $(gtk_use_stub_c_sources)
696 gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h
697 gtk_c_sources += $(gtk_use_x11_c_sources)
700 gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
701 gtk_c_sources += $(gtk_use_win32_c_sources)
704 gtk_private_h_sources += gtksearchenginequartz.h
705 gtk_c_sources += $(gtk_use_quartz_c_sources)
706 gtk_use_quartz_c_sources_CFLAGS = "-xobjective-c"
708 gtk_c_sources += $(gtk_use_stub_c_sources)
714 gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c
715 gtk_clipboard_dnd_h_sources = gtkquartz.h
716 gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
718 gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
719 gtk_clipboard_dnd_c_sources_CFLAGS =
721 EXTRA_DIST += gtkquartz.h
723 # we use our own built_sources variable rules to avoid automake's
724 # BUILT_SOURCES oddities
725 # we generate frequently rebuild files piggyback on a stamp file, so sources
726 # depending on them only get rebuild when the built source actually changed
729 # built sources that get installed with the header files
730 gtk_built_public_sources = \
733 # built headers that don't get installed
734 gtk_built_private_headers = \
738 gtkimcontextsimpleseqs.h
740 gtk_built_sources = \
745 ${gtk_built_private_headers} \
746 ${gtk_built_public_sources}
749 stamp-gtkmarshalers.h \
750 stamp-gtktypebuiltins.h \
753 # non-header sources (headers should be specified in the above variables)
754 # that don't serve as direct make target sources, i.e. they don't have
755 # their own .lo rules and don't get publically installed
756 gtk_extra_sources = \
758 paper_names_offsets.c \
760 gtkstatusicon-quartz.c \
766 # setup GTK+ sources and their dependencies
768 MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
770 EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
771 EXTRA_DIST += $(gtk_built_sources)
772 EXTRA_DIST += $(STOCK_ICONS)
775 # rules to generate built sources
777 # setup autogeneration dependencies
778 gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc xgen-gtfsrc.c xgen-gtf
779 CLEANFILES = $(gen_sources)
781 BUILT_SOURCES = $(gtk_built_sources)
783 # all autogenerated files need to be generated in the srcdir,
784 # so old versions get remade and are not confused with newer
785 # versions in the build dir. thus a development setup requires
786 # srcdir to be writable, passing --disable-rebuilds to
787 # ../configure will supress all autogeneration rules.
788 gtkmarshalers.h: stamp-gtkmarshalers.h
790 stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
791 $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
792 && (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
794 && echo timestamp > $(@F)
795 gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
796 (echo "#include \"gtkmarshalers.h\""; \
797 echo "#include \"gtkalias.h\""; \
798 $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
799 && cp xgen-gmlc gtkmarshalers.c \
802 gtktypebuiltins.h: stamp-gtktypebuiltins.h
804 stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.h.template
805 ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.h.template \
806 $(gtk_public_h_sources) ) >> xgen-gtbh \
807 && (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
809 && echo timestamp > $(@F)
810 gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template
811 ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.c.template \
812 $(gtk_public_h_sources) ) > xgen-gtbc \
813 && cp xgen-gtbc gtktypebuiltins.c \
816 gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
817 echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
818 ${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
819 $(GREP) -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \
821 $(SED) '{ s/^/*tp++ = /; s/$$/();/; }' > xgen-gtf \
822 && cp xgen-gtf $@ && rm -f xgen-gtf
823 gtktestutils.c: gtktypefuncs.c
826 lib_LTLIBRARIES = $(gtktargetlib)
828 gtkincludedir = $(includedir)/gtk-3.0/gtk
829 gtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_semi_private_h_sources) $(gtk_built_public_sources) gtkversion.h
831 gtkunixprintincludedir = $(includedir)/gtk-3.0/unix-print/gtk
832 gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)
834 libgtk_x11_3_0_la_SOURCES = $(gtk_c_sources)
835 libgtk_win32_3_0_la_SOURCES = $(gtk_c_sources)
836 libgtk_quartz_3_0_la_SOURCES = $(gtk_c_sources)
837 libgtk_directfb_3_0_la_SOURCES = $(gtk_c_sources)
839 libgtk_x11_3_0_la_LDFLAGS = $(libtool_opts)
840 libgtk_win32_3_0_la_LDFLAGS = $(libtool_opts) -Wl,-luuid
841 libgtk_quartz_3_0_la_LDFLAGS = $(libtool_opts)
842 libgtk_directfb_3_0_la_LDFLAGS = $(libtool_opts)
844 libgtk_x11_3_0_la_LIBADD = $(libadd)
845 libgtk_win32_3_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32
846 libgtk_quartz_3_0_la_LIBADD = $(libadd)
847 libgtk_directfb_3_0_la_LIBADD = $(libadd)
849 libgtk_x11_3_0_la_DEPENDENCIES = $(deps)
850 libgtk_win32_3_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res) $(deps)
851 libgtk_quartz_3_0_la_DEPENDENCIES = $(deps)
852 libgtk_directfb_3_0_la_DEPENDENCIES = $(deps)
855 libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols)
857 EXTRA_LTLIBRARIES = libgtk-x11-3.0.la libgtk-win32-3.0.la libgtk-quartz-3.0.la libgtk-directfb-3.0.la
860 if DISABLE_EXPLICIT_DEPS
861 $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$(gtktargetlib)
865 install-mac-key-theme:
866 $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Mac/gtk-3.0-key
867 $(INSTALL_DATA) $(srcdir)/gtkrc.key.mac $(DESTDIR)$(datadir)/themes/Mac/gtk-3.0-key/gtkrc
868 uninstall-mac-key-theme:
869 rm -f $(DESTDIR)$(datadir)/themes/Mac/gtk-3.0-key/gtkrc
871 install-mac-key-theme:
872 uninstall-mac-key-theme:
875 dist-hook: ../build/win32/vs9/gtk.vcproj
877 ../build/win32/vs9/gtk.vcproj: ../build/win32/vs9/gtk.vcprojin
878 for F in $(gtk_base_c_sources) $(gtk_os_win32_c_sources) $(gtk_use_win32_c_sources); do \
880 *.c) echo ' <File RelativePath="..\..\..\gtk\'$$F'" />' \
883 done >libgtk.sourcefiles
884 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gtk.vcprojin >$@
885 rm libgtk.sourcefiles
887 # Install a RC file for the default GTK+ theme, and key themes
888 install-data-local: install-ms-lib install-def-file install-mac-key-theme
889 $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-3.0
890 $(INSTALL_DATA) $(srcdir)/gtkrc.default $(DESTDIR)$(datadir)/themes/Raleigh/gtk-3.0/gtkrc
891 $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-3.0-key
892 $(INSTALL_DATA) $(srcdir)/gtkrc.key.default $(DESTDIR)$(datadir)/themes/Default/gtk-3.0-key/gtkrc
893 $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Emacs/gtk-3.0-key
894 $(INSTALL_DATA) $(srcdir)/gtkrc.key.emacs $(DESTDIR)$(datadir)/themes/Emacs/gtk-3.0-key/gtkrc
896 uninstall-local: uninstall-ms-lib uninstall-def-file uninstall-mac-key-theme
897 rm -f $(DESTDIR)$(datadir)/themes/Raleigh/gtk-3.0/gtkrc
898 rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-3.0-key/gtkrc
899 rm -f $(DESTDIR)$(datadir)/themes/Emacs/gtk-3.0-key/gtkrc
901 # if srcdir!=builddir, clean out maintainer-clean files from builddir
902 # this allows dist to pass.
904 if test $(srcdir) != .; then \
905 rm -f $(MAINTAINERCLEANFILES); \
908 DEPS = $(gtktargetlib) $(top_builddir)/gdk/$(gdktargetlib)
910 TEST_DEPS = $(DEPS) immodules.cache
914 $(top_builddir)/gdk/$(gdktargetlib) \
917 if HAVE_INTROSPECTION
918 introspection_files = \
919 $(gtkinclude_HEADERS) \
920 $(gtk_all_c_sources) \
924 Gtk-3.0.gir: $(INTROSPECTION_SCANNER) $(gtktargetlib) $(top_builddir)/gdk/Gdk-3.0.gir Makefile
925 Gtk_3_0_gir_SCANNERFLAGS = --strip-prefix=Gtk --add-include-path=$(top_builddir)/gdk
927 Gtk_3_0_gir_SCANNERFLAGS += --add-include-path=$(top_builddir)/gdk/x11
929 Gtk_3_0_gir_INCLUDES = Atk-1.0 Gdk-3.0
930 Gtk_3_0_gir_CFLAGS = \
932 -UGDK_DISABLE_DEPRECATED \
933 -UGTK_DISABLE_DEPRECATED \
934 -DGTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
935 Gtk_3_0_gir_LIBS = $(gtktargetlib)
936 Gtk_3_0_gir_FILES = $(addprefix $(srcdir)/, $(introspection_files))
937 INTROSPECTION_GIRS += Gtk-3.0.gir
939 girdir = $(datadir)/gir-1.0
940 gir_DATA = $(INTROSPECTION_GIRS)
942 typelibsdir = $(libdir)/girepository-1.0
943 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
945 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
952 gtk-query-immodules-3.0 \
953 gtk-update-icon-cache-3.0
955 bin_SCRIPTS = gtk-builder-convert-3.0
959 # Workaround for UAC silliness: programs with "update" in their name
960 # are believed to be installers and require elevated privileges to be
961 # used... Use a manifest file to tell Windows that
962 # gtk-update-icon-cache.exe doesn't require any special privileges.
964 GTK_UPDATE_ICON_CACHE_MANIFEST = gtk-update-icon-cache.exe.manifest
967 $(GTK_UPDATE_ICON_CACHE_MANIFEST)
969 gtk-update-icon-cache.exe.manifest:
970 (echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' ; \
971 echo '<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">' ; \
972 echo ' <assemblyIdentity version="1.0.0.0"' ; \
973 echo ' processorArchitecture="'$(EXE_MANIFEST_ARCHITECTURE)'"' ; \
974 echo ' name="gtk-update-icon-cache.exe"' ; \
975 echo ' type="win32"/>' ; \
976 echo ' <!-- Identify the application security requirements. -->' ; \
977 echo ' <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">' ; \
978 echo ' <security>' ; \
979 echo ' <requestedPrivileges>' ; \
980 echo ' <requestedExecutionLevel' ; \
981 echo ' level="asInvoker"' ; \
982 echo ' uiAccess="false"/>' ; \
983 echo ' </requestedPrivileges>' ; \
984 echo ' </security>' ; \
985 echo ' </trustInfo>' ; \
986 echo '</assembly>' ) >$@
990 gtk_query_immodules_3_0_DEPENDENCIES = $(DEPS)
991 gtk_query_immodules_3_0_LDADD = $(LDADDS)
992 gtk_query_immodules_3_0_SOURCES = queryimmodules.c
994 gtk_update_icon_cache_3_0_LDADD = $(GDK_PIXBUF_LIBS)
995 gtk_update_icon_cache_3_0_SOURCES = updateiconcache.c
997 .PHONY: files test test-debug
1000 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
1005 stock-icons/16/document-open-recent.png \
1006 stock-icons/16/gtk-about.png \
1007 stock-icons/16/gtk-add.png \
1008 stock-icons/16/gtk-cdrom.png \
1009 stock-icons/16/gtk-close.png \
1010 stock-icons/16/gtk-connect.png \
1011 stock-icons/16/gtk-convert.png \
1012 stock-icons/16/gtk-copy.png \
1013 stock-icons/16/gtk-cut.png \
1014 stock-icons/16/gtk-delete.png \
1015 stock-icons/16/gtk-directory.png \
1016 stock-icons/16/gtk-disconnect.png \
1017 stock-icons/16/gtk-edit.png \
1018 stock-icons/16/gtk-execute.png \
1019 stock-icons/16/gtk-file.png \
1020 stock-icons/16/gtk-find-and-replace.png \
1021 stock-icons/16/gtk-find.png \
1022 stock-icons/16/gtk-floppy.png \
1023 stock-icons/16/gtk-fullscreen.png \
1024 stock-icons/16/gtk-go-back-ltr.png \
1025 stock-icons/16/gtk-go-down.png \
1026 stock-icons/16/gtk-go-forward-ltr.png \
1027 stock-icons/16/gtk-goto-bottom.png \
1028 stock-icons/16/gtk-goto-first-ltr.png \
1029 stock-icons/16/gtk-goto-last-ltr.png \
1030 stock-icons/16/gtk-goto-top.png \
1031 stock-icons/16/gtk-go-up.png \
1032 stock-icons/16/gtk-harddisk.png \
1033 stock-icons/16/gtk-help.png \
1034 stock-icons/16/gtk-home.png \
1035 stock-icons/16/gtk-indent-ltr.png \
1036 stock-icons/16/gtk-indent-rtl.png \
1037 stock-icons/16/gtk-index.png \
1038 stock-icons/16/gtk-info.png \
1039 stock-icons/16/gtk-jump-to-ltr.png \
1040 stock-icons/16/gtk-jump-to-rtl.png \
1041 stock-icons/16/gtk-justify-center.png \
1042 stock-icons/16/gtk-justify-fill.png \
1043 stock-icons/16/gtk-justify-left.png \
1044 stock-icons/16/gtk-justify-right.png \
1045 stock-icons/16/gtk-leave-fullscreen.png \
1046 stock-icons/16/gtk-media-forward-ltr.png \
1047 stock-icons/16/gtk-media-next-ltr.png \
1048 stock-icons/16/gtk-media-pause.png \
1049 stock-icons/16/gtk-media-play-ltr.png \
1050 stock-icons/16/gtk-media-play-rtl.png \
1051 stock-icons/16/gtk-media-previous-ltr.png \
1052 stock-icons/16/gtk-media-record.png \
1053 stock-icons/16/gtk-media-rewind-ltr.png \
1054 stock-icons/16/gtk-media-stop.png \
1055 stock-icons/16/gtk-missing-image.png \
1056 stock-icons/16/gtk-network.png \
1057 stock-icons/16/gtk-new.png \
1058 stock-icons/16/gtk-open.png \
1059 stock-icons/16/gtk-page-setup.png \
1060 stock-icons/16/gtk-paste.png \
1061 stock-icons/16/gtk-preferences.png \
1062 stock-icons/16/gtk-print.png \
1063 stock-icons/16/gtk-print-error.png \
1064 stock-icons/16/gtk-print-paused.png \
1065 stock-icons/16/gtk-print-preview.png \
1066 stock-icons/16/gtk-print-report.png \
1067 stock-icons/16/gtk-print-warning.png \
1068 stock-icons/16/gtk-properties.png \
1069 stock-icons/16/gtk-quit.png \
1070 stock-icons/16/gtk-redo-ltr.png \
1071 stock-icons/16/gtk-redo-rtl.png \
1072 stock-icons/16/gtk-refresh.png \
1073 stock-icons/16/gtk-remove.png \
1074 stock-icons/16/gtk-revert-to-saved-ltr.png \
1075 stock-icons/16/gtk-revert-to-saved-rtl.png \
1076 stock-icons/16/gtk-save-as.png \
1077 stock-icons/16/gtk-select-all.png \
1078 stock-icons/16/gtk-select-color.png \
1079 stock-icons/16/gtk-select-font.png \
1080 stock-icons/16/gtk-sort-ascending.png \
1081 stock-icons/16/gtk-sort-descending.png \
1082 stock-icons/16/gtk-spell-check.png \
1083 stock-icons/16/gtk-stop.png \
1084 stock-icons/16/gtk-strikethrough.png \
1085 stock-icons/16/gtk-font.png \
1086 stock-icons/16/gtk-undelete-ltr.png \
1087 stock-icons/16/gtk-undelete-rtl.png \
1088 stock-icons/16/gtk-underline.png \
1089 stock-icons/16/gtk-undo-ltr.png \
1090 stock-icons/16/gtk-undo-rtl.png \
1091 stock-icons/16/gtk-unindent-ltr.png \
1092 stock-icons/16/gtk-unindent-rtl.png \
1093 stock-icons/16/gtk-zoom-100.png \
1094 stock-icons/16/gtk-zoom-fit.png \
1095 stock-icons/16/gtk-zoom-in.png \
1096 stock-icons/16/gtk-zoom-out.png \
1097 stock-icons/16/gtk-italic.png \
1098 stock-icons/16/gtk-bold.png \
1099 stock-icons/20/gtk-apply.png \
1100 stock-icons/20/gtk-cancel.png \
1101 stock-icons/20/gtk-close.png \
1102 stock-icons/20/gtk-no.png \
1103 stock-icons/20/gtk-ok.png \
1104 stock-icons/20/gtk-yes.png \
1105 stock-icons/24/audio-volume-high.png \
1106 stock-icons/24/audio-volume-low.png \
1107 stock-icons/24/audio-volume-medium.png \
1108 stock-icons/24/audio-volume-muted.png \
1109 stock-icons/24/document-open-recent.png \
1110 stock-icons/24/gtk-about.png \
1111 stock-icons/24/gtk-add.png \
1112 stock-icons/24/gtk-bold.png \
1113 stock-icons/24/gtk-cdrom.png \
1114 stock-icons/24/gtk-clear.png \
1115 stock-icons/24/gtk-close.png \
1116 stock-icons/24/gtk-color-picker.png \
1117 stock-icons/24/gtk-connect.png \
1118 stock-icons/24/gtk-convert.png \
1119 stock-icons/24/gtk-copy.png \
1120 stock-icons/24/gtk-cut.png \
1121 stock-icons/24/gtk-directory.png \
1122 stock-icons/24/gtk-disconnect.png \
1123 stock-icons/24/gtk-edit.png \
1124 stock-icons/24/gtk-execute.png \
1125 stock-icons/24/gtk-file.png \
1126 stock-icons/24/gtk-find-and-replace.png \
1127 stock-icons/24/gtk-find.png \
1128 stock-icons/24/gtk-font.png \
1129 stock-icons/24/gtk-fullscreen.png \
1130 stock-icons/24/gtk-go-back-ltr.png \
1131 stock-icons/24/gtk-goto-top.png \
1132 stock-icons/24/gtk-go-down.png \
1133 stock-icons/24/gtk-goto-bottom.png \
1134 stock-icons/24/gtk-goto-first-ltr.png \
1135 stock-icons/24/gtk-goto-last-ltr.png \
1136 stock-icons/24/gtk-go-up.png \
1137 stock-icons/24/gtk-harddisk.png \
1138 stock-icons/24/gtk-help.png \
1139 stock-icons/24/gtk-home.png \
1140 stock-icons/24/gtk-indent-ltr.png \
1141 stock-icons/24/gtk-indent-rtl.png \
1142 stock-icons/24/gtk-index.png \
1143 stock-icons/24/gtk-info.png \
1144 stock-icons/24/gtk-italic.png \
1145 stock-icons/24/gtk-jump-to-ltr.png \
1146 stock-icons/24/gtk-jump-to-rtl.png \
1147 stock-icons/24/gtk-justify-center.png \
1148 stock-icons/24/gtk-justify-fill.png \
1149 stock-icons/24/gtk-justify-left.png \
1150 stock-icons/24/gtk-justify-right.png \
1151 stock-icons/24/gtk-leave-fullscreen.png \
1152 stock-icons/24/gtk-media-forward-ltr.png \
1153 stock-icons/24/gtk-media-next-ltr.png \
1154 stock-icons/24/gtk-media-pause.png \
1155 stock-icons/24/gtk-media-play-ltr.png \
1156 stock-icons/24/gtk-media-play-rtl.png \
1157 stock-icons/24/gtk-media-previous-ltr.png \
1158 stock-icons/24/gtk-media-record.png \
1159 stock-icons/24/gtk-media-rewind-ltr.png \
1160 stock-icons/24/gtk-media-stop.png \
1161 stock-icons/24/gtk-missing-image.png \
1162 stock-icons/24/gtk-network.png \
1163 stock-icons/24/gtk-new.png \
1164 stock-icons/24/gtk-open.png \
1165 stock-icons/24/gtk-orientation-reverse-landscape.png \
1166 stock-icons/24/gtk-orientation-landscape.png \
1167 stock-icons/24/gtk-orientation-reverse-portrait.png \
1168 stock-icons/24/gtk-orientation-portrait.png \
1169 stock-icons/24/gtk-page-setup.png \
1170 stock-icons/24/gtk-paste.png \
1171 stock-icons/24/gtk-preferences.png \
1172 stock-icons/24/gtk-print.png \
1173 stock-icons/24/gtk-print-error.png \
1174 stock-icons/24/gtk-print-paused.png \
1175 stock-icons/24/gtk-print-preview.png \
1176 stock-icons/24/gtk-print-report.png \
1177 stock-icons/24/gtk-print-warning.png \
1178 stock-icons/24/gtk-properties.png \
1179 stock-icons/24/gtk-quit.png \
1180 stock-icons/24/gtk-redo-ltr.png \
1181 stock-icons/24/gtk-redo-rtl.png \
1182 stock-icons/24/gtk-refresh.png \
1183 stock-icons/24/gtk-remove.png \
1184 stock-icons/24/gtk-revert-to-saved-ltr.png \
1185 stock-icons/24/gtk-revert-to-saved-rtl.png \
1186 stock-icons/24/gtk-select-font.png \
1187 stock-icons/24/gtk-save-as.png \
1188 stock-icons/24/gtk-floppy.png \
1189 stock-icons/24/gtk-select-all.png \
1190 stock-icons/24/gtk-select-color.png \
1191 stock-icons/24/gtk-sort-ascending.png \
1192 stock-icons/24/gtk-sort-descending.png \
1193 stock-icons/24/gtk-spell-check.png \
1194 stock-icons/24/gtk-stop.png \
1195 stock-icons/24/gtk-strikethrough.png \
1196 stock-icons/24/gtk-delete.png \
1197 stock-icons/24/gtk-undelete-ltr.png \
1198 stock-icons/24/gtk-undelete-rtl.png \
1199 stock-icons/24/gtk-underline.png \
1200 stock-icons/24/gtk-undo-ltr.png \
1201 stock-icons/24/gtk-undo-rtl.png \
1202 stock-icons/24/gtk-unindent-ltr.png \
1203 stock-icons/24/gtk-unindent-rtl.png \
1204 stock-icons/24/gtk-zoom-100.png \
1205 stock-icons/24/gtk-zoom-fit.png \
1206 stock-icons/24/gtk-zoom-in.png \
1207 stock-icons/24/gtk-zoom-out.png \
1208 stock-icons/24/gtk-go-forward-ltr.png \
1209 stock-icons/32/gtk-dnd-multiple.png \
1210 stock-icons/32/gtk-dnd.png \
1211 stock-icons/48/gtk-dialog-authentication.png \
1212 stock-icons/48/gtk-dialog-error.png \
1213 stock-icons/48/gtk-dialog-info.png \
1214 stock-icons/48/gtk-dialog-question.png \
1215 stock-icons/48/gtk-dialog-warning.png
1218 stock-icons/16/gtk-go-back-rtl.png \
1219 stock-icons/16/gtk-go-forward-rtl.png \
1220 stock-icons/16/gtk-goto-first-rtl.png \
1221 stock-icons/16/gtk-goto-last-rtl.png \
1222 stock-icons/16/gtk-media-forward-rtl.png \
1223 stock-icons/16/gtk-media-next-rtl.png \
1224 stock-icons/16/gtk-media-previous-rtl.png \
1225 stock-icons/16/gtk-media-rewind-rtl.png \
1226 stock-icons/16/gtk-save.png \
1227 stock-icons/16/drive-harddisk.png \
1228 stock-icons/16/folder.png \
1229 stock-icons/16/folder-remote.png \
1230 stock-icons/16/user-home.png \
1231 stock-icons/16/user-desktop.png \
1232 stock-icons/16/text-x-generic.png \
1233 stock-icons/24/gtk-go-back-rtl.png \
1234 stock-icons/24/gtk-go-forward-rtl.png \
1235 stock-icons/24/gtk-goto-first-rtl.png \
1236 stock-icons/24/gtk-goto-last-rtl.png \
1237 stock-icons/24/gtk-media-forward-rtl.png \
1238 stock-icons/24/gtk-media-next-rtl.png \
1239 stock-icons/24/gtk-media-previous-rtl.png \
1240 stock-icons/24/gtk-media-rewind-rtl.png \
1241 stock-icons/24/gtk-save.png \
1242 stock-icons/24/drive-harddisk.png \
1243 stock-icons/24/folder.png \
1244 stock-icons/24/folder-remote.png \
1245 stock-icons/24/user-home.png \
1246 stock-icons/24/user-desktop.png \
1247 stock-icons/24/text-x-generic.png
1249 # need to copy the icons so that we can replace the generated ones with
1250 # symlinks, even in the readonly srcdir case
1251 stamp-icons: $(STOCK_ICONS)
1252 if [ ! -d stock-icons ]; then \
1253 for d in 16 20 24 32 48; do \
1254 mkdir -p stock-icons/$$d; \
1256 for f in $(STOCK_ICONS); do \
1257 cp $(srcdir)/$$f $$(dirname $$f); \
1259 chmod -R u+w stock-icons; \
1261 for i in 16 24; do \
1262 (cd stock-icons/$$i \
1263 && $(RM) gtk-go-back-rtl.png \
1264 && $(LN_S) gtk-go-forward-ltr.png gtk-go-back-rtl.png \
1265 && $(RM) gtk-go-forward-rtl.png \
1266 && $(LN_S) gtk-go-back-ltr.png gtk-go-forward-rtl.png \
1267 && $(RM) gtk-goto-first-rtl.png \
1268 && $(LN_S) gtk-goto-last-ltr.png gtk-goto-first-rtl.png \
1269 && $(RM) gtk-goto-last-rtl.png \
1270 && $(LN_S) gtk-goto-first-ltr.png gtk-goto-last-rtl.png \
1271 && $(RM) gtk-media-forward-rtl.png \
1272 && $(LN_S) gtk-media-rewind-ltr.png gtk-media-forward-rtl.png\
1273 && $(RM) gtk-media-next-rtl.png \
1274 && $(LN_S) gtk-media-previous-ltr.png gtk-media-next-rtl.png \
1275 && $(RM) gtk-media-previous-rtl.png \
1276 && $(LN_S) gtk-media-next-ltr.png gtk-media-previous-rtl.png \
1277 && $(RM) gtk-media-rewind-rtl.png \
1278 && $(LN_S) gtk-media-forward-ltr.png gtk-media-rewind-rtl.png\
1279 && $(RM) gtk-save.png \
1280 && $(LN_S) gtk-floppy.png gtk-save.png \
1281 && $(RM) drive-harddisk.png \
1282 && $(LN_S) gtk-harddisk.png drive-harddisk.png \
1283 && $(RM) folder.png \
1284 && $(LN_S) gtk-directory.png folder.png \
1285 && $(RM) folder-remote.png \
1286 && $(LN_S) gtk-directory.png folder-remote.png \
1287 && $(RM) user-home.png \
1288 && $(LN_S) gtk-directory.png user-home.png \
1289 && $(RM) user-desktop.png \
1290 && $(LN_S) gtk-directory.png user-desktop.png \
1291 && $(RM) text-x-generic.png \
1292 && $(LN_S) gtk-file.png text-x-generic.png \
1294 && touch stamp-icons
1297 gtk_update_icon_cache_program = $(GTK_UPDATE_ICON_CACHE)
1299 gtk_update_icon_cache_program = \
1300 ./gtk-update-icon-cache-3.0
1303 gtkbuiltincache.h: @REBUILD@ stamp-icons
1304 $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache-3.0$(EXEEXT) $(GTK_UPDATE_ICON_CACHE_MANIFEST)
1305 $(gtk_update_icon_cache_program) --force --ignore-theme-index \
1306 --source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
1307 mv gtkbuiltincache.h.tmp gtkbuiltincache.h
1311 $(GENERATED_ICONS) \
1319 gtk-builder-convert-3.0 \
1323 gtkwin32embedwidget.h \
1324 gtkwin32embedwidget.c \
1327 gtksearchenginequartz.h \
1335 aliasfilescheck.sh \
1338 gtktypebuiltins.c.template \
1339 gtktypebuiltins.h.template
1344 -include $(top_srcdir)/git.mk