]> Pileus Git - ~andy/gtk/blob - gtk/Makefile.am
s/GtkStyleSet/GtkStyleProperties/
[~andy/gtk] / gtk / Makefile.am
1 # Makefile.am for gtk+/gtk
2 include $(top_srcdir)/Makefile.decl
3 -include $(INTROSPECTION_MAKEFILE)
4 INTROSPECTION_GIRS =
5 INTROSPECTION_SCANNER_ARGS = \
6         --add-include-path=../gdk
7 INTROSPECTION_COMPILER_ARGS = \
8         --includedir=$(srcdir) \
9     --includedir=. \
10     --includedir=../gdk
11
12 if USE_QUARTZ
13 GTK_PRINT_PREVIEW_COMMAND="open -a /Applications/Preview.app %f"
14 else
15 GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
16 endif
17
18 SUBDIRS = theme-bits . tests
19 DIST_SUBDIRS = theme-bits tests
20
21 if HAVE_PAPI_CUPS
22 GTK_PRINT_BACKENDS=file,papi,cups
23 else
24 if HAVE_CUPS
25 GTK_PRINT_BACKENDS=file,cups
26 else
27 if HAVE_PAPI
28 GTK_PRINT_BACKENDS=file,papi
29 else
30 GTK_PRINT_BACKENDS=file,lpr
31 endif
32 endif
33 endif
34
35 INCLUDES =                                              \
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)\"                          \
44         -DGTK_COMPILATION                               \
45         -DGTK_PRINT_BACKENDS=\"$(GTK_PRINT_BACKENDS)\"  \
46         -DGTK_PRINT_PREVIEW_COMMAND=\"$(GTK_PRINT_PREVIEW_COMMAND)\"    \
47         -I$(top_builddir)                               \
48         -I$(top_builddir)/gtk                           \
49         -I$(top_srcdir) -I../gdk                        \
50         -I$(top_srcdir)/gdk                             \
51         -DGDK_DISABLE_DEPRECATED                        \
52         -DGTK_DISABLE_DEPRECATED                        \
53         -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED            \
54         -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED          \
55         $(GTK_DEBUG_FLAGS)                              \
56         $(GTK_DEP_CFLAGS)                               \
57         $(gtk_clipboard_dnd_c_sources_CFLAGS)           \
58         $(INCLUDED_IMMODULE_DEFINE)
59
60 gtarget=$(gdktarget)
61
62 if PLATFORM_WIN32
63 no_undefined = -no-undefined
64 endif
65
66 if OS_WIN32
67 gtk_def = gtk.def
68 gtk_win32_symbols = -export-symbols $(srcdir)/gtk.def
69
70 gtk_win32_res = gtk-win32-res.o
71 gtk_win32_res_ldflag = -Wl,gtk-win32-res.o
72
73 gtk-win32-res.o : gtk-win32.rc
74         $(WINDRES) gtk-win32.rc $@
75
76 install-def-file: gtk.def
77         $(INSTALL) $(srcdir)/gtk.def $(DESTDIR)$(libdir)/gtk-win32-3.0.def
78 uninstall-def-file:
79         -rm $(DESTDIR)$(libdir)/gtk-win32-3.0.def
80 else
81 install-def-file:
82 uninstall-def-file:
83 endif
84
85 if MS_LIB_AVAILABLE
86 noinst_DATA = gtk-win32-$(GTK_API_VERSION).lib
87
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:$@
90
91 install-ms-lib:
92         $(INSTALL) gtk-win32-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)
93
94 uninstall-ms-lib:
95         -rm $(DESTDIR)$(libdir)/gtk-win32-$(GTK_API_VERSION).lib
96 else
97 install-ms-lib:
98 uninstall-ms-lib:
99 endif
100
101 # This places the generated .def file in srcdir, since it is expected to be there.
102 # (The one from a tarball is)
103 gtk.def: gtk.symbols
104         (echo -e EXPORTS; $(CPP) -P -DG_OS_WIN32 - <$(srcdir)/gtk.symbols | $(SED) -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > $(srcdir)/gtk.def
105
106 TESTS_ENVIRONMENT = srcdir="$(srcdir)" gtk_all_c_sources="$(gtk_all_c_sources)"
107 if OS_LINUX
108 TESTS = abicheck.sh
109 endif
110
111 libgtkincludedir = $(includedir)/gtk-3.0/gtk
112 libadd =                                                                \
113         $(top_builddir)/gdk/$(gdktargetlib)                             \
114         $(GTK_DEP_LIBS)
115 deps =
116
117 # libtool stuff: set version and export symbols for resolving
118 # since automake doesn't support conditionalized libsomething_la_LDFLAGS
119 # we use the general approach here
120 libtool_opts =                                                  \
121   $(GTK_LINK_FLAGS)                                             \
122   -version-info $(LT_VERSION_INFO)                              \
123   -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)     \
124   -rpath $(libdir) $(libgtk_target_ldflags)
125
126
127 included-modules:
128 if HAVE_INCLUDED_IMMMODULES
129         @cd $(top_builddir)/modules/input && $(MAKE) $(AM_MAKEFLAGS) included-modules
130
131 libadd += $(INCLUDED_IMMODULE_OBJ)
132 deps += $(INCLUDED_IMMODULE_OBJ)
133
134 $(INCLUDED_IMMODULE_OBJ): included-modules
135         @true
136 endif
137
138 .PHONY: included-modules
139
140 #
141 # setup source file variables
142 #
143
144 # GTK+ header files for public installation (non-generated, or generated
145 # by configure)
146 gtk_public_h_sources =          \
147         gtk.h                   \
148         gtkaboutdialog.h        \
149         gtkaccelgroup.h         \
150         gtkaccellabel.h         \
151         gtkaccelmap.h           \
152         gtkaccessible.h         \
153         gtkaction.h             \
154         gtkactiongroup.h        \
155         gtkaccelgroupprivate.h  \
156         gtkactivatable.h        \
157         gtkadjustment.h         \
158         gtkalignment.h          \
159         gtkappchooser.h         \
160         gtkappchooserdialog.h   \
161         gtkappchooserbutton.h   \
162         gtkappchooserwidget.h   \
163         gtkapplication.h        \
164         gtkarrow.h              \
165         gtkaspectframe.h        \
166         gtkassistant.h          \
167         gtkbbox.h               \
168         gtkbin.h                \
169         gtkbindings.h           \
170         gtkbox.h                \
171         gtkbuilder.h            \
172         gtkbuildable.h          \
173         gtkbutton.h             \
174         gtkcalendar.h           \
175         gtkcelleditable.h       \
176         gtkcelllayout.h         \
177         gtkcellrenderer.h       \
178         gtkcellrendereraccel.h  \
179         gtkcellrenderercombo.h  \
180         gtkcellrendererpixbuf.h \
181         gtkcellrendererprogress.h \
182         gtkcellrendererspin.h   \
183         gtkcellrendererspinner.h\
184         gtkcellrenderertext.h   \
185         gtkcellrenderertoggle.h \
186         gtkcellview.h           \
187         gtkcheckbutton.h        \
188         gtkcheckmenuitem.h      \
189         gtkclipboard.h          \
190         gtkcolorbutton.h        \
191         gtkcolorsel.h           \
192         gtkcolorseldialog.h     \
193         gtkcombobox.h           \
194         gtkcomboboxtext.h       \
195         gtkcontainer.h          \
196         gtkcssprovider.h        \
197         gtkdebug.h              \
198         gtkdialog.h             \
199         gtkdnd.h                \
200         gtkdrawingarea.h        \
201         gtkeditable.h           \
202         gtkentry.h              \
203         gtkentrybuffer.h        \
204         gtkentrycompletion.h    \
205         gtkenums.h              \
206         gtkeventbox.h           \
207         gtkexpander.h           \
208         gtkfilechooser.h        \
209         gtkfilechooserbutton.h  \
210         gtkfilechooserdialog.h  \
211         gtkfilechooserwidget.h  \
212         gtkfilefilter.h         \
213         gtkfixed.h              \
214         gtkfontbutton.h         \
215         gtkfontsel.h            \
216         gtkframe.h              \
217         gtkgrid.h               \
218         gtkhandlebox.h          \
219         gtkhbbox.h              \
220         gtkhbox.h               \
221         gtkhpaned.h             \
222         gtkhscale.h             \
223         gtkhscrollbar.h         \
224         gtkhseparator.h         \
225         gtkhsv.h                \
226         gtkiconfactory.h        \
227         gtkicontheme.h          \
228         gtkiconview.h           \
229         gtkimage.h              \
230         gtkimagemenuitem.h      \
231         gtkimcontext.h          \
232         gtkimcontextsimple.h    \
233         gtkimmodule.h           \
234         gtkimmulticontext.h     \
235         gtkinfobar.h            \
236         gtkinvisible.h          \
237         gtklabel.h              \
238         gtklayout.h             \
239         gtklinkbutton.h         \
240         gtkliststore.h          \
241         gtkmain.h               \
242         gtkmenu.h               \
243         gtkmenubar.h            \
244         gtkmenuitem.h           \
245         gtkmenushell.h          \
246         gtkmenutoolbutton.h     \
247         gtkmessagedialog.h      \
248         gtkmisc.h               \
249         gtkmodules.h            \
250         gtkmountoperation.h     \
251         gtknotebook.h           \
252         gtkoffscreenwindow.h    \
253         gtkorientable.h         \
254         gtkpagesetup.h          \
255         gtkpaned.h              \
256         gtkpapersize.h          \
257         gtkplug.h               \
258         gtkprintcontext.h       \
259         gtkprintoperation.h     \
260         gtkprintoperationpreview.h      \
261         gtkprintsettings.h      \
262         gtkprogressbar.h        \
263         gtkradioaction.h        \
264         gtkradiobutton.h        \
265         gtkradiomenuitem.h      \
266         gtkradiotoolbutton.h    \
267         gtkrange.h              \
268         gtkrc.h                 \
269         gtkrecentaction.h       \
270         gtkrecentchooser.h      \
271         gtkrecentchooserdialog.h \
272         gtkrecentchoosermenu.h  \
273         gtkrecentchooserwidget.h \
274         gtkrecentfilter.h       \
275         gtkrecentmanager.h      \
276         gtkscale.h              \
277         gtkscalebutton.h        \
278         gtkscrollable.h         \
279         gtkscrollbar.h          \
280         gtkscrolledwindow.h     \
281         gtkselection.h          \
282         gtkseparator.h          \
283         gtkseparatormenuitem.h  \
284         gtkseparatortoolitem.h  \
285         gtkshow.h               \
286         gtksettings.h           \
287         gtksizegroup.h          \
288         gtksizerequest.h        \
289         gtksocket.h             \
290         gtkspinbutton.h         \
291         gtkspinner.h            \
292         gtkstatusbar.h          \
293         gtkstatusicon.h         \
294         gtkstock.h              \
295         gtkstylecontext.h       \
296         gtkstyleproperties.h    \
297         gtkstyleprovider.h      \
298         gtkstyle.h              \
299         gtkswitch.h             \
300         gtksymboliccolor.h      \
301         gtktable.h              \
302         gtktearoffmenuitem.h    \
303         gtktestutils.h          \
304         gtktextbuffer.h         \
305         gtktextbufferrichtext.h \
306         gtktextchild.h          \
307         gtktextdisplay.h        \
308         gtktextiter.h           \
309         gtktextmark.h           \
310         gtktexttag.h            \
311         gtktexttagtable.h       \
312         gtktextview.h           \
313         gtkthemingengine.h      \
314         gtktoggleaction.h       \
315         gtktogglebutton.h       \
316         gtktoggletoolbutton.h   \
317         gtktoolbar.h            \
318         gtktoolbutton.h         \
319         gtktoolitem.h           \
320         gtktoolitemgroup.h      \
321         gtktoolpalette.h        \
322         gtktoolshell.h          \
323         gtktooltip.h            \
324         gtktreednd.h            \
325         gtktreemodel.h          \
326         gtktreemodelfilter.h    \
327         gtktreemodelsort.h      \
328         gtktreeselection.h      \
329         gtktreesortable.h       \
330         gtktreestore.h          \
331         gtktreeview.h           \
332         gtktreeviewcolumn.h     \
333         gtktypeutils.h          \
334         gtkuimanager.h          \
335         gtkvbbox.h              \
336         gtkvbox.h               \
337         gtkviewport.h           \
338         gtkvolumebutton.h       \
339         gtkvpaned.h             \
340         gtkvscale.h             \
341         gtkvscrollbar.h         \
342         gtkvseparator.h         \
343         gtkwidget.h             \
344         gtkwidgetpath.h         \
345         gtkwindow.h
346
347 if OS_UNIX
348 gtk_unix_print_public_h_sources =    \
349         gtkpagesetupunixdialog.h        \
350         gtkprintunixdialog.h            \
351         gtkprinter.h                    \
352         gtkprintjob.h                   \
353         gtkunixprint.h
354 endif
355
356 # Installed header files without compatibility guarantees
357 # that are not included in gtk/gtk.h
358 gtk_semi_private_h_sources =    \
359         gtktextlayout.h
360
361 if ENABLE_PACKAGEKIT
362 gtk_appchooser_impl_h_sources = \
363         gtkappchooseronlinepk.h \
364         $(NULL)
365 endif
366
367 if ENABLE_PACKAGEKIT
368 gtk_appchooser_impl_c_sources = \
369         gtkappchooseronlinepk.c \
370         $(NULL)
371 endif
372
373 # GTK+ header files that don't get installed
374 gtk_private_h_sources =         \
375         gtk9slice.h             \
376         gtkbuttonprivate.h      \
377         gtkquery.h              \
378         gtksearchengine.h       \
379         gtksearchenginesimple.h \
380         gtkdndcursors.h         \
381         gtkentryprivate.h       \
382         gtkanimationdescription.h \
383         gtkbuilderprivate.h     \
384         gtkcustompaperunixdialog.h\
385         gtkfilechooserdefault.h \
386         gtkfilechooserembed.h   \
387         gtkfilechooserentry.h   \
388         gtkfilechooserprivate.h \
389         gtkfilechooserutils.h   \
390         gtkfilesystem.h         \
391         gtkfilesystemmodel.h    \
392         gtkiconcache.h          \
393         gtkimcontextsimpleseqs.h   \
394         gtkintl.h               \
395         gtkkeyhash.h            \
396         gtkmenuprivate.h        \
397         gtkmnemonichash.h       \
398         gtkmountoperationprivate.h \
399         gtkappchooserprivate.h  \
400         gtkappchoosermodule.h   \
401         gtkappchooseronline.h   \
402         gtkpango.h              \
403         gtkpathbar.h            \
404         gtkplugprivate.h        \
405         gtkprintoperation-private.h\
406         gtkprintutils.h         \
407         gtkprivate.h            \
408         gtkrbtree.h             \
409         gtkrecentchooserdefault.h \
410         gtkrecentchooserprivate.h \
411         gtkrecentchooserutils.h \
412         gtksizegroup-private.h  \
413         gtksocketprivate.h      \
414         gtktextbtree.h          \
415         gtktextbufferserialize.h\
416         gtktextchildprivate.h   \
417         gtktextiterprivate.h    \
418         gtktextmarkprivate.h    \
419         gtktextsegment.h        \
420         gtktexttagprivate.h     \
421         gtktexttypes.h          \
422         gtktextutil.h           \
423         gtktimeline.h           \
424         gtkthemes.h             \
425         gtktoolpaletteprivate.h \
426         gtktreedatalist.h       \
427         gtktreeprivate.h        \
428         gtkwindow-decorate.h    \
429         gtkwidgetprivate.h      \
430         $(gtk_clipboard_dnd_h_sources) \
431         $(gtk_appchooser_impl_h_sources)
432
433 # GTK+ C sources to build the library from
434 gtk_base_c_sources =            \
435         gtk9slice.c             \
436         gtkquery.c              \
437         gtksearchengine.c       \
438         gtksearchenginesimple.c \
439         fnmatch.c               \
440         gtkaboutdialog.c        \
441         gtkaccelgroup.c         \
442         gtkaccellabel.c         \
443         gtkaccelmap.c           \
444         gtkaccessible.c         \
445         gtkaction.c             \
446         gtkactiongroup.c        \
447         gtkactivatable.c        \
448         gtkadjustment.c         \
449         gtkalignment.c          \
450         gtkappchooser.c         \
451         gtkappchooserwidget.c   \
452         gtkappchooserbutton.c   \
453         gtkappchooserdialog.c   \
454         gtkappchoosermodule.c   \
455         gtkappchooseronline.c   \
456         gtkapplication.c        \
457         gtkanimationdescription.c \
458         gtkarrow.c              \
459         gtkaspectframe.c        \
460         gtkassistant.c          \
461         gtkbbox.c               \
462         gtkbin.c                \
463         gtkbindings.c           \
464         gtkbox.c                \
465         gtkbuildable.c          \
466         gtkbuilder.c            \
467         gtkbuilderparser.c      \
468         gtkbutton.c             \
469         gtkcalendar.c           \
470         gtkcelleditable.c       \
471         gtkcelllayout.c         \
472         gtkcellrenderer.c       \
473         gtkcellrendereraccel.c  \
474         gtkcellrenderercombo.c  \
475         gtkcellrendererpixbuf.c \
476         gtkcellrendererprogress.c \
477         gtkcellrendererspin.c   \
478         gtkcellrendererspinner.c\
479         gtkcellrenderertext.c   \
480         gtkcellrenderertoggle.c \
481         gtkcellview.c           \
482         gtkcheckbutton.c        \
483         gtkcheckmenuitem.c      \
484         gtkcolorbutton.c        \
485         gtkcolorsel.c           \
486         gtkcolorseldialog.c     \
487         gtkcombobox.c           \
488         gtkcomboboxtext.c       \
489         gtkcontainer.c          \
490         gtkcssprovider.c        \
491         gtkdialog.c             \
492         gtkdrawingarea.c        \
493         gtkeditable.c           \
494         gtkentry.c              \
495         gtkentrybuffer.c        \
496         gtkentrycompletion.c    \
497         gtkeventbox.c           \
498         gtkexpander.c           \
499         gtkfilechooser.c        \
500         gtkfilechooserbutton.c  \
501         gtkfilechooserdefault.c \
502         gtkfilechooserdialog.c  \
503         gtkfilechooserembed.c   \
504         gtkfilechooserentry.c   \
505         gtkfilechooserutils.c   \
506         gtkfilechooserwidget.c  \
507         gtkfilefilter.c         \
508         gtkfilesystem.c         \
509         gtkfilesystemmodel.c    \
510         gtkfixed.c              \
511         gtkfontbutton.c         \
512         gtkfontsel.c            \
513         gtkframe.c              \
514         gtkgrid.c               \
515         gtkhandlebox.c          \
516         gtkhbbox.c              \
517         gtkhbox.c               \
518         gtkhpaned.c             \
519         gtkhscale.c             \
520         gtkhscrollbar.c         \
521         gtkhseparator.c         \
522         gtkhsv.c                \
523         gtkiconcache.c          \
524         gtkiconcachevalidator.c \
525         gtkiconfactory.c        \
526         gtkicontheme.c          \
527         gtkiconview.c           \
528         gtkimage.c              \
529         gtkimagemenuitem.c      \
530         gtkimcontext.c          \
531         gtkimcontextsimple.c    \
532         gtkimmodule.c           \
533         gtkimmulticontext.c     \
534         gtkinfobar.c            \
535         gtkinvisible.c          \
536         gtkkeyhash.c            \
537         gtklabel.c              \
538         gtklayout.c             \
539         gtklinkbutton.c         \
540         gtkliststore.c          \
541         gtkmain.c               \
542         gtkmarshalers.c         \
543         gtkmenu.c               \
544         gtkmenubar.c            \
545         gtkmenuitem.c           \
546         gtkmenushell.c          \
547         gtkmenutoolbutton.c     \
548         gtkmessagedialog.c      \
549         gtkmisc.c               \
550         gtkmnemonichash.c       \
551         gtkmodules.c            \
552         gtkmountoperation.c     \
553         gtknotebook.c           \
554         gtkoffscreenwindow.c    \
555         gtkorientable.c         \
556         gtkpagesetup.c          \
557         gtkpaned.c              \
558         gtkpango.c              \
559         gtkpapersize.c          \
560         gtkpathbar.c            \
561         gtkplug.c               \
562         gtkprintcontext.c       \
563         gtkprintoperation.c     \
564         gtkprintoperationpreview.c      \
565         gtkprintsettings.c      \
566         gtkprintutils.c         \
567         gtkprogressbar.c        \
568         gtkradioaction.c        \
569         gtkradiobutton.c        \
570         gtkradiomenuitem.c      \
571         gtkradiotoolbutton.c    \
572         gtkrange.c              \
573         gtkrbtree.c             \
574         gtkrc.c                 \
575         gtkrecentaction.c       \
576         gtkrecentchooserdefault.c \
577         gtkrecentchooserdialog.c \
578         gtkrecentchoosermenu.c  \
579         gtkrecentchooserwidget.c \
580         gtkrecentchooserutils.c \
581         gtkrecentchooser.c      \
582         gtkrecentfilter.c       \
583         gtkrecentmanager.c      \
584         gtkscale.c              \
585         gtkscalebutton.c        \
586         gtkscrollable.c         \
587         gtkscrollbar.c          \
588         gtkscrolledwindow.c     \
589         gtkselection.c          \
590         gtkseparator.c          \
591         gtkseparatormenuitem.c  \
592         gtkseparatortoolitem.c  \
593         gtksettings.c           \
594         gtksizegroup.c          \
595         gtksizerequest.c        \
596         gtkshow.c               \
597         gtksocket.c             \
598         gtkspinbutton.c         \
599         gtkspinner.c            \
600         gtkstatusbar.c          \
601         gtkstatusicon.c         \
602         gtkstock.c              \
603         gtkstylecontext.c       \
604         gtkstyleproperties.c    \
605         gtkstyleprovider.c      \
606         gtkstyle.c              \
607         gtkswitch.c             \
608         gtksymboliccolor.c      \
609         gtktable.c              \
610         gtktearoffmenuitem.c    \
611         gtktestutils.c          \
612         gtktextbtree.c          \
613         gtktextbuffer.c         \
614         gtktextbufferrichtext.c \
615         gtktextbufferserialize.c\
616         gtktextchild.c          \
617         gtktextdisplay.c        \
618         gtktextiter.c           \
619         gtktextlayout.c         \
620         gtktextmark.c           \
621         gtktextsegment.c        \
622         gtktexttag.c            \
623         gtktexttagtable.c       \
624         gtktexttypes.c          \
625         gtktextutil.c           \
626         gtktextview.c           \
627         gtkthemes.c             \
628         gtkthemingengine.c      \
629         gtktimeline.c           \
630         gtktoggleaction.c       \
631         gtktogglebutton.c       \
632         gtktoggletoolbutton.c   \
633         gtktoolbar.c            \
634         gtktoolbutton.c         \
635         gtktoolitem.c           \
636         gtktoolitemgroup.c              \
637         gtktoolpalette.c        \
638         gtktoolshell.c          \
639         gtktooltip.c            \
640         gtktreedatalist.c       \
641         gtktreednd.c            \
642         gtktreemodel.c          \
643         gtktreemodelfilter.c    \
644         gtktreemodelsort.c      \
645         gtktreeselection.c      \
646         gtktreesortable.c       \
647         gtktreestore.c          \
648         gtktreeview.c           \
649         gtktreeviewcolumn.c     \
650         gtktypebuiltins.c       \
651         gtktypeutils.c          \
652         gtkuimanager.c          \
653         gtkvbbox.c              \
654         gtkvbox.c               \
655         gtkvolumebutton.c       \
656         gtkviewport.c           \
657         gtkvpaned.c             \
658         gtkvscale.c             \
659         gtkvscrollbar.c         \
660         gtkvseparator.c         \
661         gtkwidget.c             \
662         gtkwidgetpath.c         \
663         gtkwindow-decorate.c    \
664         gtkwindow.c             \
665         $(gtk_clipboard_dnd_c_sources) \
666         $(gtk_appchooser_impl_c_sources)
667
668 gtk_c_sources = $(gtk_base_c_sources)
669 gtk_all_c_sources = $(gtk_base_c_sources)
670
671 gtk_os_unix_c_sources = \
672         gtkcustompaperunixdialog.c      \
673         gtkpagesetupunixdialog.c        \
674         gtkprinter.c                    \
675         gtkprinteroption.c              \
676         gtkprinteroptionset.c           \
677         gtkprinteroptionwidget.c        \
678         gtkprintjob.c                   \
679         gtkprintoperation-unix.c        \
680         gtkprintunixdialog.c            \
681         gtkprintbackend.c               \
682         gtksearchenginebeagle.c         \
683         gtksearchenginetracker.c
684 gtk_all_c_sources += $(gtk_os_unix_c_sources)
685 if OS_UNIX
686 gtk_private_h_sources += \
687         gtkiconcachevalidator.h         \
688         gtkprintbackend.h               \
689         gtkprinter-private.h            \
690         gtkprinteroption.h              \
691         gtkprinteroptionset.h           \
692         gtkprinteroptionwidget.h        \
693         gtksearchenginebeagle.h         \
694         gtksearchenginetracker.h
695 gtk_c_sources += $(gtk_os_unix_c_sources)
696 endif
697
698 gtk_os_win32_c_sources = \
699         gtkprint-win32.c                \
700         gtkprintoperation-win32.c
701 gtk_all_c_sources += $(gtk_os_win32_c_sources)
702 if OS_WIN32
703 gtk_private_h_sources += gtkprint-win32.h
704 gtk_c_sources += $(gtk_os_win32_c_sources)
705 endif
706
707 gtk_use_x11_c_sources = \
708         gtkplug-x11.c   \
709         gtksocket-x11.c \
710         gtkxembed.c     \
711         gtktrayicon-x11.c \
712         gtkmountoperation-x11.c
713 gtk_use_win32_c_sources = \
714         gtkplug-win32.c   \
715         gtksocket-win32.c \
716         gtkwin32embed.c   \
717         gtkwin32embedwidget.c \
718         gtkmountoperation-stub.c
719 gtk_use_quartz_c_sources =      \
720         gtksearchenginequartz.c \
721         gtkplug-stub.c          \
722         gtksocket-stub.c        \
723         gtkmountoperation-stub.c
724 gtk_use_stub_c_sources = \
725         gtkplug-stub.c   \
726         gtksocket-stub.c \
727         gtkmountoperation-stub.c
728 gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_quartz_c_sources) $(gtk_use_stub_c_sources)
729 if USE_X11
730 gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h
731 gtk_c_sources += $(gtk_use_x11_c_sources)
732 else
733 if USE_WIN32
734 gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
735 gtk_c_sources += $(gtk_use_win32_c_sources)
736 else
737 if USE_QUARTZ
738 gtk_private_h_sources += gtksearchenginequartz.h
739 gtk_c_sources += $(gtk_use_quartz_c_sources)
740 gtk_use_quartz_c_sources_CFLAGS = "-xobjective-c"
741 else
742 gtk_c_sources += $(gtk_use_stub_c_sources)
743 endif
744 endif
745 endif
746
747 if USE_QUARTZ
748 gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c
749 gtk_clipboard_dnd_h_sources = gtkquartz.h
750 gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
751 else
752 gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
753 gtk_clipboard_dnd_c_sources_CFLAGS =
754 endif
755 EXTRA_DIST += gtkquartz.h
756
757 # we use our own built_sources variable rules to avoid automake's
758 # BUILT_SOURCES oddities
759 # we generate frequently rebuild files piggyback on a stamp file, so sources
760 # depending on them only get rebuild when the built source actually changed
761 # content
762
763 # built sources that get installed with the header files
764 gtk_built_public_sources =                      \
765         gtktypebuiltins.h
766
767 # built headers that don't get installed
768 gtk_built_private_headers =                     \
769         gtkmarshalers.h                         \
770         gtkbuiltincache.h
771
772 gtk_built_sources =                             \
773         gtktypebuiltins.c                       \
774         gtktypefuncs.c                          \
775         gtkmarshalers.c                         \
776         ${gtk_built_private_headers}            \
777         ${gtk_built_public_sources}
778
779 stamp_files =                                   \
780         stamp-gtkmarshalers.h                   \
781         stamp-gtktypebuiltins.h                 \
782         stamp-icons
783
784 # non-header sources (headers should be specified in the above variables)
785 # that don't serve as direct make target sources, i.e. they don't have
786 # their own .lo rules and don't get publically installed
787 gtk_extra_sources =                             \
788         paper_names.c                           \
789         paper_names_offsets.c                   \
790         gen-paper-names.c                       \
791         gtkstatusicon-quartz.c                  \
792         gtk.symbols                             \
793         gtkversion.h.in                         \
794         gtkmarshalers.list
795
796 #
797 # setup GTK+ sources and their dependencies
798 #
799 MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
800 EXTRA_HEADERS =
801 EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
802 EXTRA_DIST += $(gtk_built_sources)
803 EXTRA_DIST += $(STOCK_ICONS)
804
805 #
806 # rules to generate built sources
807 #
808 # setup autogeneration dependencies
809 gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc xgen-gtfsrc.c xgen-gtf
810 CLEANFILES = $(gen_sources)
811
812 BUILT_SOURCES = $(gtk_built_sources)
813
814 # all autogenerated files need to be generated in the srcdir,
815 # so old versions get remade and are not confused with newer
816 # versions in the build dir. thus a development setup requires
817 # srcdir to be writable, passing --disable-rebuilds to
818 # ../configure will supress all autogeneration rules.
819 gtkmarshalers.h: stamp-gtkmarshalers.h
820         @true
821 stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
822         $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
823         && (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
824         && rm -f xgen-gmlh \
825         && echo timestamp > $(@F)       
826 gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
827         (echo "#include \"gtkmarshalers.h\""; \
828          $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
829         && cp xgen-gmlc gtkmarshalers.c \
830         && rm -f xgen-gmlc
831
832 gtktypebuiltins.h: stamp-gtktypebuiltins.h
833         @true
834 stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.h.template
835         ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.h.template \
836                 $(gtk_public_h_sources) ) >> xgen-gtbh \
837         && (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
838         && rm -f xgen-gtbh \
839         && echo timestamp > $(@F)
840 gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template
841         ( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.c.template \
842                 $(gtk_public_h_sources) ) > xgen-gtbc \
843         && cp xgen-gtbc gtktypebuiltins.c  \
844         && rm -f xgen-gtbc
845
846 gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
847         echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
848           ${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
849           $(GREP) -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \
850           sort | uniq | \
851           $(SED) '{ s/^/*tp++ = /; s/$$/();/; }' > xgen-gtf \
852         && cp xgen-gtf $@ && rm -f xgen-gtf
853 gtktestutils.c: gtktypefuncs.c
854
855 # target platform:
856 lib_LTLIBRARIES = $(gtktargetlib)
857
858 gtkincludedir = $(includedir)/gtk-3.0/gtk
859 gtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_semi_private_h_sources) $(gtk_built_public_sources) gtkversion.h
860
861 gtkunixprintincludedir = $(includedir)/gtk-3.0/unix-print/gtk
862 gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)
863
864 libgtk_x11_3_0_la_SOURCES = $(gtk_c_sources)
865 libgtk_win32_3_0_la_SOURCES = $(gtk_c_sources)
866 libgtk_quartz_3_0_la_SOURCES = $(gtk_c_sources)
867
868 libgtk_x11_3_0_la_LDFLAGS = $(libtool_opts)
869 libgtk_win32_3_0_la_LDFLAGS = $(libtool_opts) -Wl,-luuid
870 libgtk_quartz_3_0_la_LDFLAGS = $(libtool_opts)
871
872 libgtk_x11_3_0_la_LIBADD = $(libadd)
873 libgtk_win32_3_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32
874 libgtk_quartz_3_0_la_LIBADD = $(libadd)
875
876 libgtk_x11_3_0_la_DEPENDENCIES = $(deps)
877 libgtk_win32_3_0_la_DEPENDENCIES = $(gtk_def) $(gtk_win32_res) $(deps)
878 libgtk_quartz_3_0_la_DEPENDENCIES = $(deps)
879
880 if USE_WIN32
881 libgtk_target_ldflags = $(gtk_win32_res_ldflag) $(gtk_win32_symbols)
882 endif
883 EXTRA_LTLIBRARIES = libgtk-x11-3.0.la libgtk-win32-3.0.la libgtk-quartz-3.0.la
884
885 install-exec-hook:
886 if DISABLE_EXPLICIT_DEPS
887         $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$(gtktargetlib)
888 endif
889
890 if USE_QUARTZ
891 install-mac-key-theme:
892         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Mac/gtk-3.0-key
893         $(INSTALL_DATA) $(srcdir)/gtkrc.key.mac $(DESTDIR)$(datadir)/themes/Mac/gtk-3.0-key/gtkrc
894 uninstall-mac-key-theme:
895         rm -f $(DESTDIR)$(datadir)/themes/Mac/gtk-3.0-key/gtkrc
896 else
897 install-mac-key-theme:
898 uninstall-mac-key-theme:
899 endif
900
901 dist-hook: ../build/win32/vs9/gtk.vcproj
902
903 ../build/win32/vs9/gtk.vcproj: ../build/win32/vs9/gtk.vcprojin
904         for F in $(gtk_base_c_sources) $(gtk_os_win32_c_sources) $(gtk_use_win32_c_sources); do \
905                 case $$F in \
906                 *.c) echo '   <File RelativePath="..\..\..\gtk\'$$F'" />' \
907                      ;; \
908                 esac; \
909         done >libgtk.sourcefiles
910         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gtk.vcprojin >$@
911         rm libgtk.sourcefiles
912
913 # Install a RC file for the default GTK+ theme, and key themes
914 install-data-local: install-ms-lib install-def-file install-mac-key-theme
915         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-3.0
916         $(INSTALL_DATA) $(srcdir)/gtkrc.default $(DESTDIR)$(datadir)/themes/Raleigh/gtk-3.0/gtkrc
917         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-3.0-key
918         $(INSTALL_DATA) $(srcdir)/gtkrc.key.default $(DESTDIR)$(datadir)/themes/Default/gtk-3.0-key/gtkrc
919         $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Emacs/gtk-3.0-key
920         $(INSTALL_DATA) $(srcdir)/gtkrc.key.emacs $(DESTDIR)$(datadir)/themes/Emacs/gtk-3.0-key/gtkrc
921
922 uninstall-local: uninstall-ms-lib uninstall-def-file uninstall-mac-key-theme
923         rm -f $(DESTDIR)$(datadir)/themes/Raleigh/gtk-3.0/gtkrc
924         rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-3.0-key/gtkrc
925         rm -f $(DESTDIR)$(datadir)/themes/Emacs/gtk-3.0-key/gtkrc
926
927 # if srcdir!=builddir, clean out maintainer-clean files from builddir
928 # this allows dist to pass.
929 distclean-local:
930         if test $(srcdir) != .; then \
931           rm -f $(MAINTAINERCLEANFILES); \
932         fi
933
934 DEPS = $(gtktargetlib) $(top_builddir)/gdk/$(gdktargetlib)
935
936 TEST_DEPS = $(DEPS) immodules.cache
937
938 LDADDS =                                                                \
939         $(gtktargetlib)                                                 \
940         $(top_builddir)/gdk/$(gdktargetlib)                             \
941         $(GTK_DEP_LIBS)
942
943 if HAVE_INTROSPECTION
944 introspection_files = \
945     $(filter-out %private.h gtktextlayout.h, $(gtkinclude_HEADERS)) \
946     $(gtk_base_c_sources) \
947     gtktypebuiltins.h \
948     gtktypebuiltins.c
949
950 Gtk-3.0.gir: $(INTROSPECTION_SCANNER) $(gtktargetlib) $(top_builddir)/gdk/Gdk-3.0.gir Makefile
951 Gtk_3_0_gir_SCANNERFLAGS = --warn-all --add-include-path=$(top_builddir)/gdk
952 if USE_X11
953 Gtk_3_0_gir_SCANNERFLAGS += --add-include-path=$(top_builddir)/gdk/x11
954 endif
955 Gtk_3_0_gir_INCLUDES = Atk-1.0 Gdk-3.0
956 Gtk_3_0_gir_CFLAGS = \
957                 $(INCLUDES) \
958                 -UGDK_DISABLE_DEPRECATED \
959                 -UGTK_DISABLE_DEPRECATED \
960                 -DGTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
961 Gtk_3_0_gir_LIBS = $(gtktargetlib)
962 if USE_X11
963 Gtk_3_0_gir_LIBS += $(top_builddir)/gdk/libgdk-x11-3.0.la
964 endif
965 Gtk_3_0_gir_FILES = $(introspection_files)
966 INTROSPECTION_GIRS += Gtk-3.0.gir
967
968 girdir = $(datadir)/gir-1.0
969 gir_DATA = $(INTROSPECTION_GIRS)
970
971 typelibsdir = $(libdir)/girepository-1.0
972 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
973
974 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
975 endif
976
977 #
978 # Installed tools
979 #
980 bin_PROGRAMS = \
981         gtk-query-immodules-3.0 \
982         gtk-update-icon-cache-3.0
983
984 bin_SCRIPTS = gtk-builder-convert-3.0
985
986 if OS_WIN32
987
988 # Workaround for UAC silliness: programs with "update" in their name
989 # are believed to be installers and require elevated privileges to be
990 # used... Use a manifest file to tell Windows that
991 # gtk-update-icon-cache-3.0.exe doesn't require any special privileges.
992
993 GTK_UPDATE_ICON_CACHE_MANIFEST = gtk-update-icon-cache-3.0.exe.manifest
994
995 bin_SCRIPTS += \
996         $(GTK_UPDATE_ICON_CACHE_MANIFEST)
997
998 $(GTK_UPDATE_ICON_CACHE_MANIFEST):
999         (echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' ; \
1000          echo '<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">' ; \
1001          echo '  <assemblyIdentity version="1.0.0.0"' ; \
1002          echo '     processorArchitecture="'$(EXE_MANIFEST_ARCHITECTURE)'"' ; \
1003          echo '     name="gtk-update-icon-cache-3.0.exe"' ; \
1004          echo '     type="win32"/>' ; \
1005          echo '  <!-- Identify the application security requirements. -->' ; \
1006          echo '  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">' ; \
1007          echo '    <security>' ; \
1008          echo '      <requestedPrivileges>' ; \
1009          echo '        <requestedExecutionLevel' ; \
1010          echo '          level="asInvoker"' ; \
1011          echo '          uiAccess="false"/>' ; \
1012          echo '        </requestedPrivileges>' ; \
1013          echo '       </security>' ; \
1014          echo '  </trustInfo>' ; \
1015          echo '</assembly>' ) >$@
1016
1017 endif
1018
1019 gtk_query_immodules_3_0_DEPENDENCIES = $(DEPS)
1020 gtk_query_immodules_3_0_LDADD = $(LDADDS)
1021 gtk_query_immodules_3_0_SOURCES = queryimmodules.c
1022
1023 gtk_update_icon_cache_3_0_LDADD = $(GDK_PIXBUF_LIBS)
1024 gtk_update_icon_cache_3_0_SOURCES = updateiconcache.c
1025
1026 .PHONY: files test test-debug
1027
1028 files:
1029         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
1030           echo $$p; \
1031         done
1032
1033 STOCK_ICONS = \
1034         stock-icons/16/document-open-recent.png         \
1035         stock-icons/16/help-about.png                   \
1036         stock-icons/16/list-add.png                     \
1037         stock-icons/16/media-optical.png                \
1038         stock-icons/16/window-close.png                 \
1039         stock-icons/16/gtk-connect.png                  \
1040         stock-icons/16/gtk-convert.png                  \
1041         stock-icons/16/edit-copy.png                    \
1042         stock-icons/16/edit-cut.png                     \
1043         stock-icons/16/edit-delete.png                  \
1044         stock-icons/16/folder.png                       \
1045         stock-icons/16/gtk-disconnect.png               \
1046         stock-icons/16/gtk-edit.png                     \
1047         stock-icons/16/system-run.png                   \
1048         stock-icons/16/document-x-generic.png           \
1049         stock-icons/16/edit-find-replace.png            \
1050         stock-icons/16/edit-find.png                    \
1051         stock-icons/16/media-floppy.png                 \
1052         stock-icons/16/view-fullscreen.png              \
1053         stock-icons/16/go-previous-ltr.png              \
1054         stock-icons/16/go-down.png                      \
1055         stock-icons/16/go-next-ltr.png                  \
1056         stock-icons/16/go-bottom.png                    \
1057         stock-icons/16/go-first-ltr.png                 \
1058         stock-icons/16/go-last-ltr.png                  \
1059         stock-icons/16/go-top.png                       \
1060         stock-icons/16/go-up.png                        \
1061         stock-icons/16/drive-harddisk.png               \
1062         stock-icons/16/help-contents.png                \
1063         stock-icons/16/go-home.png                      \
1064         stock-icons/16/format-indent-more-ltr.png       \
1065         stock-icons/16/format-indent-more-rtl.png       \
1066         stock-icons/16/gtk-index.png                    \
1067         stock-icons/16/dialog-information.png           \
1068         stock-icons/16/go-jump-ltr.png                  \
1069         stock-icons/16/go-jump-rtl.png                  \
1070         stock-icons/16/format-justify-center.png        \
1071         stock-icons/16/format-justify-fill.png          \
1072         stock-icons/16/format-justify-left.png          \
1073         stock-icons/16/format-justify-right.png         \
1074         stock-icons/16/view-restore.png                 \
1075         stock-icons/16/media-seek-forward-ltr.png       \
1076         stock-icons/16/media-skip-forward-ltr.png       \
1077         stock-icons/16/media-playback-pause.png         \
1078         stock-icons/16/media-playback-start-ltr.png     \
1079         stock-icons/16/media-playback-start-rtl.png     \
1080         stock-icons/16/media-skip-backward-ltr.png      \
1081         stock-icons/16/media-record.png                 \
1082         stock-icons/16/media-seek-backward-ltr.png      \
1083         stock-icons/16/media-playback-stop.png          \
1084         stock-icons/16/image-missing.png                \
1085         stock-icons/16/network-idle.png                 \
1086         stock-icons/16/document-new.png                 \
1087         stock-icons/16/document-open.png                \
1088         stock-icons/16/gtk-page-setup.png               \
1089         stock-icons/16/edit-paste.png                   \
1090         stock-icons/16/gtk-preferences.png              \
1091         stock-icons/16/document-print.png               \
1092         stock-icons/16/printer-error.png                \
1093         stock-icons/16/printer-paused.png               \
1094         stock-icons/16/document-print-preview.png       \
1095         stock-icons/16/printer-info.png                 \
1096         stock-icons/16/printer-warning.png              \
1097         stock-icons/16/document-properties.png          \
1098         stock-icons/16/application-exit.png             \
1099         stock-icons/16/edit-redo-ltr.png                \
1100         stock-icons/16/edit-redo-rtl.png                \
1101         stock-icons/16/view-refresh.png                 \
1102         stock-icons/16/list-remove.png                  \
1103         stock-icons/16/document-revert-ltr.png          \
1104         stock-icons/16/document-revert-rtl.png          \
1105         stock-icons/16/document-save-as.png             \
1106         stock-icons/16/edit-select-all.png              \
1107         stock-icons/16/gtk-select-color.png             \
1108         stock-icons/16/gtk-select-font.png              \
1109         stock-icons/16/view-sort-ascending.png          \
1110         stock-icons/16/view-sort-descending.png         \
1111         stock-icons/16/tools-check-spelling.png         \
1112         stock-icons/16/process-stop.png                 \
1113         stock-icons/16/format-text-strikethrough.png    \
1114         stock-icons/16/gtk-font.png                     \
1115         stock-icons/16/gtk-undelete-ltr.png             \
1116         stock-icons/16/gtk-undelete-rtl.png             \
1117         stock-icons/16/format-text-underline.png        \
1118         stock-icons/16/edit-undo-ltr.png                \
1119         stock-icons/16/edit-undo-rtl.png                \
1120         stock-icons/16/format-indent-less-ltr.png       \
1121         stock-icons/16/format-indent-less-rtl.png       \
1122         stock-icons/16/zoom-original.png                \
1123         stock-icons/16/zoom-fit-best.png                \
1124         stock-icons/16/zoom-in.png                      \
1125         stock-icons/16/zoom-out.png                     \
1126         stock-icons/16/format-text-italic.png           \
1127         stock-icons/16/format-text-bold.png             \
1128         stock-icons/20/gtk-apply.png                    \
1129         stock-icons/20/gtk-cancel.png                   \
1130         stock-icons/20/window-close.png                 \
1131         stock-icons/20/gtk-no.png                       \
1132         stock-icons/20/gtk-ok.png                       \
1133         stock-icons/20/gtk-yes.png                      \
1134         stock-icons/24/audio-volume-high.png            \
1135         stock-icons/24/audio-volume-low.png             \
1136         stock-icons/24/audio-volume-medium.png          \
1137         stock-icons/24/audio-volume-muted.png           \
1138         stock-icons/24/document-open-recent.png         \
1139         stock-icons/24/help-about.png                   \
1140         stock-icons/24/list-add.png                     \
1141         stock-icons/24/format-text-bold.png             \
1142         stock-icons/24/media-optical.png                \
1143         stock-icons/24/edit-clear.png                   \
1144         stock-icons/24/window-close.png                 \
1145         stock-icons/24/gtk-color-picker.png             \
1146         stock-icons/24/gtk-connect.png                  \
1147         stock-icons/24/gtk-convert.png                  \
1148         stock-icons/24/edit-copy.png                    \
1149         stock-icons/24/edit-cut.png                     \
1150         stock-icons/24/folder.png                       \
1151         stock-icons/24/gtk-disconnect.png               \
1152         stock-icons/24/gtk-edit.png                     \
1153         stock-icons/24/system-run.png                   \
1154         stock-icons/24/document-x-generic.png           \
1155         stock-icons/24/edit-find-replace.png            \
1156         stock-icons/24/edit-find.png                    \
1157         stock-icons/24/gtk-font.png                     \
1158         stock-icons/24/view-fullscreen.png              \
1159         stock-icons/24/go-previous-ltr.png              \
1160         stock-icons/24/go-top.png                       \
1161         stock-icons/24/go-down.png                      \
1162         stock-icons/24/go-bottom.png                    \
1163         stock-icons/24/go-first-ltr.png                 \
1164         stock-icons/24/go-last-ltr.png                  \
1165         stock-icons/24/go-up.png                        \
1166         stock-icons/24/drive-harddisk.png               \
1167         stock-icons/24/help-contents.png                \
1168         stock-icons/24/go-home.png                      \
1169         stock-icons/24/format-indent-more-ltr.png       \
1170         stock-icons/24/format-indent-more-rtl.png       \
1171         stock-icons/24/gtk-index.png                    \
1172         stock-icons/24/dialog-information.png           \
1173         stock-icons/24/format-text-italic.png           \
1174         stock-icons/24/go-jump-ltr.png                  \
1175         stock-icons/24/go-jump-rtl.png                  \
1176         stock-icons/24/format-justify-center.png        \
1177         stock-icons/24/format-justify-fill.png          \
1178         stock-icons/24/format-justify-left.png          \
1179         stock-icons/24/format-justify-right.png         \
1180         stock-icons/24/view-restore.png                 \
1181         stock-icons/24/media-seek-forward-ltr.png       \
1182         stock-icons/24/media-skip-forward-ltr.png       \
1183         stock-icons/24/media-playback-pause.png         \
1184         stock-icons/24/media-playback-start-ltr.png     \
1185         stock-icons/24/media-playback-start-rtl.png     \
1186         stock-icons/24/media-skip-backward-ltr.png      \
1187         stock-icons/24/media-record.png                 \
1188         stock-icons/24/media-seek-backward-ltr.png      \
1189         stock-icons/24/media-playback-stop.png          \
1190         stock-icons/24/image-missing.png                \
1191         stock-icons/24/network-idle.png                 \
1192         stock-icons/24/document-new.png                 \
1193         stock-icons/24/document-open.png                \
1194         stock-icons/24/gtk-orientation-reverse-landscape.png \
1195         stock-icons/24/gtk-orientation-landscape.png    \
1196         stock-icons/24/gtk-orientation-reverse-portrait.png \
1197         stock-icons/24/gtk-orientation-portrait.png     \
1198         stock-icons/24/gtk-page-setup.png               \
1199         stock-icons/24/edit-paste.png                   \
1200         stock-icons/24/gtk-preferences.png              \
1201         stock-icons/24/document-print.png               \
1202         stock-icons/24/printer-error.png                \
1203         stock-icons/24/printer-paused.png               \
1204         stock-icons/24/document-print-preview.png       \
1205         stock-icons/24/printer-info.png                 \
1206         stock-icons/24/printer-warning.png              \
1207         stock-icons/24/document-properties.png          \
1208         stock-icons/24/application-exit.png             \
1209         stock-icons/24/edit-redo-ltr.png                \
1210         stock-icons/24/edit-redo-rtl.png                \
1211         stock-icons/24/view-refresh.png                 \
1212         stock-icons/24/list-remove.png                  \
1213         stock-icons/24/document-revert-ltr.png          \
1214         stock-icons/24/document-revert-rtl.png          \
1215         stock-icons/24/gtk-select-font.png              \
1216         stock-icons/24/document-save-as.png             \
1217         stock-icons/24/media-floppy.png                 \
1218         stock-icons/24/edit-select-all.png              \
1219         stock-icons/24/gtk-select-color.png             \
1220         stock-icons/24/view-sort-ascending.png          \
1221         stock-icons/24/view-sort-descending.png         \
1222         stock-icons/24/tools-check-spelling.png         \
1223         stock-icons/24/process-stop.png                 \
1224         stock-icons/24/format-text-strikethrough.png    \
1225         stock-icons/24/edit-delete.png                  \
1226         stock-icons/24/gtk-undelete-ltr.png             \
1227         stock-icons/24/gtk-undelete-rtl.png             \
1228         stock-icons/24/format-text-underline.png        \
1229         stock-icons/24/edit-undo-ltr.png                \
1230         stock-icons/24/edit-undo-rtl.png                \
1231         stock-icons/24/format-indent-less-ltr.png       \
1232         stock-icons/24/format-indent-less-rtl.png       \
1233         stock-icons/24/zoom-original.png                \
1234         stock-icons/24/zoom-fit-best.png                \
1235         stock-icons/24/zoom-in.png                      \
1236         stock-icons/24/zoom-out.png                     \
1237         stock-icons/24/go-next-ltr.png                  \
1238         stock-icons/32/gtk-dnd-multiple.png             \
1239         stock-icons/32/gtk-dnd.png                      \
1240         stock-icons/48/dialog-password.png              \
1241         stock-icons/48/dialog-error.png                 \
1242         stock-icons/48/dialog-information.png           \
1243         stock-icons/48/dialog-question.png              \
1244         stock-icons/48/dialog-warning.png
1245
1246 GENERATED_ICONS = \
1247         stock-icons/16/go-previous-rtl.png              \
1248         stock-icons/16/go-next-rtl.png                  \
1249         stock-icons/16/go-first-rtl.png                 \
1250         stock-icons/16/go-last-rtl.png                  \
1251         stock-icons/16/media-seek-forward-rtl.png       \
1252         stock-icons/16/media-skip-forward-rtl.png       \
1253         stock-icons/16/media-skip-backward-rtl.png      \
1254         stock-icons/16/media-seek-backward-rtl.png      \
1255         stock-icons/16/document-save.png                \
1256         stock-icons/16/folder-remote.png                \
1257         stock-icons/16/user-home.png                    \
1258         stock-icons/16/user-desktop.png                 \
1259         stock-icons/16/text-x-generic.png               \
1260         stock-icons/24/go-previous-rtl.png              \
1261         stock-icons/24/go-next-rtl.png                  \
1262         stock-icons/24/go-first-rtl.png                 \
1263         stock-icons/24/go-last-rtl.png                  \
1264         stock-icons/24/media-seek-forward-rtl.png       \
1265         stock-icons/24/media-skip-forward-rtl.png       \
1266         stock-icons/24/media-skip-backward-rtl.png      \
1267         stock-icons/24/media-seek-backward-rtl.png      \
1268         stock-icons/24/document-save.png                \
1269         stock-icons/24/folder-remote.png                \
1270         stock-icons/24/user-home.png                    \
1271         stock-icons/24/user-desktop.png                 \
1272         stock-icons/24/text-x-generic.png
1273
1274 # need to copy the icons so that we can replace the generated ones with
1275 # symlinks, even in the readonly srcdir case
1276 stamp-icons: $(STOCK_ICONS)
1277         if [ ! -d stock-icons ]; then                                   \
1278           for d in 16 20 24 32 48; do                                   \
1279             mkdir -p stock-icons/$$d;                                   \
1280           done;                                                         \
1281           for f in $(STOCK_ICONS); do                                   \
1282             cp $(srcdir)/$$f $$(dirname $$f);                           \
1283           done;                                                         \
1284           chmod -R u+w stock-icons;                                     \
1285         fi &&                                                           \
1286         for i in 16 24; do                                              \
1287            (cd stock-icons/$$i                                          \
1288            && $(RM) go-previous-rtl.png                                 \
1289            && $(LN_S) go-next-ltr.png go-previous-rtl.png               \
1290            && $(RM) go-next-rtl.png                                     \
1291            && $(LN_S) go-previous-ltr.png go-next-rtl.png               \
1292            && $(RM) go-first-rtl.png                                    \
1293            && $(LN_S) go-last-ltr.png go-first-rtl.png                  \
1294            && $(RM) go-last-rtl.png                                     \
1295            && $(LN_S) go-first-ltr.png go-last-rtl.png                  \
1296            && $(RM) media-seek-forward-rtl.png                          \
1297            && $(LN_S) media-seek-backward-ltr.png media-seek-forward-rtl.png \
1298            && $(RM) media-skip-forward-rtl.png                          \
1299            && $(LN_S) media-skip-backward-ltr.png media-skip-forward-rtl.png \
1300            && $(RM) media-skip-backward-rtl.png                         \
1301            && $(LN_S) media-skip-forward-ltr.png media-skip-backward-rtl.png \
1302            && $(RM) media-seek-backward-rtl.png                         \
1303            && $(LN_S) media-seek-forward-ltr.png media-seek-backward-rtl.png \
1304            && $(RM) document-save.png                                   \
1305            && $(LN_S) media-floppy.png document-save.png                \
1306            && $(RM) folder-remote.png                                   \
1307            && $(LN_S) folder.png folder-remote.png                      \
1308            && $(RM) user-home.png                                       \
1309            && $(LN_S) folder.png user-home.png                          \
1310            && $(RM) user-desktop.png                                    \
1311            && $(LN_S) folder.png user-desktop.png                       \
1312            && $(RM) text-x-generic.png                                  \
1313            && $(LN_S) document-x-generic.png text-x-generic.png         \
1314         ) done                                                          \
1315         && touch stamp-icons
1316
1317 if CROSS_COMPILING
1318 gtk_update_icon_cache_program = $(GTK_UPDATE_ICON_CACHE)
1319 else
1320 gtk_update_icon_cache_program =                                                 \
1321            ./gtk-update-icon-cache-3.0
1322 endif
1323
1324 gtkbuiltincache.h: @REBUILD@ stamp-icons
1325         $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache-3.0$(EXEEXT) $(GTK_UPDATE_ICON_CACHE_MANIFEST)
1326         $(gtk_update_icon_cache_program) --force --ignore-theme-index           \
1327            --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
1328         mv gtkbuiltincache.h.tmp gtkbuiltincache.h
1329
1330 EXTRA_DIST +=                   \
1331         $(STOCK_ICONS)          \
1332         $(GENERATED_ICONS)      \
1333         line-arrow.xbm          \
1334         line-wrap.xbm           \
1335         tree_plus.xbm           \
1336         tree_minus.xbm          \
1337         tree_minus.xpm          \
1338         tree_plus.xpm           \
1339         gtk.def                 \
1340         gtk-builder-convert-3.0 \
1341         gtk-win32.rc            \
1342         gtk-win32.rc.in         \
1343         gtkwin32embed.h         \
1344         gtkwin32embedwidget.h   \
1345         gtkwin32embedwidget.c   \
1346         gtkprint-win32.h        \
1347         gtkprint-win32.c        \
1348         gtksearchenginequartz.h \
1349         gtkrc.default           \
1350         gtkrc.key.default       \
1351         gtkrc.key.emacs         \
1352         gtkrc.key.mac           \
1353         makefile.msc            \
1354         makefile.msc.in         \
1355         abicheck.sh             \
1356         gtktypebuiltins.c.template \
1357         gtktypebuiltins.h.template \
1358         org.gtk.Settings.FileChooser.gschema.xml
1359
1360 gsettings_SCHEMAS = \
1361         org.gtk.Settings.FileChooser.gschema.xml
1362
1363 @GSETTINGS_RULES@
1364
1365 install-data-local:
1366
1367 -include $(top_srcdir)/git.mk