Commit 65eff6f1 authored by Salamandar's avatar Salamandar

Meson port.

parent a97bad1c
gimp_debug_tool = executable('gimp-debug-tool',
'gimp-debug-tool.c',
include_directories: rootInclude,
dependencies: [
fontconfig,
gio,
gegl,
gtk3,
],
link_with: [
libapp,
libappwidgets,
],
)
libappactions_sources = [
'actions.c',
'brush-editor-actions.c',
'brushes-actions.c',
'buffers-actions.c',
'buffers-commands.c',
'channels-actions.c',
'channels-commands.c',
'colormap-actions.c',
'colormap-commands.c',
'context-actions.c',
'context-commands.c',
'cursor-info-actions.c',
'cursor-info-commands.c',
'dashboard-actions.c',
'dashboard-commands.c',
'data-commands.c',
'data-editor-commands.c',
'debug-actions.c',
'debug-commands.c',
'dialogs-actions.c',
'dialogs-commands.c',
'dock-actions.c',
'dock-commands.c',
'dockable-actions.c',
'dockable-commands.c',
'documents-actions.c',
'documents-commands.c',
'drawable-actions.c',
'drawable-commands.c',
'dynamics-actions.c',
'dynamics-editor-actions.c',
'edit-actions.c',
'edit-commands.c',
'error-console-actions.c',
'error-console-commands.c',
'file-actions.c',
'file-commands.c',
'filters-actions.c',
'filters-commands.c',
'fonts-actions.c',
'gimpgeglprocedure.c',
'gradient-editor-actions.c',
'gradient-editor-commands.c',
'gradients-actions.c',
'gradients-commands.c',
'help-actions.c',
'help-commands.c',
'image-actions.c',
'image-commands.c',
'images-actions.c',
'images-commands.c',
'items-actions.c',
'items-commands.c',
'layers-actions.c',
'layers-commands.c',
'mypaint-brushes-actions.c',
'palette-editor-actions.c',
'palette-editor-commands.c',
'palettes-actions.c',
'palettes-commands.c',
'patterns-actions.c',
'plug-in-actions.c',
'plug-in-commands.c',
'procedure-commands.c',
'quick-mask-actions.c',
'quick-mask-commands.c',
'sample-points-actions.c',
'sample-points-commands.c',
'select-actions.c',
'select-commands.c',
'templates-actions.c',
'templates-commands.c',
'text-editor-actions.c',
'text-editor-commands.c',
'text-tool-actions.c',
'text-tool-commands.c',
'tool-options-actions.c',
'tool-options-commands.c',
'tool-preset-editor-actions.c',
'tool-preset-editor-commands.c',
'tool-presets-actions.c',
'tool-presets-commands.c',
'tools-actions.c',
'tools-commands.c',
'vectors-actions.c',
'vectors-commands.c',
'view-actions.c',
'view-commands.c',
'window-actions.c',
'window-commands.c',
'windows-actions.c',
'windows-commands.c',
]
libappactions = static_library('appactions',
libappactions_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-Actions"',
dependencies: [
gegl, gdk_pixbuf, gtk3,
],
)
appconfigenums = custom_target('config-enums.c',
input : [ 'config-enums.h', ],
output: [ 'config-enums.c', ],
command: app_mkenums_custom_target_command,
capture: true,
)
libappconfig_sources = [
'gimpconfig-dump.c',
'gimpconfig-file.c',
'gimpconfig-utils.c',
'gimpcoreconfig.c',
'gimpdialogconfig.c',
'gimpdisplayconfig.c',
'gimpdisplayoptions.c',
'gimpgeglconfig.c',
'gimpguiconfig.c',
'gimplangrc.c',
'gimppluginconfig.c',
'gimprc-deserialize.c',
'gimprc-serialize.c',
'gimprc-unknown.c',
'gimprc.c',
'gimpxmlparser.c',
appconfigenums,
]
libappconfig = static_library('appconfig',
libappconfig_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-Config"',
dependencies: [
cairo, gegl, gdk_pixbuf, gio, gio_specific, gtk3, libmypaint,
],
)
test('app-config',
executable('test-config',
[ 'test-config.c', app_debug_files, ],
include_directories: [ rootInclude, rootAppInclude, ],
dependencies: [
gegl, gio, gio_specific,
appstream_glib,
],
link_with: [
libgimpbase,
libgimpconfig,
libgimpcolor,
libgimpmath,
libgimpmodule,
libgimpthumb,
libappcore,
libappconfig,
libappfile,
libappfiledata,
libappgegl,
libappinternalprocs,
libapplayermodes,
libapplayermodeslegacy,
libappoperations,
libapppaint,
libapppdb,
libappplugin,
libapptext,
libappvectors,
libappxcf,
],
install: false,
),
suite: 'app'
)
appcoreenums = custom_target('core-enums',
input : [ 'core-enums.h', ],
output: [ 'core-enums.c', ],
command: app_mkenums_custom_target_command,
capture: true,
)
appcoremarshal = gnome.genmarshal('gimpmarshal',
prefix: 'gimp_marshal',
sources: 'gimpmarshal.list',
install_header: false,
)
libappcore_sources = [
'gimp-atomic.c',
'gimp-batch.c',
'gimp-cairo.c',
'gimp-contexts.c',
'gimp-data-factories.c',
'gimp-edit.c',
'gimp-filter-history.c',
'gimp-gradients.c',
'gimp-gui.c',
'gimp-internal-data.c',
'gimp-memsize.c',
'gimp-modules.c',
'gimp-palettes.c',
'gimp-parallel.cc',
'gimp-parasites.c',
'gimp-spawn.c',
'gimp-tags.c',
'gimp-templates.c',
'gimp-transform-resize.c',
'gimp-transform-utils.c',
'gimp-units.c',
'gimp-user-install.c',
'gimp-utils.c',
'gimp.c',
'gimpasync.c',
'gimpasyncset.c',
'gimpauxitem.c',
'gimpauxitemundo.c',
'gimpbacktrace-linux.c',
'gimpbacktrace-none.c',
'gimpbacktrace-windows.c',
'gimpbezierdesc.c',
'gimpboundary.c',
'gimpbrush-boundary.c',
'gimpbrush-load.c',
'gimpbrush-save.c',
'gimpbrush-transform.cc',
'gimpbrush.c',
'gimpbrushcache.c',
'gimpbrushclipboard.c',
'gimpbrushgenerated-load.c',
'gimpbrushgenerated-save.c',
'gimpbrushgenerated.c',
'gimpbrushpipe-load.c',
'gimpbrushpipe-save.c',
'gimpbrushpipe.c',
'gimpbuffer.c',
'gimpcancelable.c',
'gimpchannel-combine.c',
'gimpchannel-select.c',
'gimpchannel.c',
'gimpchannelpropundo.c',
'gimpchannelundo.c',
'gimpchunkiterator.c',
'gimpcontainer-filter.c',
'gimpcontainer.c',
'gimpcontext.c',
'gimpcoords-interpolate.c',
'gimpcoords.c',
'gimpcurve-load.c',
'gimpcurve-map.c',
'gimpcurve-save.c',
'gimpcurve.c',
'gimpdashpattern.c',
'gimpdata.c',
'gimpdatafactory.c',
'gimpdataloaderfactory.c',
'gimpdisplay.c',
'gimpdocumentlist.c',
'gimpdrawable-bucket-fill.c',
'gimpdrawable-combine.c',
'gimpdrawable-edit.c',
'gimpdrawable-equalize.c',
'gimpdrawable-fill.c',
'gimpdrawable-filters.c',
'gimpdrawable-floating-selection.c',
'gimpdrawable-foreground-extract.c',
'gimpdrawable-gradient.c',
'gimpdrawable-histogram.c',
'gimpdrawable-levels.c',
'gimpdrawable-offset.c',
'gimpdrawable-operation.c',
'gimpdrawable-preview.c',
'gimpdrawable-shadow.c',
'gimpdrawable-stroke.c',
'gimpdrawable-transform.c',
'gimpdrawable.c',
'gimpdrawablefilter.c',
'gimpdrawablemodundo.c',
'gimpdrawablepropundo.c',
'gimpdrawablestack.c',
'gimpdrawableundo.c',
'gimpdynamics-load.c',
'gimpdynamics-save.c',
'gimpdynamics.c',
'gimpdynamicsoutput.c',
'gimperror.c',
'gimpextension-error.c',
'gimpextension.c',
'gimpextensionmanager.c',
'gimpfilloptions.c',
'gimpfilter.c',
'gimpfilteredcontainer.c',
'gimpfilterstack.c',
'gimpfloatingselectionundo.c',
'gimpgradient-load.c',
'gimpgradient-save.c',
'gimpgradient.c',
'gimpgrid.c',
'gimpgrouplayer.c',
'gimpgrouplayerundo.c',
'gimpguide.c',
'gimpguideundo.c',
'gimphistogram.c',
'gimpidtable.c',
'gimpimage-arrange.c',
'gimpimage-color-profile.c',
'gimpimage-colormap.c',
'gimpimage-convert-indexed.c',
'gimpimage-convert-precision.c',
'gimpimage-convert-type.c',
'gimpimage-crop.c',
'gimpimage-duplicate.c',
'gimpimage-flip.c',
'gimpimage-grid.c',
'gimpimage-guides.c',
'gimpimage-item-list.c',
'gimpimage-merge.c',
'gimpimage-metadata.c',
'gimpimage-new.c',
'gimpimage-pick-color.c',
'gimpimage-pick-item.c',
'gimpimage-preview.c',
'gimpimage-quick-mask.c',
'gimpimage-resize.c',
'gimpimage-rotate.c',
'gimpimage-sample-points.c',
'gimpimage-scale.c',
'gimpimage-snap.c',
'gimpimage-symmetry.c',
'gimpimage-transform.c',
'gimpimage-undo-push.c',
'gimpimage-undo.c',
'gimpimage.c',
'gimpimagefile.c',
'gimpimageundo.c',
'gimpimageviewable.c',
'gimpitem-exclusive.c',
'gimpitem-linked.c',
'gimpitem-preview.c',
'gimpitem.c',
'gimpitempropundo.c',
'gimpitemstack.c',
'gimpitemtree.c',
'gimpitemundo.c',
'gimplayer-floating-selection.c',
'gimplayer-new.c',
'gimplayer.c',
'gimplayermask.c',
'gimplayermaskpropundo.c',
'gimplayermaskundo.c',
'gimplayerpropundo.c',
'gimplayerstack.c',
'gimplayerundo.c',
'gimplineart.c',
'gimplist.c',
'gimpmaskundo.c',
'gimpmybrush-load.c',
'gimpmybrush.c',
'gimpobject.c',
'gimpobjectqueue.c',
'gimppaintinfo.c',
'gimppalette-import.c',
'gimppalette-load.c',
'gimppalette-save.c',
'gimppalette.c',
'gimppalettemru.c',
'gimpparamspecs-desc.c',
'gimpparamspecs-duplicate.c',
'gimpparamspecs.c',
'gimpparasitelist.c',
'gimppattern-load.c',
'gimppattern-save.c',
'gimppattern.c',
'gimppatternclipboard.c',
'gimppdbprogress.c',
'gimppickable-auto-shrink.c',
'gimppickable-contiguous-region.cc',
'gimppickable.c',
'gimpprogress.c',
'gimpprojectable.c',
'gimpprojection.c',
'gimpsamplepoint.c',
'gimpsamplepointundo.c',
'gimpscanconvert.c',
'gimpselection.c',
'gimpsettings.c',
'gimpstrokeoptions.c',
'gimpsubprogress.c',
'gimpsymmetry-mandala.c',
'gimpsymmetry-mirror.c',
'gimpsymmetry-tiling.c',
'gimpsymmetry.c',
'gimptag.c',
'gimptagcache.c',
'gimptagged.c',
'gimptaggedcontainer.c',
'gimptempbuf.c',
'gimptemplate.c',
'gimptilehandlerprojectable.c',
'gimptoolinfo.c',
'gimptooloptions.c',
'gimptoolpreset-load.c',
'gimptoolpreset-save.c',
'gimptoolpreset.c',
'gimptreehandler.c',
'gimptriviallycancelablewaitable.c',
'gimpuncancelablewaitable.c',
'gimpundo.c',
'gimpundostack.c',
'gimpunit.c',
'gimpviewable.c',
'gimpwaitable.c',
appcoreenums,
appcoremarshal,
cursors_sources,
pickers_sources,
icons_core_sources,
]
libappcore = static_library('appcore',
libappcore_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-Core"',
dependencies: [
cairo,
gegl,
gdk_pixbuf,
libmypaint,
gexiv2,
appstream_glib,
math,
dl,
libunwind,
],
)
libappdialogs_sources = [
'about-dialog.c',
'action-search-dialog.c',
'channel-options-dialog.c',
'color-profile-dialog.c',
'color-profile-import-dialog.c',
'convert-indexed-dialog.c',
'convert-precision-dialog.c',
'data-delete-dialog.c',
'dialogs-constructors.c',
'dialogs.c',
'extensions-dialog.c',
'file-open-dialog.c',
'file-open-location-dialog.c',
'file-save-dialog.c',
'fill-dialog.c',
'grid-dialog.c',
'image-merge-layers-dialog.c',
'image-new-dialog.c',
'image-properties-dialog.c',
'image-scale-dialog.c',
'input-devices-dialog.c',
'item-options-dialog.c',
'keyboard-shortcuts-dialog.c',
'layer-add-mask-dialog.c',
'layer-options-dialog.c',
'lebl-dialog.c',
'module-dialog.c',
'palette-import-dialog.c',
'preferences-dialog-utils.c',
'preferences-dialog.c',
'print-size-dialog.c',
'quit-dialog.c',
'resize-dialog.c',
'resolution-calibrate-dialog.c',
'scale-dialog.c',
'stroke-dialog.c',
'template-options-dialog.c',
'tips-dialog.c',
'tips-parser.c',
'user-install-dialog.c',
'vectors-export-dialog.c',
'vectors-import-dialog.c',
'vectors-options-dialog.c',
gitversion_h,
]
# Auto-generated sources
libappdialogs_sources += [
custom_target('authors.h',
input : [ 'authors.xsl', meson.source_root() / 'authors.xml' ],
output: [ 'authors.h' ],
command: [ xsltproc, '-o', '@OUTPUT@', '@INPUT0@', '@INPUT1@' ],
)
]
libappdialogs = static_library('appdialogs',
libappdialogs_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-Dialogs"',
dependencies: [
gegl, gtk3,
],
)
appdisplayenums = custom_target('display-enums.c',
input : [ 'display-enums.h', ],
output: [ 'display-enums.c', ],
command: app_mkenums_custom_target_command,
capture: true,
)
libappdisplay_sources = [
'gimpcanvas-style.c',
'gimpcanvas.c',
'gimpcanvasarc.c',
'gimpcanvasboundary.c',
'gimpcanvasbufferpreview.c',
'gimpcanvascanvasboundary.c',
'gimpcanvascorner.c',
'gimpcanvascursor.c',
'gimpcanvasgrid.c',
'gimpcanvasgroup.c',
'gimpcanvasguide.c',
'gimpcanvashandle.c',
'gimpcanvasitem-utils.c',
'gimpcanvasitem.c',
'gimpcanvaslayerboundary.c',
'gimpcanvasline.c',
'gimpcanvaspassepartout.c',
'gimpcanvaspath.c',
'gimpcanvaspen.c',
'gimpcanvaspolygon.c',
'gimpcanvasprogress.c',
'gimpcanvasproxygroup.c',
'gimpcanvasrectangle.c',
'gimpcanvasrectangleguides.c',
'gimpcanvassamplepoint.c',
'gimpcanvastextcursor.c',
'gimpcanvastransformguides.c',
'gimpcanvastransformpreview.c',
'gimpcursorview.c',
'gimpdisplay-foreach.c',
'gimpdisplay-handlers.c',
'gimpdisplay.c',
'gimpdisplayshell-actions.c',
'gimpdisplayshell-appearance.c',
'gimpdisplayshell-autoscroll.c',
'gimpdisplayshell-callbacks.c',
'gimpdisplayshell-close.c',
'gimpdisplayshell-cursor.c',
'gimpdisplayshell-dnd.c',
'gimpdisplayshell-draw.c',
'gimpdisplayshell-expose.c',
'gimpdisplayshell-filter-dialog.c',
'gimpdisplayshell-filter.c',
'gimpdisplayshell-grab.c',
'gimpdisplayshell-handlers.c',
'gimpdisplayshell-icon.c',
'gimpdisplayshell-items.c',
'gimpdisplayshell-layer-select.c',
'gimpdisplayshell-profile.c',
'gimpdisplayshell-progress.c',
'gimpdisplayshell-render.c',
'gimpdisplayshell-rotate-dialog.c',
'gimpdisplayshell-rotate.c',
'gimpdisplayshell-rulers.c',
'gimpdisplayshell-scale-dialog.c',
'gimpdisplayshell-scale.c',
'gimpdisplayshell-scroll.c',
'gimpdisplayshell-scrollbars.c',
'gimpdisplayshell-selection.c',
'gimpdisplayshell-title.c',
'gimpdisplayshell-tool-events.c',
'gimpdisplayshell-transform.c',
'gimpdisplayshell-utils.c',
'gimpdisplayshell.c',
'gimpimagewindow.c',
'gimpmotionbuffer.c',
'gimpmultiwindowstrategy.c',
'gimpnavigationeditor.c',
'gimpscalecombobox.c',
'gimpsinglewindowstrategy.c',
'gimpstatusbar.c',
'gimptoolcompass.c',
'gimptooldialog.c',
'gimptoolgui.c',
'gimptoolgyroscope.c',
'gimptoolhandlegrid.c',
'gimptoolline.c',
'gimptoolpath.c',
'gimptoolpolygon.c',
'gimptoolrectangle.c',
'gimptoolrotategrid.c',
'gimptoolsheargrid.c',
'gimptooltransformgrid.c',
'gimptoolwidget.c',
'gimptoolwidgetgroup.c',
appdisplayenums,
gitversion_h,
appcoremarshal,
]
libappdisplay = static_library('appdisplay',
libappdisplay_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-Display"',
dependencies: [
gegl, gtk3,
],
)
libappfiledata_sources = [
'file-data-gbr.c',
'file-data-gex.c',
'file-data-gih.c',
'file-data-pat.c',
'file-data.c',
]
libappfiledata = static_library('appfiledata',
libappfiledata_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-File-Data"',
dependencies: [
appstream_glib,
cairo,
gdk_pixbuf,
gegl,
libarchive,
],
)
libappfile_sources = [
'file-import.c',
'file-open.c',
'file-remote.c',
'file-save.c',
'file-utils.c',
]
libappfile = static_library('appfile',
libappfile_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-File"',
dependencies: [
gegl, gdk_pixbuf,
],
)
appgeglenums = custom_target('gimp-gegl-enums.c',
input : [ 'gimp-gegl-enums.h', ],
output: [ 'gimp-gegl-enums.c', ],
command: app_mkenums_custom_target_command,
capture: true,
)
libappgegl_sources = [
'gimp-babl-compat.c',
'gimp-babl.c',
'gimp-gegl-apply-operation.c',
'gimp-gegl-loops-sse2.c',
'gimp-gegl-loops.cc',
'gimp-gegl-mask-combine.cc',
'gimp-gegl-mask.c',
'gimp-gegl-nodes.c',
'gimp-gegl-tile-compat.c',
'gimp-gegl-utils.c',
'gimp-gegl.c',
'gimpapplicator.c',
'gimptilehandlervalidate.c',
appgeglenums,
]
libappgegl = static_library('appgegl',
libappgegl_sources,
include_directories: [ rootInclude, rootAppInclude, ],
c_args: '-DG_LOG_DOMAIN="Gimp-GEGL"',
dependencies: [
cairo, gegl, gdk_pixbuf,
],
)
#pragma once
#define GIMP_GIT_VERSION "@GIMP_GIT_VERSION@"
#define GIMP_GIT_VERSION_ABBREV "@GIMP_GIT_VERSION_ABBREV@"
#define GIMP_GIT_LAST_COMMIT_YEAR "@GIMP_GIT_LAST_COMMIT_YEAR@"