2016-08-15 08:03:57 +00:00
|
|
|
subdir('deprecated')
|
|
|
|
subdir('a11y')
|
|
|
|
subdir('inspector')
|
|
|
|
|
2018-05-05 00:46:08 +00:00
|
|
|
gtk_cargs = [
|
|
|
|
'-DGTK_COMPILATION',
|
|
|
|
'-DG_LOG_DOMAIN="Gtk"',
|
|
|
|
'-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
|
|
|
|
'-DGTK_BINARY_VERSION="@0@"'.format(gtk_binary_version),
|
|
|
|
'-DGTK_HOST="@0@"'.format(host_machine.system()),
|
|
|
|
'-DGTK_DATA_PREFIX="@0@"'.format(gtk_prefix),
|
|
|
|
]
|
|
|
|
|
2018-02-02 09:01:47 +00:00
|
|
|
# List of sources that do not contain public API, and should not be
|
|
|
|
# introspected
|
|
|
|
gtk_private_sources = files([
|
2016-09-26 10:51:17 +00:00
|
|
|
'fallback-c89.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'fnmatch.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gdkpixbufutils.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkactionhelper.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkactionmuxer.c',
|
|
|
|
'gtkactionobservable.c',
|
|
|
|
'gtkactionobserver.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkallocatedbitmask.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkapplicationaccels.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkapplicationimpl.c',
|
|
|
|
'gtkbookmarksmanager.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkbuilder-menus.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkbuilderparser.c',
|
|
|
|
'gtkcellareaboxcontext.c',
|
|
|
|
'gtkcoloreditor.c',
|
|
|
|
'gtkcolorplane.c',
|
|
|
|
'gtkcolorscale.c',
|
|
|
|
'gtkcolorswatch.c',
|
|
|
|
'gtkcssanimatedstyle.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssanimation.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssarrayvalue.c',
|
|
|
|
'gtkcssbgsizevalue.c',
|
|
|
|
'gtkcssbordervalue.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcsscalcvalue.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcsscolorvalue.c',
|
|
|
|
'gtkcsscornervalue.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssdimensionvalue.c',
|
2018-02-13 07:22:34 +00:00
|
|
|
'gtkcssdynamic.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcsseasevalue.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssenumvalue.c',
|
2017-03-11 22:31:31 +00:00
|
|
|
'gtkcssfiltervalue.c',
|
2017-12-20 15:29:33 +00:00
|
|
|
'gtkcssfontfeaturesvalue.c',
|
2017-12-20 05:45:30 +00:00
|
|
|
'gtkcssfontvariationsvalue.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssiconthemevalue.c',
|
|
|
|
'gtkcssimage.c',
|
|
|
|
'gtkcssimagebuiltin.c',
|
|
|
|
'gtkcssimagecrossfade.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssimagefallback.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssimageicontheme.c',
|
2018-02-17 19:31:14 +00:00
|
|
|
'gtkcssimageinvalid.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssimagelinear.c',
|
2018-02-17 19:29:25 +00:00
|
|
|
'gtkcssimagepaintable.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssimageradial.c',
|
|
|
|
'gtkcssimagerecolor.c',
|
|
|
|
'gtkcssimagescaled.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssimageurl.c',
|
|
|
|
'gtkcssimagevalue.c',
|
|
|
|
'gtkcssimagewin32.c',
|
|
|
|
'gtkcssinheritvalue.c',
|
|
|
|
'gtkcssinitialvalue.c',
|
|
|
|
'gtkcsskeyframes.c',
|
|
|
|
'gtkcsslookup.c',
|
|
|
|
'gtkcssmatcher.c',
|
|
|
|
'gtkcssnode.c',
|
|
|
|
'gtkcssnodedeclaration.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssnodestylecache.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssnumbervalue.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcsspalettevalue.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssparser.c',
|
|
|
|
'gtkcsspathnode.c',
|
|
|
|
'gtkcsspositionvalue.c',
|
|
|
|
'gtkcssrepeatvalue.c',
|
|
|
|
'gtkcssrgbavalue.c',
|
|
|
|
'gtkcssselector.c',
|
|
|
|
'gtkcssshadowsvalue.c',
|
|
|
|
'gtkcssshadowvalue.c',
|
|
|
|
'gtkcssshorthandproperty.c',
|
|
|
|
'gtkcssshorthandpropertyimpl.c',
|
|
|
|
'gtkcssstaticstyle.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssstringvalue.c',
|
|
|
|
'gtkcssstyle.c',
|
|
|
|
'gtkcssstylechange.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssstyleproperty.c',
|
|
|
|
'gtkcssstylepropertyimpl.c',
|
|
|
|
'gtkcsstransformvalue.c',
|
|
|
|
'gtkcsstransientnode.c',
|
|
|
|
'gtkcsstransition.c',
|
|
|
|
'gtkcsstypes.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcssunsetvalue.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkcssvalue.c',
|
|
|
|
'gtkcsswidgetnode.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcsswin32sizevalue.c',
|
2018-02-02 09:01:47 +00:00
|
|
|
'gtkeventcontrollerlegacy.c',
|
|
|
|
'gtkfilechooserembed.c',
|
|
|
|
'gtkfilechooserentry.c',
|
|
|
|
'gtkfilechoosererrorstack.c',
|
|
|
|
'gtkfilechoosernativeportal.c',
|
|
|
|
'gtkfilechooserutils.c',
|
|
|
|
'gtkfilesystem.c',
|
|
|
|
'gtkfilesystemmodel.c',
|
|
|
|
'gtkgizmo.c',
|
|
|
|
'gtkgladecatalog.c',
|
|
|
|
'gtkhsla.c',
|
|
|
|
'gtkicon.c',
|
|
|
|
'gtkiconcache.c',
|
|
|
|
'gtkiconcachevalidator.c',
|
|
|
|
'gtkiconhelper.c',
|
|
|
|
'gtkkineticscrolling.c',
|
|
|
|
'gtkkeyhash.c',
|
|
|
|
'gtkmagnifier.c',
|
|
|
|
'gtkmenusectionbox.c',
|
|
|
|
'gtkmenutracker.c',
|
|
|
|
'gtkmenutrackeritem.c',
|
|
|
|
'gtkmnemonichash.c',
|
|
|
|
'gtkpango.c',
|
|
|
|
'gskpango.c',
|
|
|
|
'gtkpathbar.c',
|
|
|
|
'gtkplacessidebar.c',
|
|
|
|
'gtkplacesview.c',
|
|
|
|
'gtkplacesviewrow.c',
|
|
|
|
'gtkpointerfocus.c',
|
|
|
|
'gtkprintutils.c',
|
|
|
|
'gtkprivate.c',
|
|
|
|
'gtkprogresstracker.c',
|
|
|
|
'gtkquery.c',
|
2018-03-14 03:45:25 +00:00
|
|
|
'gtkscaler.c',
|
2018-02-02 09:01:47 +00:00
|
|
|
'gtksearchengine.c',
|
|
|
|
'gtksearchenginemodel.c',
|
|
|
|
'gtksearchenginesimple.c',
|
|
|
|
'gtksizerequestcache.c',
|
|
|
|
'gtkstyleanimation.c',
|
|
|
|
'gtkstylecascade.c',
|
|
|
|
'gtkstyleproperty.c',
|
|
|
|
'gtktextbtree.c',
|
|
|
|
'gtktrashmonitor.c',
|
|
|
|
'gtktreedatalist.c',
|
|
|
|
'gtkwin32draw.c',
|
|
|
|
'gtkwin32theme.c',
|
|
|
|
'gtkwin32theme.c',
|
|
|
|
])
|
|
|
|
|
|
|
|
# List of files that contain public API, and should be introspected
|
|
|
|
gtk_public_sources = files([
|
|
|
|
'gtkaboutdialog.c',
|
|
|
|
'gtkaccelgroup.c',
|
|
|
|
'gtkaccellabel.c',
|
|
|
|
'gtkaccelmap.c',
|
|
|
|
'gtkaccessible.c',
|
|
|
|
'gtkactionable.c',
|
|
|
|
'gtkactionbar.c',
|
|
|
|
'gtkadjustment.c',
|
|
|
|
'gtkappchooser.c',
|
|
|
|
'gtkappchooserbutton.c',
|
|
|
|
'gtkappchooserdialog.c',
|
|
|
|
'gtkappchooserwidget.c',
|
|
|
|
'gtkapplication.c',
|
|
|
|
'gtkapplicationwindow.c',
|
|
|
|
'gtkaspectframe.c',
|
|
|
|
'gtkassistant.c',
|
|
|
|
'gtkbbox.c',
|
|
|
|
'gtkbin.c',
|
|
|
|
'gtkbindings.c',
|
|
|
|
'gtkborder.c',
|
|
|
|
'gtkbox.c',
|
|
|
|
'gtkbuildable.c',
|
|
|
|
'gtkbuilder.c',
|
|
|
|
'gtkbutton.c',
|
|
|
|
'gtkcalendar.c',
|
|
|
|
'gtkcellarea.c',
|
|
|
|
'gtkcellareabox.c',
|
|
|
|
'gtkcellareacontext.c',
|
|
|
|
'gtkcelleditable.c',
|
|
|
|
'gtkcelllayout.c',
|
|
|
|
'gtkcellrenderer.c',
|
|
|
|
'gtkcellrendereraccel.c',
|
|
|
|
'gtkcellrenderercombo.c',
|
|
|
|
'gtkcellrendererpixbuf.c',
|
|
|
|
'gtkcellrendererprogress.c',
|
|
|
|
'gtkcellrendererspin.c',
|
|
|
|
'gtkcellrendererspinner.c',
|
|
|
|
'gtkcellrenderertext.c',
|
|
|
|
'gtkcellrenderertoggle.c',
|
|
|
|
'gtkcellview.c',
|
|
|
|
'gtkcenterbox.c',
|
|
|
|
'gtkcheckbutton.c',
|
|
|
|
'gtkcheckmenuitem.c',
|
|
|
|
'gtkcolorbutton.c',
|
|
|
|
'gtkcolorchooser.c',
|
|
|
|
'gtkcolorchooserdialog.c',
|
|
|
|
'gtkcolorchooserwidget.c',
|
|
|
|
'gtkcolorutils.c',
|
|
|
|
'gtkcombobox.c',
|
|
|
|
'gtkcomboboxtext.c',
|
|
|
|
'gtkcomposetable.c',
|
|
|
|
'gtkcontainer.c',
|
|
|
|
'gtkcssprovider.c',
|
|
|
|
'gtkcsssection.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkdialog.c',
|
2018-06-07 03:22:18 +00:00
|
|
|
'gtkdnd.c',
|
|
|
|
'gtkdragdest.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkdragsource.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkdrawingarea.c',
|
|
|
|
'gtkeditable.c',
|
2017-08-12 23:06:00 +00:00
|
|
|
'gtkemojichooser.c',
|
2017-08-19 18:06:47 +00:00
|
|
|
'gtkemojicompletion.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkentry.c',
|
|
|
|
'gtkentrybuffer.c',
|
|
|
|
'gtkentrycompletion.c',
|
|
|
|
'gtkeventcontroller.c',
|
2017-12-11 18:21:38 +00:00
|
|
|
'gtkeventcontrollerkey.c',
|
|
|
|
'gtkeventcontrollerlegacy.c',
|
2017-12-11 23:29:33 +00:00
|
|
|
'gtkeventcontrollermotion.c',
|
2017-09-15 11:22:57 +00:00
|
|
|
'gtkeventcontrollerscroll.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkexpander.c',
|
|
|
|
'gtkfilechooser.c',
|
|
|
|
'gtkfilechooserbutton.c',
|
|
|
|
'gtkfilechooserdialog.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkfilechoosernative.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkfilechooserwidget.c',
|
|
|
|
'gtkfilefilter.c',
|
|
|
|
'gtkfixed.c',
|
|
|
|
'gtkflowbox.c',
|
|
|
|
'gtkfontbutton.c',
|
|
|
|
'gtkfontchooser.c',
|
|
|
|
'gtkfontchooserdialog.c',
|
|
|
|
'gtkfontchooserutils.c',
|
|
|
|
'gtkfontchooserwidget.c',
|
|
|
|
'gtkframe.c',
|
|
|
|
'gtkgesture.c',
|
|
|
|
'gtkgesturedrag.c',
|
|
|
|
'gtkgesturelongpress.c',
|
|
|
|
'gtkgesturemultipress.c',
|
|
|
|
'gtkgesturepan.c',
|
|
|
|
'gtkgesturerotate.c',
|
|
|
|
'gtkgesturesingle.c',
|
2018-02-01 16:52:40 +00:00
|
|
|
'gtkgesturestylus.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkgestureswipe.c',
|
|
|
|
'gtkgesturezoom.c',
|
|
|
|
'gtkglarea.c',
|
|
|
|
'gtkgrid.c',
|
|
|
|
'gtkheaderbar.c',
|
|
|
|
'gtkicontheme.c',
|
|
|
|
'gtkiconview.c',
|
|
|
|
'gtkimage.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkimagedefinition.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkimcontext.c',
|
|
|
|
'gtkimcontextsimple.c',
|
|
|
|
'gtkimmodule.c',
|
|
|
|
'gtkimmulticontext.c',
|
|
|
|
'gtkinfobar.c',
|
|
|
|
'gtkinvisible.c',
|
|
|
|
'gtklabel.c',
|
|
|
|
'gtklayout.c',
|
|
|
|
'gtklevelbar.c',
|
|
|
|
'gtklinkbutton.c',
|
|
|
|
'gtklistbox.c',
|
|
|
|
'gtkliststore.c',
|
|
|
|
'gtklockbutton.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkmain.c',
|
2018-02-26 00:32:01 +00:00
|
|
|
'gtkmediacontrols.c',
|
2018-02-27 16:01:50 +00:00
|
|
|
'gtkmediafile.c',
|
2018-02-27 22:22:26 +00:00
|
|
|
'gtkmediastream.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkmenu.c',
|
|
|
|
'gtkmenubar.c',
|
|
|
|
'gtkmenubutton.c',
|
|
|
|
'gtkmenuitem.c',
|
|
|
|
'gtkmenushell.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkmenutoolbutton.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkmessagedialog.c',
|
|
|
|
'gtkmodelbutton.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkmodelmenuitem.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkmodules.c',
|
|
|
|
'gtkmountoperation.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtknativedialog.c',
|
2018-03-01 20:46:16 +00:00
|
|
|
'gtknomediafile.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtknotebook.c',
|
|
|
|
'gtkorientable.c',
|
|
|
|
'gtkoverlay.c',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkpadcontroller.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkpagesetup.c',
|
|
|
|
'gtkpaned.c',
|
|
|
|
'gtkpapersize.c',
|
2018-06-09 20:48:06 +00:00
|
|
|
'gtkpicture.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkpopover.c',
|
|
|
|
'gtkpopovermenu.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkprintcontext.c',
|
|
|
|
'gtkprintoperation.c',
|
|
|
|
'gtkprintoperationpreview.c',
|
|
|
|
'gtkprintsettings.c',
|
|
|
|
'gtkprogressbar.c',
|
|
|
|
'gtkradiobutton.c',
|
|
|
|
'gtkradiomenuitem.c',
|
|
|
|
'gtkradiotoolbutton.c',
|
|
|
|
'gtkrange.c',
|
|
|
|
'gtkrbtree.c',
|
|
|
|
'gtkrecentmanager.c',
|
|
|
|
'gtkrender.c',
|
|
|
|
'gtkrenderbackground.c',
|
|
|
|
'gtkrenderborder.c',
|
|
|
|
'gtkrendericon.c',
|
2018-03-26 02:37:01 +00:00
|
|
|
'gtkrendernodepaintable.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkrevealer.c',
|
|
|
|
'gtkroundedbox.c',
|
|
|
|
'gtkscale.c',
|
|
|
|
'gtkscalebutton.c',
|
|
|
|
'gtkscrollable.c',
|
|
|
|
'gtkscrollbar.c',
|
|
|
|
'gtkscrolledwindow.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtksearchbar.c',
|
|
|
|
'gtksearchentry.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkselection.c',
|
|
|
|
'gtkseparator.c',
|
|
|
|
'gtkseparatormenuitem.c',
|
|
|
|
'gtkseparatortoolitem.c',
|
|
|
|
'gtksettings.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkshortcutlabel.c',
|
|
|
|
'gtkshortcutsgroup.c',
|
|
|
|
'gtkshortcutssection.c',
|
|
|
|
'gtkshortcutsshortcut.c',
|
|
|
|
'gtkshortcutswindow.c',
|
|
|
|
'gtkshow.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtksidebarrow.c',
|
|
|
|
'gtksizegroup.c',
|
|
|
|
'gtksizerequest.c',
|
|
|
|
'gtkspinbutton.c',
|
2017-03-11 22:31:31 +00:00
|
|
|
'gtksnapshot.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkspinner.c',
|
|
|
|
'gtkstack.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkstacksidebar.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkstackswitcher.c',
|
|
|
|
'gtkstatusbar.c',
|
|
|
|
'gtkstylecontext.c',
|
|
|
|
'gtkstyleprovider.c',
|
|
|
|
'gtkswitch.c',
|
|
|
|
'gtktestutils.c',
|
|
|
|
'gtktextattributes.c',
|
|
|
|
'gtktextbuffer.c',
|
|
|
|
'gtktextchild.c',
|
|
|
|
'gtktextdisplay.c',
|
|
|
|
'gtktexthandle.c',
|
|
|
|
'gtktextiter.c',
|
|
|
|
'gtktextlayout.c',
|
|
|
|
'gtktextmark.c',
|
|
|
|
'gtktextsegment.c',
|
|
|
|
'gtktexttag.c',
|
|
|
|
'gtktexttagtable.c',
|
|
|
|
'gtktexttypes.c',
|
|
|
|
'gtktextutil.c',
|
|
|
|
'gtktextview.c',
|
|
|
|
'gtktogglebutton.c',
|
|
|
|
'gtktoggletoolbutton.c',
|
|
|
|
'gtktoolbar.c',
|
|
|
|
'gtktoolbutton.c',
|
|
|
|
'gtktoolitem.c',
|
|
|
|
'gtktoolshell.c',
|
|
|
|
'gtktooltip.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtktooltipwindow.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtktreednd.c',
|
|
|
|
'gtktreemenu.c',
|
|
|
|
'gtktreemodel.c',
|
|
|
|
'gtktreemodelfilter.c',
|
|
|
|
'gtktreemodelsort.c',
|
|
|
|
'gtktreeselection.c',
|
|
|
|
'gtktreesortable.c',
|
|
|
|
'gtktreestore.c',
|
|
|
|
'gtktreeview.c',
|
|
|
|
'gtktreeviewcolumn.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkutils.c',
|
2018-03-01 03:52:27 +00:00
|
|
|
'gtkvideo.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkviewport.c',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkvolumebutton.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkwidget.c',
|
|
|
|
'gtkwidgetfocus.c',
|
2018-03-22 19:47:28 +00:00
|
|
|
'gtkwidgetpaintable.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkwidgetpath.c',
|
|
|
|
'gtkwindow.c',
|
|
|
|
'gtkwindowgroup.c',
|
2016-09-09 20:02:21 +00:00
|
|
|
])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-09-09 20:02:21 +00:00
|
|
|
gtk_private_type_headers = files([
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkcsstypesprivate.h',
|
|
|
|
'gtktexthandleprivate.h',
|
2017-05-26 16:55:30 +00:00
|
|
|
'gtkeventcontrollerlegacyprivate.h',
|
2016-09-09 20:02:21 +00:00
|
|
|
])
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2016-09-26 10:51:17 +00:00
|
|
|
gtk_public_headers = files([
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkaboutdialog.h',
|
|
|
|
'gtkaccelgroup.h',
|
|
|
|
'gtkaccellabel.h',
|
|
|
|
'gtkaccelmap.h',
|
|
|
|
'gtkaccessible.h',
|
|
|
|
'gtkactionable.h',
|
|
|
|
'gtkactionbar.h',
|
|
|
|
'gtkadjustment.h',
|
|
|
|
'gtkappchooser.h',
|
|
|
|
'gtkappchooserbutton.h',
|
|
|
|
'gtkappchooserdialog.h',
|
|
|
|
'gtkappchooserwidget.h',
|
|
|
|
'gtkapplication.h',
|
|
|
|
'gtkapplicationwindow.h',
|
|
|
|
'gtkaspectframe.h',
|
|
|
|
'gtkassistant.h',
|
|
|
|
'gtkbbox.h',
|
|
|
|
'gtkbin.h',
|
|
|
|
'gtkbindings.h',
|
|
|
|
'gtkborder.h',
|
|
|
|
'gtkbox.h',
|
|
|
|
'gtkbuildable.h',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkbuilder.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkbutton.h',
|
|
|
|
'gtkcalendar.h',
|
2017-08-15 19:19:48 +00:00
|
|
|
'gtkcenterbox.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkcellarea.h',
|
|
|
|
'gtkcellareabox.h',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcellareacontext.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkcelleditable.h',
|
|
|
|
'gtkcelllayout.h',
|
|
|
|
'gtkcellrenderer.h',
|
|
|
|
'gtkcellrendereraccel.h',
|
|
|
|
'gtkcellrenderercombo.h',
|
|
|
|
'gtkcellrendererpixbuf.h',
|
|
|
|
'gtkcellrendererprogress.h',
|
|
|
|
'gtkcellrendererspin.h',
|
|
|
|
'gtkcellrendererspinner.h',
|
|
|
|
'gtkcellrenderertext.h',
|
|
|
|
'gtkcellrenderertoggle.h',
|
|
|
|
'gtkcellview.h',
|
|
|
|
'gtkcheckbutton.h',
|
|
|
|
'gtkcheckmenuitem.h',
|
|
|
|
'gtkcolorbutton.h',
|
|
|
|
'gtkcolorchooser.h',
|
|
|
|
'gtkcolorchooserdialog.h',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkcolorchooserwidget.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkcolorutils.h',
|
|
|
|
'gtkcombobox.h',
|
|
|
|
'gtkcomboboxtext.h',
|
|
|
|
'gtkcontainer.h',
|
|
|
|
'gtkcssprovider.h',
|
|
|
|
'gtkcsssection.h',
|
|
|
|
'gtkdebug.h',
|
|
|
|
'gtkdialog.h',
|
|
|
|
'gtkdnd.h',
|
|
|
|
'gtkdragdest.h',
|
|
|
|
'gtkdragsource.h',
|
|
|
|
'gtkdrawingarea.h',
|
|
|
|
'gtkeditable.h',
|
|
|
|
'gtkentry.h',
|
|
|
|
'gtkentrybuffer.h',
|
|
|
|
'gtkentrycompletion.h',
|
|
|
|
'gtkenums.h',
|
|
|
|
'gtkeventcontroller.h',
|
2017-12-11 18:21:38 +00:00
|
|
|
'gtkeventcontrollerkey.h',
|
2017-09-15 11:22:57 +00:00
|
|
|
'gtkeventcontrollerscroll.h',
|
2017-12-12 15:38:11 +00:00
|
|
|
'gtkeventcontrollermotion.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkexpander.h',
|
|
|
|
'gtkfilechooser.h',
|
|
|
|
'gtkfilechooserbutton.h',
|
|
|
|
'gtkfilechooserdialog.h',
|
|
|
|
'gtkfilechoosernative.h',
|
|
|
|
'gtkfilechooserwidget.h',
|
|
|
|
'gtkfilefilter.h',
|
|
|
|
'gtkfixed.h',
|
|
|
|
'gtkflowbox.h',
|
|
|
|
'gtkfontbutton.h',
|
|
|
|
'gtkfontchooser.h',
|
|
|
|
'gtkfontchooserdialog.h',
|
|
|
|
'gtkfontchooserwidget.h',
|
|
|
|
'gtkframe.h',
|
|
|
|
'gtkgesture.h',
|
|
|
|
'gtkgesturedrag.h',
|
|
|
|
'gtkgesturelongpress.h',
|
|
|
|
'gtkgesturemultipress.h',
|
|
|
|
'gtkgesturepan.h',
|
|
|
|
'gtkgesturerotate.h',
|
|
|
|
'gtkgesturesingle.h',
|
2018-02-01 16:52:40 +00:00
|
|
|
'gtkgesturestylus.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkgestureswipe.h',
|
|
|
|
'gtkgesturezoom.h',
|
|
|
|
'gtkglarea.h',
|
|
|
|
'gtkgrid.h',
|
|
|
|
'gtkheaderbar.h',
|
|
|
|
'gtkicontheme.h',
|
|
|
|
'gtkiconview.h',
|
|
|
|
'gtkimage.h',
|
|
|
|
'gtkimcontext.h',
|
|
|
|
'gtkimcontextsimple.h',
|
|
|
|
'gtkimmodule.h',
|
|
|
|
'gtkimmulticontext.h',
|
|
|
|
'gtkinfobar.h',
|
|
|
|
'gtkinvisible.h',
|
|
|
|
'gtklabel.h',
|
|
|
|
'gtklayout.h',
|
|
|
|
'gtklevelbar.h',
|
|
|
|
'gtklinkbutton.h',
|
|
|
|
'gtklistbox.h',
|
|
|
|
'gtkliststore.h',
|
|
|
|
'gtklockbutton.h',
|
|
|
|
'gtkmain.h',
|
2018-02-26 00:32:01 +00:00
|
|
|
'gtkmediacontrols.h',
|
2018-02-27 16:01:50 +00:00
|
|
|
'gtkmediafile.h',
|
2018-02-27 22:22:26 +00:00
|
|
|
'gtkmediastream.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkmenu.h',
|
|
|
|
'gtkmenubar.h',
|
|
|
|
'gtkmenubutton.h',
|
|
|
|
'gtkmenuitem.h',
|
|
|
|
'gtkmenushell.h',
|
|
|
|
'gtkmenutoolbutton.h',
|
|
|
|
'gtkmessagedialog.h',
|
|
|
|
'gtkmodelbutton.h',
|
|
|
|
'gtkmountoperation.h',
|
|
|
|
'gtknativedialog.h',
|
|
|
|
'gtknotebook.h',
|
|
|
|
'gtkorientable.h',
|
|
|
|
'gtkoverlay.h',
|
|
|
|
'gtkpadcontroller.h',
|
|
|
|
'gtkpagesetup.h',
|
|
|
|
'gtkpaned.h',
|
|
|
|
'gtkpapersize.h',
|
2018-06-09 20:48:06 +00:00
|
|
|
'gtkpicture.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkpopover.h',
|
|
|
|
'gtkpopovermenu.h',
|
|
|
|
'gtkprintcontext.h',
|
|
|
|
'gtkprintoperation.h',
|
|
|
|
'gtkprintoperationpreview.h',
|
|
|
|
'gtkprintsettings.h',
|
|
|
|
'gtkprogressbar.h',
|
|
|
|
'gtkradiobutton.h',
|
|
|
|
'gtkradiomenuitem.h',
|
|
|
|
'gtkradiotoolbutton.h',
|
|
|
|
'gtkrange.h',
|
|
|
|
'gtkrecentmanager.h',
|
|
|
|
'gtkrender.h',
|
|
|
|
'gtkrevealer.h',
|
|
|
|
'gtkscale.h',
|
|
|
|
'gtkscalebutton.h',
|
|
|
|
'gtkscrollable.h',
|
|
|
|
'gtkscrollbar.h',
|
|
|
|
'gtkscrolledwindow.h',
|
|
|
|
'gtksearchbar.h',
|
|
|
|
'gtksearchentry.h',
|
|
|
|
'gtkselection.h',
|
|
|
|
'gtkseparator.h',
|
|
|
|
'gtkseparatormenuitem.h',
|
|
|
|
'gtkseparatortoolitem.h',
|
|
|
|
'gtksettings.h',
|
|
|
|
'gtkshortcutlabel.h',
|
|
|
|
'gtkshortcutsgroup.h',
|
|
|
|
'gtkshortcutssection.h',
|
|
|
|
'gtkshortcutsshortcut.h',
|
|
|
|
'gtkshortcutswindow.h',
|
|
|
|
'gtkshow.h',
|
|
|
|
'gtksizegroup.h',
|
|
|
|
'gtksizerequest.h',
|
2017-03-11 22:31:31 +00:00
|
|
|
'gtksnapshot.h',
|
2017-03-21 13:34:25 +00:00
|
|
|
'gtkspinbutton.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkspinner.h',
|
|
|
|
'gtkstack.h',
|
2016-09-26 10:51:17 +00:00
|
|
|
'gtkstacksidebar.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkstackswitcher.h',
|
|
|
|
'gtkstatusbar.h',
|
|
|
|
'gtkstylecontext.h',
|
|
|
|
'gtkstyleprovider.h',
|
|
|
|
'gtkswitch.h',
|
|
|
|
'gtktestutils.h',
|
|
|
|
'gtktextbuffer.h',
|
|
|
|
'gtktextchild.h',
|
|
|
|
'gtktextiter.h',
|
|
|
|
'gtktextmark.h',
|
|
|
|
'gtktexttag.h',
|
|
|
|
'gtktexttagtable.h',
|
|
|
|
'gtktextview.h',
|
|
|
|
'gtktogglebutton.h',
|
|
|
|
'gtktoggletoolbutton.h',
|
|
|
|
'gtktoolbar.h',
|
|
|
|
'gtktoolbutton.h',
|
|
|
|
'gtktoolitem.h',
|
|
|
|
'gtktoolshell.h',
|
|
|
|
'gtktooltip.h',
|
|
|
|
'gtktreednd.h',
|
|
|
|
'gtktreemodel.h',
|
|
|
|
'gtktreemodelfilter.h',
|
|
|
|
'gtktreemodelsort.h',
|
|
|
|
'gtktreeselection.h',
|
|
|
|
'gtktreesortable.h',
|
|
|
|
'gtktreestore.h',
|
|
|
|
'gtktreeview.h',
|
|
|
|
'gtktreeviewcolumn.h',
|
|
|
|
'gtktypes.h',
|
2018-03-01 03:52:27 +00:00
|
|
|
'gtkvideo.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkviewport.h',
|
|
|
|
'gtkvolumebutton.h',
|
|
|
|
'gtkwidget.h',
|
2018-03-22 19:47:28 +00:00
|
|
|
'gtkwidgetpaintable.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gtkwidgetpath.h',
|
|
|
|
'gtkwindow.h',
|
|
|
|
'gtkwindowgroup.h',
|
2017-04-18 17:04:31 +00:00
|
|
|
'gtk-a11y.h',
|
|
|
|
'gtk-autocleanups.h',
|
|
|
|
'gtk.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
])
|
|
|
|
|
2017-03-20 16:24:12 +00:00
|
|
|
install_headers(gtk_public_headers, subdir: 'gtk-4.0/gtk/')
|
|
|
|
|
2018-02-02 09:01:47 +00:00
|
|
|
gtk_sources = gtk_public_sources + gtk_private_sources
|
2017-04-18 17:04:31 +00:00
|
|
|
|
2018-02-23 19:59:49 +00:00
|
|
|
proto_sources = [
|
|
|
|
['gtk-text-input', 'stable', ],
|
|
|
|
]
|
|
|
|
|
|
|
|
im_wayland_sources = files('gtkimcontextwayland.c')
|
|
|
|
|
|
|
|
foreach p: proto_sources
|
|
|
|
proto_name = p.get(0)
|
|
|
|
proto_stability = p.get(1)
|
|
|
|
|
|
|
|
if proto_stability == 'stable'
|
|
|
|
output_base = proto_name
|
|
|
|
input = '@0@.xml'.format(proto_name)
|
|
|
|
else
|
|
|
|
proto_version = p.get(2)
|
|
|
|
output_base = '@0@-@1@-@2@'.format(proto_name, proto_stability, proto_version)
|
|
|
|
input = join_paths(proto_dir, '@0@/@1@/@2@.xml'.format(proto_stability, proto_name, output_base))
|
|
|
|
endif
|
|
|
|
|
2018-03-03 21:55:15 +00:00
|
|
|
if wayland_enabled
|
2018-04-11 13:37:57 +00:00
|
|
|
# wayland_scanner is defined in gdk/wayland/meson.build
|
2018-03-03 21:55:15 +00:00
|
|
|
im_wayland_sources += custom_target('@0@ client header'.format(output_base),
|
|
|
|
input: input,
|
|
|
|
output: '@0@-client-protocol.h'.format(output_base),
|
|
|
|
command: [
|
|
|
|
wayland_scanner,
|
|
|
|
'client-header',
|
2018-04-11 13:37:57 +00:00
|
|
|
'@INPUT@', '@OUTPUT@',
|
2018-03-03 21:55:15 +00:00
|
|
|
])
|
2018-02-23 19:59:49 +00:00
|
|
|
|
2018-03-03 21:55:15 +00:00
|
|
|
im_wayland_sources += custom_target('@0@ source'.format(output_base),
|
|
|
|
input: input,
|
|
|
|
output: '@0@-protocol.c'.format(output_base),
|
|
|
|
command: [
|
|
|
|
wayland_scanner,
|
2018-04-11 13:37:57 +00:00
|
|
|
'private-code',
|
2018-03-03 21:55:15 +00:00
|
|
|
'@INPUT@', '@OUTPUT@',
|
|
|
|
])
|
|
|
|
endif
|
2018-02-23 19:59:49 +00:00
|
|
|
endforeach
|
|
|
|
|
2017-03-21 13:34:25 +00:00
|
|
|
if os_unix
|
|
|
|
gtk_unix_print_headers = [
|
|
|
|
'gtkpagesetupunixdialog.h',
|
|
|
|
'gtkprintunixdialog.h',
|
|
|
|
'gtkprinter.h',
|
|
|
|
'gtkprintjob.h',
|
|
|
|
'gtkunixprint-autocleanups.h',
|
|
|
|
'gtkunixprint.h',
|
|
|
|
]
|
2017-04-26 16:04:20 +00:00
|
|
|
install_headers(gtk_unix_print_headers, subdir: 'gtk-4.0/unix-print/gtk')
|
2017-03-21 13:34:25 +00:00
|
|
|
|
2017-12-21 18:57:25 +00:00
|
|
|
gtk_unix_print_sources = files([
|
2017-03-21 13:34:25 +00:00
|
|
|
'gtkcustompaperunixdialog.c',
|
|
|
|
'gtkpagesetupunixdialog.c',
|
|
|
|
'gtkprintbackend.c',
|
|
|
|
'gtkprinter.c',
|
|
|
|
'gtkprinteroption.c',
|
|
|
|
'gtkprinteroptionset.c',
|
|
|
|
'gtkprinteroptionwidget.c',
|
|
|
|
'gtkprintjob.c',
|
|
|
|
'gtkprintoperation-unix.c',
|
|
|
|
'gtkprintoperation-portal.c',
|
|
|
|
'gtkprintunixdialog.c',
|
|
|
|
'gtksearchenginetracker.c',
|
|
|
|
])
|
2017-12-21 18:57:25 +00:00
|
|
|
|
|
|
|
gtk_sources += gtk_unix_print_sources
|
2017-03-21 13:34:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if os_win32
|
2017-12-21 18:57:25 +00:00
|
|
|
gtk_win32_print_sources = files([
|
2017-03-21 13:34:25 +00:00
|
|
|
'gtkprint-win32.c',
|
|
|
|
'gtkprintoperation-win32.c',
|
|
|
|
'gtkfilechoosernativewin32.c',
|
|
|
|
'gtkwin32.c',
|
2017-12-21 18:57:25 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
gtk_sources += gtk_win32_print_sources
|
2018-02-23 19:59:49 +00:00
|
|
|
gtk_sources += ['gtkimcontextime.c']
|
2017-03-22 16:48:56 +00:00
|
|
|
|
|
|
|
if cc.has_header_symbol('windows.h', 'IPrintDialogCallback')
|
|
|
|
cdata.set('HAVE_IPRINTDIALOGCALLBACK', 1)
|
|
|
|
endif
|
2017-03-21 13:34:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if x11_enabled
|
|
|
|
gtk_sources += ['gtkapplication-x11.c', 'gtkmountoperation-x11.c']
|
2018-02-23 19:59:49 +00:00
|
|
|
gtk_sources += ['gtkimcontextxim.c']
|
2017-03-21 13:34:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if wayland_enabled
|
|
|
|
gtk_sources += ['gtkapplication-wayland.c']
|
2018-02-23 19:59:49 +00:00
|
|
|
gtk_sources += im_wayland_sources
|
2017-03-21 13:34:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if x11_enabled or wayland_enabled
|
|
|
|
gtk_sources += ['gtkapplication-dbus.c']
|
|
|
|
endif
|
|
|
|
|
|
|
|
if win32_enabled
|
|
|
|
gtk_sources += ['gtkmountoperation-stub.c']
|
|
|
|
endif
|
|
|
|
|
|
|
|
if quartz_enabled
|
2017-12-21 18:57:25 +00:00
|
|
|
gtk_sources += files([
|
2017-03-21 13:34:25 +00:00
|
|
|
'gtksearchenginequartz.c',
|
|
|
|
'gtkmountoperation-stub.c',
|
|
|
|
'gtkapplication-quartz.c',
|
|
|
|
'gtkapplication-quartz-menu.c',
|
2017-07-18 17:35:21 +00:00
|
|
|
'gtkfilechoosernativequartz.c',
|
2017-03-21 13:34:25 +00:00
|
|
|
'gtkquartz.c',
|
2017-12-21 18:57:25 +00:00
|
|
|
])
|
2018-02-23 19:59:49 +00:00
|
|
|
gtk_sources += ['gtkimcontextquartz.c']
|
|
|
|
|
2017-03-21 13:34:25 +00:00
|
|
|
gtk_cargs += ['-xobjective-c'] # FIXME? maybe add_languages() instead?
|
|
|
|
endif
|
|
|
|
|
|
|
|
if not (x11_enabled or win32_enabled or quartz_enabled)
|
2017-04-26 16:04:20 +00:00
|
|
|
gtk_sources += ['gtkmountoperation-stub.c', ]
|
2017-03-21 13:34:25 +00:00
|
|
|
endif
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2017-03-11 21:54:20 +00:00
|
|
|
gen_gtk_gresources_xml = find_program('gen-gtk-gresources-xml.py')
|
2017-04-26 16:04:20 +00:00
|
|
|
gtk_gresources_xml = configure_file(output: 'gtk.gresources.xml',
|
|
|
|
command: [
|
|
|
|
gen_gtk_gresources_xml,
|
|
|
|
meson.current_source_dir(),
|
2017-10-10 10:53:06 +00:00
|
|
|
'@OUTPUT@'
|
2017-04-26 16:04:20 +00:00
|
|
|
])
|
|
|
|
|
2017-06-01 13:56:32 +00:00
|
|
|
# Re-build the theme files if sassc is available
|
|
|
|
theme_deps = []
|
|
|
|
sassc = find_program('sassc', required: false)
|
|
|
|
if sassc.found()
|
|
|
|
sassc_opts = [ '-a', '-M', '-t', 'compact' ]
|
|
|
|
|
|
|
|
subdir('theme/Adwaita')
|
|
|
|
subdir('theme/HighContrast')
|
|
|
|
endif
|
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gtkresources = gnome.compile_resources('gtkresources',
|
|
|
|
gtk_gresources_xml,
|
2017-06-01 13:56:32 +00:00
|
|
|
dependencies: theme_deps,
|
|
|
|
source_dir: [
|
|
|
|
# List in order of preference
|
|
|
|
meson.current_build_dir(),
|
|
|
|
meson.current_source_dir(),
|
|
|
|
],
|
2017-04-26 16:04:20 +00:00
|
|
|
c_name: '_gtk',
|
|
|
|
extra_args: '--manual-register')
|
2016-08-21 16:00:19 +00:00
|
|
|
|
2016-09-09 20:02:21 +00:00
|
|
|
gtk_x11_sources = files([
|
2016-08-15 08:03:57 +00:00
|
|
|
'gtkapplication-x11.c',
|
|
|
|
'gtkmountoperation-x11.c',
|
2016-09-09 20:02:21 +00:00
|
|
|
])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-09-09 20:02:21 +00:00
|
|
|
gtk_wayland_sources = files([
|
2016-08-21 14:00:37 +00:00
|
|
|
'gtkapplication-wayland.c'
|
2016-09-09 20:02:21 +00:00
|
|
|
])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gtk_use_wayland_or_x11_c_sources = files([
|
|
|
|
'gtkapplication-dbus.c'
|
|
|
|
])
|
|
|
|
|
2017-03-21 13:34:25 +00:00
|
|
|
gtk_dbus_src = gnome.gdbus_codegen('gtkdbusgenerated',
|
2017-04-26 16:04:20 +00:00
|
|
|
'gtkdbusinterfaces.xml',
|
|
|
|
interface_prefix: 'org.Gtk.',
|
|
|
|
namespace: '_Gtk')
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2017-03-20 19:24:11 +00:00
|
|
|
gtkmarshalers = gnome.genmarshal('gtkmarshalers',
|
2017-04-26 16:04:20 +00:00
|
|
|
sources: 'gtkmarshalers.list',
|
|
|
|
prefix: '_gtk_marshal',
|
|
|
|
valist_marshallers: true)
|
2016-08-22 19:26:38 +00:00
|
|
|
|
2017-03-20 19:24:11 +00:00
|
|
|
gtkmarshal_h = gtkmarshalers[1]
|
2016-08-21 15:16:03 +00:00
|
|
|
|
2017-03-20 19:24:11 +00:00
|
|
|
gtktypebuiltins = gnome.mkenums('gtktypebuiltins',
|
2017-04-26 16:04:20 +00:00
|
|
|
sources: gtk_public_headers + gtk_deprecated_headers + a11y_headers,
|
|
|
|
c_template: 'gtktypebuiltins.c.template',
|
|
|
|
h_template: 'gtktypebuiltins.h.template',
|
|
|
|
install_dir: join_paths(gtk_includedir, 'gtk-4.0/gtk'),
|
|
|
|
install_header: true)
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2017-03-20 19:24:11 +00:00
|
|
|
gtktypebuiltins_h = gtktypebuiltins[1]
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2017-03-20 19:24:11 +00:00
|
|
|
gtkprivatetypebuiltins = gnome.mkenums('gtkprivatetypebuiltins',
|
2017-04-26 16:04:20 +00:00
|
|
|
sources: gtk_private_type_headers,
|
|
|
|
c_template: 'gtkprivatetypebuiltins.c.template',
|
|
|
|
h_template: 'gtkprivatetypebuiltins.h.template')
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2017-03-20 19:24:11 +00:00
|
|
|
gtkprivatetypebuiltins_h = gtkprivatetypebuiltins[1]
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2017-02-05 13:41:38 +00:00
|
|
|
# Generate gtktypefuncs.inc
|
2017-03-20 19:24:11 +00:00
|
|
|
typefuncs = custom_target('gtktypefuncs.inc',
|
2017-04-28 14:23:45 +00:00
|
|
|
depends: [ gdkenum_h, gskenum_h, ],
|
2017-04-26 16:04:20 +00:00
|
|
|
output: 'gtktypefuncs.inc',
|
|
|
|
input: gdk_headers +
|
|
|
|
gtk_public_headers +
|
|
|
|
gtk_deprecated_headers +
|
|
|
|
[ gtktypebuiltins_h, ] +
|
2017-04-28 14:23:45 +00:00
|
|
|
[ gdkenum_h, gskenum_h, ],
|
2017-04-26 16:04:20 +00:00
|
|
|
command: [
|
|
|
|
find_program('gentypefuncs.py'),
|
|
|
|
'@OUTPUT@',
|
|
|
|
'@INPUT@',
|
|
|
|
],
|
|
|
|
install: false)
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2017-03-22 16:51:39 +00:00
|
|
|
gtkversion_cdata = configuration_data()
|
|
|
|
gtkversion_cdata.set('GTK_MAJOR_VERSION', gtk_major_version)
|
|
|
|
gtkversion_cdata.set('GTK_MINOR_VERSION', gtk_minor_version)
|
|
|
|
gtkversion_cdata.set('GTK_MICRO_VERSION', gtk_micro_version)
|
|
|
|
gtkversion_cdata.set('GTK_BINARY_AGE', gtk_binary_age)
|
|
|
|
gtkversion_cdata.set('GTK_INTERFACE_AGE', gtk_interface_age)
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gtkversion = configure_file(input: 'gtkversion.h.in',
|
|
|
|
output: 'gtkversion.h',
|
|
|
|
configuration: gtkversion_cdata,
|
|
|
|
install_dir: join_paths(gtk_includedir, 'gtk-4.0/gtk'))
|
2016-08-23 06:21:54 +00:00
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gtk_gen_headers = [
|
|
|
|
gtkmarshal_h,
|
|
|
|
gtktypebuiltins_h,
|
|
|
|
gtkprivatetypebuiltins_h,
|
|
|
|
gtkversion,
|
|
|
|
]
|
2017-03-23 15:54:58 +00:00
|
|
|
|
2016-09-09 20:02:21 +00:00
|
|
|
gtk_sources += [
|
2016-08-21 15:16:03 +00:00
|
|
|
gtk_dbus_src,
|
2016-09-26 10:51:17 +00:00
|
|
|
gtk_deprecated_sources,
|
2016-08-21 15:16:03 +00:00
|
|
|
inspector_sources,
|
|
|
|
a11y_sources,
|
2016-08-22 19:26:38 +00:00
|
|
|
gtkresources,
|
2017-03-20 19:24:11 +00:00
|
|
|
gtkmarshalers,
|
|
|
|
gtkprivatetypebuiltins,
|
|
|
|
gtktypebuiltins,
|
2016-08-21 15:16:03 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
gtk_deps = [
|
2016-09-09 20:02:21 +00:00
|
|
|
gmodule_dep,
|
|
|
|
glib_dep,
|
2017-09-07 18:23:41 +00:00
|
|
|
gobject_dep,
|
2017-08-01 08:49:08 +00:00
|
|
|
platform_gio_dep,
|
2016-09-09 20:02:21 +00:00
|
|
|
pangocairo_dep,
|
|
|
|
pango_dep,
|
|
|
|
cairogobj_dep,
|
|
|
|
cairo_dep,
|
|
|
|
fontconfig_dep,
|
|
|
|
pixbuf_dep,
|
|
|
|
atk_dep,
|
|
|
|
epoxy_dep,
|
2017-03-23 20:55:59 +00:00
|
|
|
libm,
|
2017-04-26 16:10:15 +00:00
|
|
|
graphene_dep,
|
2016-08-21 15:16:03 +00:00
|
|
|
]
|
|
|
|
|
2018-01-03 04:46:37 +00:00
|
|
|
if harfbuzz_dep.found() and pangoft_dep.found()
|
2018-01-11 17:49:43 +00:00
|
|
|
gtk_deps += [ harfbuzz_dep, pangoft_dep ]
|
2018-03-28 04:57:28 +00:00
|
|
|
gtk_sources += files([
|
|
|
|
'language-names.c',
|
|
|
|
'script-names.c',
|
|
|
|
])
|
2018-01-03 04:46:37 +00:00
|
|
|
endif
|
|
|
|
|
2016-09-09 20:02:21 +00:00
|
|
|
if x11_enabled
|
2017-04-26 16:10:15 +00:00
|
|
|
x11_data_prefix = dependency('x11').get_pkgconfig_variable('prefix')
|
2016-09-24 08:04:23 +00:00
|
|
|
|
2017-04-26 16:10:15 +00:00
|
|
|
gtk_cargs += [ '-DX11_DATA_PREFIX="@0@"'.format(x11_data_prefix), ]
|
2016-09-26 10:51:17 +00:00
|
|
|
gtk_sources += gtk_x11_sources
|
2017-04-26 16:10:15 +00:00
|
|
|
gtk_deps += [ xi_dep, x11_dep, ]
|
2016-09-09 20:02:21 +00:00
|
|
|
endif
|
2016-08-21 15:16:03 +00:00
|
|
|
|
|
|
|
if wayland_enabled
|
2016-09-26 10:51:17 +00:00
|
|
|
gtk_sources += gtk_wayland_sources
|
|
|
|
endif
|
|
|
|
|
2018-02-23 19:59:49 +00:00
|
|
|
if broadway_enabled
|
|
|
|
gtk_sources += ['gtkimcontextbroadway.c']
|
|
|
|
endif
|
|
|
|
|
2017-08-01 08:49:08 +00:00
|
|
|
if win32_enabled
|
|
|
|
gtk_cargs += ['-DGTK_PRINT_BACKENDS="file,lpr"']
|
2018-03-04 02:48:10 +00:00
|
|
|
gtk_deps += [ giowin32_dep, pangowin32_dep ]
|
|
|
|
|
2017-08-01 08:49:08 +00:00
|
|
|
gtk_deps += [cc.find_library('advapi32'),
|
|
|
|
cc.find_library('comctl32'),
|
|
|
|
cc.find_library('dwmapi'),
|
|
|
|
cc.find_library('imm32'),
|
|
|
|
cc.find_library('setupapi'),
|
|
|
|
cc.find_library('winmm')]
|
|
|
|
else
|
|
|
|
gtk_deps += [ atkbridge_dep, ]
|
|
|
|
endif
|
|
|
|
|
2016-09-26 10:51:17 +00:00
|
|
|
# So we don't add these twice
|
|
|
|
if x11_enabled or wayland_enabled
|
|
|
|
gtk_sources += gtk_use_wayland_or_x11_c_sources
|
|
|
|
gtk_deps += pangoft_dep
|
2016-08-21 15:16:03 +00:00
|
|
|
endif
|
|
|
|
|
2017-08-10 20:30:36 +00:00
|
|
|
if cloudproviders_enabled
|
|
|
|
gtk_deps += cloudproviders_dep
|
|
|
|
endif
|
|
|
|
|
2018-04-11 16:43:27 +00:00
|
|
|
# Unconditional. If libintl isn't found,
|
|
|
|
# the object just does nothing being in the deplist
|
|
|
|
gtk_deps += libintl_dep
|
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gtk_settings_schemas = [
|
|
|
|
'org.gtk.Settings.FileChooser.gschema.xml',
|
|
|
|
'org.gtk.Settings.ColorChooser.gschema.xml',
|
2017-08-12 23:06:00 +00:00
|
|
|
'org.gtk.Settings.EmojiChooser.gschema.xml',
|
2017-04-26 16:04:20 +00:00
|
|
|
'org.gtk.Settings.Debug.gschema.xml',
|
|
|
|
]
|
|
|
|
install_data(gtk_settings_schemas, install_dir: gtk_schemasdir)
|
2018-02-17 08:48:12 +00:00
|
|
|
gnome.compile_schemas(depend_files: files(gtk_settings_schemas),
|
|
|
|
build_by_default: true)
|
|
|
|
gtk_schema_build_dir = meson.current_build_dir()
|
2016-09-24 08:43:22 +00:00
|
|
|
|
2017-03-23 20:50:03 +00:00
|
|
|
# Check for more things
|
|
|
|
if cc.has_header('langinfo.h')
|
2017-04-26 16:04:20 +00:00
|
|
|
foreach nl_enum: [ '_NL_MEASUREMENT_MEASUREMENT',
|
|
|
|
'_NL_PAPER_HEIGHT',
|
|
|
|
'_NL_PAPER_WIDTH',
|
|
|
|
'_NL_TIME_FIRST_WEEKDAY', ]
|
2017-03-23 20:50:03 +00:00
|
|
|
cdata.set('HAVE_' + nl_enum, cc.has_header_symbol('langinfo.h', nl_enum))
|
|
|
|
endforeach
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Library
|
2017-03-22 00:15:31 +00:00
|
|
|
libgtk = shared_library('gtk-4',
|
2017-04-26 16:04:20 +00:00
|
|
|
soversion: gtk_soversion,
|
|
|
|
sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h],
|
|
|
|
c_args: gtk_cargs + common_cflags,
|
|
|
|
include_directories: [confinc, gdkinc, gskinc, gtkinc],
|
|
|
|
dependencies: gtk_deps + [libgdk_dep, libgsk_dep],
|
2017-04-28 14:23:45 +00:00
|
|
|
link_with: [libgdk, libgsk, ],
|
2017-04-26 16:04:20 +00:00
|
|
|
link_args: common_ldflags,
|
|
|
|
install: true)
|
|
|
|
|
2017-09-07 18:20:38 +00:00
|
|
|
gtk_dep_sources = [gtkversion, gtktypebuiltins_h]
|
2017-04-18 17:04:31 +00:00
|
|
|
# Introspection
|
2017-09-06 13:27:59 +00:00
|
|
|
build_gir = get_option('introspection')
|
2017-09-02 11:00:05 +00:00
|
|
|
if build_gir
|
2017-04-18 17:04:31 +00:00
|
|
|
gir_args = [
|
2017-05-05 10:16:06 +00:00
|
|
|
'--quiet',
|
2017-04-18 17:04:31 +00:00
|
|
|
]
|
|
|
|
|
2018-02-12 14:22:06 +00:00
|
|
|
# We may build some of the dependencies as sub-projects; this means
|
|
|
|
# that we need to depend on the built introspection data, instead of
|
|
|
|
# the installed one
|
|
|
|
gdk_gir_inc = [ 'cairo-1.0', 'Gio-2.0', ]
|
|
|
|
|
|
|
|
if pixbuf_dep.type_name() == 'internal'
|
|
|
|
gdk_gir_inc += subproject('gdk-pixbuf').get_variable('gdkpixbuf_gir').get(0)
|
|
|
|
else
|
|
|
|
gdk_gir_inc += 'GdkPixbuf-2.0'
|
|
|
|
endif
|
|
|
|
|
|
|
|
if pango_dep.type_name() == 'internal'
|
|
|
|
gdk_gir_inc += subproject('pango').get_variable('pango_gir').get(0)
|
|
|
|
else
|
|
|
|
gdk_gir_inc += 'Pango-1.0'
|
|
|
|
endif
|
|
|
|
|
2017-04-18 17:04:31 +00:00
|
|
|
gdk_gir = gnome.generate_gir(libgtk,
|
2017-04-26 16:04:20 +00:00
|
|
|
sources: gdk_public_headers + gdk_public_sources + [ gdkenum_h ],
|
|
|
|
namespace: 'Gdk',
|
|
|
|
nsversion: gtk_api_version,
|
|
|
|
identifier_prefix: 'Gdk',
|
|
|
|
symbol_prefix: 'gdk',
|
|
|
|
export_packages: 'gtk+-4.0',
|
2018-02-12 14:22:06 +00:00
|
|
|
includes: gdk_gir_inc,
|
2018-02-11 16:42:46 +00:00
|
|
|
header: 'gdk/gdk.h',
|
2017-04-26 16:04:20 +00:00
|
|
|
install: true,
|
|
|
|
extra_args: gir_args + [
|
|
|
|
'-DGDK_COMPILATION',
|
|
|
|
])
|
2017-05-10 10:36:30 +00:00
|
|
|
gdk_gir_dep = declare_dependency(sources: gdk_gir)
|
2017-09-07 18:20:38 +00:00
|
|
|
gtk_dep_sources += gdk_gir
|
2017-04-18 17:04:31 +00:00
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
if x11_enabled
|
2017-09-07 18:20:38 +00:00
|
|
|
gdk_x11_gir = gnome.generate_gir(libgtk,
|
|
|
|
sources: gdk_x11_public_headers + gdk_x11_sources,
|
|
|
|
namespace: 'GdkX11',
|
|
|
|
nsversion: gtk_api_version,
|
|
|
|
identifier_prefix: 'Gdk',
|
|
|
|
symbol_prefix: 'gdk',
|
|
|
|
export_packages: 'gtk+-x11-4.0',
|
2018-02-12 14:22:06 +00:00
|
|
|
includes: [ gdk_gir[0], 'xlib-2.0', ],
|
2017-09-07 18:20:38 +00:00
|
|
|
install: true,
|
|
|
|
dependencies: gdk_gir_dep,
|
2018-02-11 16:42:46 +00:00
|
|
|
header: 'gdk/gdkx.h',
|
|
|
|
extra_args: gir_args + [
|
2017-09-07 18:20:38 +00:00
|
|
|
'-DGDK_COMPILATION',
|
|
|
|
])
|
|
|
|
gtk_dep_sources += gdk_x11_gir
|
2017-04-26 16:04:20 +00:00
|
|
|
endif
|
2017-04-18 17:04:31 +00:00
|
|
|
|
2018-02-12 14:22:06 +00:00
|
|
|
gsk_gir_inc = [ gdk_gir[0], ]
|
|
|
|
if graphene_dep.type_name() == 'internal'
|
|
|
|
gsk_gir_inc += subproject('graphene').get_variable('graphene_gir').get(0)
|
|
|
|
else
|
|
|
|
gsk_gir_inc += 'Graphene-1.0'
|
|
|
|
endif
|
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gsk_gir = gnome.generate_gir(libgtk,
|
2017-04-28 14:23:45 +00:00
|
|
|
sources: gsk_public_headers + gsk_public_sources + [ gskenum_h ],
|
2017-04-26 16:04:20 +00:00
|
|
|
namespace: 'Gsk',
|
|
|
|
nsversion: gtk_api_version,
|
|
|
|
identifier_prefix: 'Gsk',
|
|
|
|
symbol_prefix: 'gsk',
|
|
|
|
export_packages: 'gtk+-4.0',
|
2018-02-12 14:22:06 +00:00
|
|
|
includes: gsk_gir_inc,
|
2018-02-11 16:42:46 +00:00
|
|
|
header: 'gsk/gsk.h',
|
2017-04-26 16:04:20 +00:00
|
|
|
install: true,
|
2017-09-07 18:20:38 +00:00
|
|
|
dependencies: [gdk_gir_dep, graphene_dep],
|
2017-04-26 16:04:20 +00:00
|
|
|
extra_args: gir_args + [
|
|
|
|
'-DGSK_COMPILATION',
|
|
|
|
])
|
2018-02-12 14:22:06 +00:00
|
|
|
gsk_gir_dep = declare_dependency(dependencies: [gdk_gir_dep, graphene_dep],
|
|
|
|
sources: gsk_gir)
|
2017-09-07 18:20:38 +00:00
|
|
|
gtk_dep_sources += gsk_gir
|
2017-04-26 16:04:20 +00:00
|
|
|
|
2017-12-21 18:57:25 +00:00
|
|
|
gtk_introspection_sources = [
|
|
|
|
gtk_public_headers,
|
|
|
|
gtk_public_sources,
|
|
|
|
a11y_headers,
|
|
|
|
a11y_sources,
|
|
|
|
gtktypebuiltins_h,
|
|
|
|
gtkversion,
|
|
|
|
]
|
|
|
|
|
|
|
|
if os_unix
|
|
|
|
gtk_introspection_sources += gtk_unix_print_sources
|
|
|
|
endif
|
|
|
|
|
|
|
|
if os_win32
|
|
|
|
gtk_introspection_sources += gtk_win32_print_sources
|
|
|
|
endif
|
2017-09-07 18:20:38 +00:00
|
|
|
|
|
|
|
gtk_gir = gnome.generate_gir(libgtk,
|
2017-12-21 18:57:25 +00:00
|
|
|
sources: gtk_introspection_sources,
|
2017-09-07 18:20:38 +00:00
|
|
|
namespace: 'Gtk',
|
|
|
|
nsversion: gtk_api_version,
|
|
|
|
identifier_prefix: 'Gtk',
|
|
|
|
symbol_prefix: 'gtk',
|
|
|
|
export_packages: 'gtk+-4.0',
|
2018-02-11 16:42:46 +00:00
|
|
|
includes: [ gdk_gir[0], gsk_gir[0], 'Atk-1.0', ],
|
|
|
|
header: 'gtk/gtk.h',
|
2017-09-07 18:20:38 +00:00
|
|
|
install: true,
|
|
|
|
dependencies: gsk_gir_dep,
|
|
|
|
extra_args: gir_args + [
|
|
|
|
'-DGTK_COMPILATION',
|
2018-03-03 00:00:00 +00:00
|
|
|
'--c-include=gtk/gtk-a11y.h',
|
2017-09-07 18:20:38 +00:00
|
|
|
])
|
|
|
|
gtk_dep_sources += gtk_gir
|
2017-04-18 17:04:31 +00:00
|
|
|
endif
|
|
|
|
|
2017-09-07 18:20:38 +00:00
|
|
|
libgtk_dep = declare_dependency(sources: gtk_dep_sources,
|
|
|
|
include_directories: [confinc, gtkinc],
|
|
|
|
dependencies: gtk_deps + [libgdk_dep, libgsk_dep],
|
|
|
|
link_with: libgtk,
|
|
|
|
link_args: common_ldflags)
|
|
|
|
|
2017-03-20 16:25:14 +00:00
|
|
|
# Installed tools
|
|
|
|
gtk_tools = [
|
|
|
|
['gtk4-query-settings', ['gtk-query-settings.c']],
|
|
|
|
['gtk4-builder-tool', ['gtk-builder-tool.c']],
|
2018-02-01 15:01:38 +00:00
|
|
|
['gtk4-update-icon-cache', ['updateiconcache.c', 'gtkiconcachevalidator.c']],
|
2017-11-07 23:55:01 +00:00
|
|
|
['gtk4-encode-symbolic-svg', ['encodesymbolic.c', 'gdkpixbufutils.c']],
|
2017-03-20 16:25:14 +00:00
|
|
|
]
|
2016-09-24 08:43:22 +00:00
|
|
|
|
2017-08-01 08:49:08 +00:00
|
|
|
if os_unix
|
2017-10-20 10:22:45 +00:00
|
|
|
gtk_tools += [['gtk4-launch', ['gtk-launch.c']]]
|
2017-08-01 08:49:08 +00:00
|
|
|
endif
|
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
foreach tool: gtk_tools
|
2017-03-20 16:25:14 +00:00
|
|
|
tool_name = tool.get(0)
|
|
|
|
tool_srcs = tool.get(1)
|
2016-09-24 08:43:22 +00:00
|
|
|
|
2017-03-22 13:39:14 +00:00
|
|
|
exe = executable(tool_name, tool_srcs,
|
2017-04-26 16:04:20 +00:00
|
|
|
include_directories: [confinc],
|
|
|
|
c_args: gtk_cargs,
|
|
|
|
dependencies: libgtk_dep,
|
|
|
|
install: true)
|
2017-03-22 13:39:14 +00:00
|
|
|
|
|
|
|
set_variable(tool_name.underscorify(), exe) # used in testsuites
|
2017-03-20 16:25:14 +00:00
|
|
|
endforeach
|
2017-03-21 13:34:25 +00:00
|
|
|
|
|
|
|
# Data to install
|
|
|
|
install_data('gtkbuilder.rng',
|
2017-04-26 16:04:20 +00:00
|
|
|
install_dir: join_paths(gtk_datadir, 'gtk-4.0'))
|
2017-03-21 13:34:25 +00:00
|
|
|
|
|
|
|
install_data('gtkbuilder.loc', 'gtkbuilder.its',
|
2017-04-26 16:04:20 +00:00
|
|
|
install_dir: join_paths(gtk_datadir, 'gettext/its'))
|
2017-03-21 13:34:25 +00:00
|
|
|
|
|
|
|
if quartz_enabled
|
|
|
|
# HACK: install_data() doesn't allow installing under a different name (#1487)
|
|
|
|
# FIXME: or maybe just rename it to gtk-keys.css in the src tree?
|
2017-04-26 16:04:20 +00:00
|
|
|
configure_file(input: 'gtk-keys.css.mac',
|
|
|
|
output: 'gtk-keys.css',
|
|
|
|
configuration: configuration_data(),
|
|
|
|
install_dir: join_paths(get_option('datadir'), 'themes/Mac/gtk-4.0'))
|
2017-03-21 13:34:25 +00:00
|
|
|
endif
|