2001-04-10 14:33:09 -07:00
## Process this file with automake to produce Makefile.in
2018-02-04 09:49:22 -08:00
if PLATFORM_OSX
xobjective_c = "-xobjective-c"
2018-04-08 00:59:49 -07:00
xobjective_cxx = "-xobjective-c++"
xnone = "-xnone"
2018-02-04 09:49:22 -08:00
endif
2002-06-07 16:00:46 -07:00
AM_CPPFLAGS = \
2008-02-07 08:50:11 -08:00
-DISO_CODES_LOCATION=\"$(ISO_CODES_LOCATION)\" \
-DISO_CODES_LOCALEDIR=\"$(ISO_CODES_LOCALEDIR)\" \
2013-06-05 11:48:37 -07:00
-DG_LOG_DOMAIN=\"Gimp-Widgets\" \
-I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_builddir)/app \
-I$(top_srcdir)/app \
$(GEGL_CFLAGS) \
$(GTK_CFLAGS) \
2018-04-07 13:39:13 -07:00
-I$(includedir)
AM_CFLAGS = \
2018-02-04 09:49:22 -08:00
$(xobjective_c)
2002-03-13 06:51:48 -08:00
2018-04-08 00:59:49 -07:00
AM_CXXFLAGS = \
$(xobjective_cxx)
AM_LDFLAGS = \
$(xnone)
2001-06-05 09:14:47 -07:00
noinst_LIBRARIES = libappwidgets.a
2001-04-10 14:33:09 -07:00
2002-06-07 16:00:46 -07:00
libappwidgets_a_sources = \
2002-03-13 06:51:48 -08:00
widgets-enums.h \
2001-05-25 09:04:54 -07:00
widgets-types.h \
2004-05-19 13:56:37 -07:00
gimpaction.c \
gimpaction.h \
2014-02-18 11:10:24 -08:00
gimpaction-history.c \
gimpaction-history.h \
2008-09-05 03:37:06 -07:00
gimpactioneditor.c \
gimpactioneditor.h \
2004-04-20 16:04:50 -07:00
gimpactionfactory.c \
gimpactionfactory.h \
2004-04-16 05:09:46 -07:00
gimpactiongroup.c \
gimpactiongroup.h \
2004-07-20 11:50:20 -07:00
gimpactionview.c \
gimpactionview.h \
2004-08-04 11:15:41 -07:00
gimpblobeditor.c \
gimpblobeditor.h \
2002-03-07 16:27:45 -08:00
gimpbrusheditor.c \
gimpbrusheditor.h \
2001-06-29 12:25:03 -07:00
gimpbrushfactoryview.c \
gimpbrushfactoryview.h \
2004-07-09 12:14:59 -07:00
gimpbrushselect.c \
gimpbrushselect.h \
2015-11-29 08:16:23 -08:00
gimpbuffersourcebox.c \
gimpbuffersourcebox.h \
2001-06-26 05:09:43 -07:00
gimpbufferview.c \
gimpbufferview.h \
2008-03-26 08:59:52 -07:00
gimpcairo-wilber.c \
gimpcairo-wilber.h \
2016-10-01 11:55:13 -07:00
gimpcellrendererbutton.c \
gimpcellrendererbutton.h \
2005-05-21 13:24:42 -07:00
gimpcellrendererdashes.c \
gimpcellrendererdashes.h \
2003-02-26 08:17:10 -08:00
gimpcellrendererviewable.c \
gimpcellrendererviewable.h \
2014-05-26 00:23:55 -07:00
gimpcircle.c \
gimpcircle.h \
2003-03-16 03:14:29 -08:00
gimpchanneltreeview.c \
gimpchanneltreeview.h \
2004-07-07 07:38:23 -07:00
gimpclipboard.c \
gimpclipboard.h \
2004-02-19 11:56:04 -08:00
gimpcolorbar.c \
gimpcolorbar.h \
2004-09-23 13:41:40 -07:00
gimpcolordialog.c \
gimpcolordialog.h \
2003-11-22 07:54:12 -08:00
gimpcolordisplayeditor.c \
gimpcolordisplayeditor.h \
2002-11-04 16:02:56 -08:00
gimpcoloreditor.c \
gimpcoloreditor.h \
2003-10-15 08:16:50 -07:00
gimpcolorframe.c \
gimpcolorframe.h \
2015-12-22 18:32:25 -08:00
gimpcolorhistory.c \
gimpcolorhistory.h \
2002-03-16 09:58:19 -08:00
gimpcolormapeditor.c \
gimpcolormapeditor.h \
2001-04-10 18:13:53 -07:00
gimpcolorpanel.c \
gimpcolorpanel.h \
2006-11-03 09:28:52 -08:00
gimpcolorselectorpalette.c \
gimpcolorselectorpalette.h \
2008-12-20 06:46:54 -08:00
gimpcombotagentry.c \
gimpcombotagentry.h \
2003-03-12 09:12:01 -08:00
gimpcomponenteditor.c \
gimpcomponenteditor.h \
2004-05-10 04:08:51 -07:00
gimpcontainerbox.c \
gimpcontainerbox.h \
2004-05-11 05:13:31 -07:00
gimpcontainercombobox.c \
gimpcontainercombobox.h \
2001-06-26 05:09:43 -07:00
gimpcontainereditor.c \
gimpcontainereditor.h \
2004-05-31 10:53:25 -07:00
gimpcontainerentry.c \
gimpcontainerentry.h \
2001-04-10 14:33:09 -07:00
gimpcontainergridview.c \
2001-04-21 17:38:56 -07:00
gimpcontainergridview.h \
2010-06-03 13:19:09 -07:00
gimpcontainericonview.c \
gimpcontainericonview.h \
2003-03-22 08:26:11 -08:00
gimpcontainerpopup.c \
gimpcontainerpopup.h \
2010-05-17 12:06:28 -07:00
gimpcontainertreestore.c \
gimpcontainertreestore.h \
2003-02-21 11:03:19 -08:00
gimpcontainertreeview.c \
gimpcontainertreeview.h \
2003-03-19 07:17:13 -08:00
gimpcontainertreeview-dnd.c \
gimpcontainertreeview-dnd.h \
2008-11-15 10:08:50 -08:00
gimpcontainertreeview-private.h \
2001-04-10 14:33:09 -07:00
gimpcontainerview.c \
2001-04-21 17:38:56 -07:00
gimpcontainerview.h \
2001-05-13 05:16:55 -07:00
gimpcontainerview-utils.c \
gimpcontainerview-utils.h \
2004-10-26 05:26:47 -07:00
gimpcontrollereditor.c \
gimpcontrollereditor.h \
2004-06-16 04:11:32 -07:00
gimpcontrollerinfo.c \
gimpcontrollerinfo.h \
2005-05-09 02:35:41 -07:00
gimpcontrollerlist.c \
gimpcontrollerlist.h \
2004-06-15 15:59:26 -07:00
gimpcontrollers.c \
gimpcontrollers.h \
2004-06-24 03:16:08 -07:00
gimpcontrollerkeyboard.c \
gimpcontrollerkeyboard.h \
2011-04-06 14:12:32 -07:00
gimpcontrollermouse.c \
gimpcontrollermouse.h \
2004-06-15 15:59:26 -07:00
gimpcontrollerwheel.c \
gimpcontrollerwheel.h \
2018-01-22 18:38:46 -08:00
gimpcriticaldialog.c \
gimpcriticaldialog.h \
2001-05-13 14:51:20 -07:00
gimpcursor.c \
gimpcursor.h \
2007-11-04 05:09:10 -08:00
gimpcurveview.c \
gimpcurveview.h \
2017-12-18 15:54:17 -08:00
gimpdashboard.c \
gimpdashboard.h \
2003-12-27 11:25:19 -08:00
gimpdasheditor.c \
2004-01-06 19:53:28 -08:00
gimpdasheditor.h \
2002-03-07 16:27:45 -08:00
gimpdataeditor.c \
gimpdataeditor.h \
2001-04-10 14:33:09 -07:00
gimpdatafactoryview.c \
2001-04-21 17:38:56 -07:00
gimpdatafactoryview.h \
2010-02-12 06:46:07 -08:00
gimpdeviceeditor.c \
gimpdeviceeditor.h \
2001-12-07 09:39:51 -08:00
gimpdeviceinfo.c \
gimpdeviceinfo.h \
2010-02-16 04:00:46 -08:00
gimpdeviceinfo-coords.c \
gimpdeviceinfo-coords.h \
2010-02-12 06:46:07 -08:00
gimpdeviceinfoeditor.c \
gimpdeviceinfoeditor.h \
2011-02-28 03:57:15 -08:00
gimpdevicemanager.c \
gimpdevicemanager.h \
2001-12-07 09:39:51 -08:00
gimpdevices.c \
gimpdevices.h \
2003-07-07 06:37:19 -07:00
gimpdevicestatus.c \
gimpdevicestatus.h \
2014-05-24 18:03:51 -07:00
gimpdial.c \
gimpdial.h \
2001-04-14 09:37:28 -07:00
gimpdialogfactory.c \
gimpdialogfactory.h \
2001-05-08 12:29:15 -07:00
gimpdnd.c \
gimpdnd.h \
2005-03-25 06:23:35 -08:00
gimpdnd-xds.c \
gimpdnd-xds.h \
2001-04-10 14:33:09 -07:00
gimpdock.c \
gimpdock.h \
2009-09-26 07:48:39 -07:00
gimpdockcolumns.c \
gimpdockcolumns.h \
2001-04-10 14:33:09 -07:00
gimpdockable.c \
gimpdockable.h \
gimpdockbook.c \
gimpdockbook.h \
2011-05-08 23:14:23 -07:00
gimpdockcontainer.c \
gimpdockcontainer.h \
2003-10-10 14:24:12 -07:00
gimpdocked.c \
gimpdocked.h \
2009-09-09 09:15:34 -07:00
gimpdockwindow.c \
gimpdockwindow.h \
2001-10-22 10:27:46 -07:00
gimpdocumentview.c \
gimpdocumentview.h \
2003-03-16 03:14:29 -08:00
gimpdrawabletreeview.c \
gimpdrawabletreeview.h \
2009-10-09 10:25:07 -07:00
gimpdynamicseditor.c \
gimpdynamicseditor.h \
2010-10-20 10:04:32 -07:00
gimpdynamicsfactoryview.c \
gimpdynamicsfactoryview.h \
gimpdynamicsoutputeditor.c \
gimpdynamicsoutputeditor.h \
2002-03-07 16:27:45 -08:00
gimpeditor.c \
gimpeditor.h \
2004-04-16 05:09:46 -07:00
gimpenumaction.c \
gimpenumaction.h \
2003-06-13 07:37:00 -07:00
gimperrorconsole.c \
gimperrorconsole.h \
2004-08-25 10:58:52 -07:00
gimperrordialog.c \
gimperrordialog.h \
2015-08-31 11:57:37 -07:00
gimpexportdialog.c \
gimpexportdialog.h \
2004-05-27 05:41:22 -07:00
gimpfgbgeditor.c \
gimpfgbgeditor.h \
2005-03-31 05:39:18 -08:00
gimpfgbgview.c \
gimpfgbgview.h \
2004-02-27 06:20:19 -08:00
gimpfiledialog.c \
gimpfiledialog.h \
2004-07-16 14:24:39 -07:00
gimpfileprocview.c \
gimpfileprocview.h \
2008-10-24 10:55:30 -07:00
gimpfilleditor.c \
gimpfilleditor.h \
2018-06-02 13:18:00 -07:00
gimpfontfactoryview.c \
gimpfontfactoryview.h \
2004-07-09 12:14:59 -07:00
gimpfontselect.c \
gimpfontselect.h \
2002-03-07 16:27:45 -08:00
gimpgradienteditor.c \
gimpgradienteditor.h \
2004-07-09 12:14:59 -07:00
gimpgradientselect.c \
gimpgradientselect.h \
2003-10-10 07:11:47 -07:00
gimpgrideditor.c \
gimpgrideditor.h \
2007-11-20 01:10:39 -08:00
gimphandlebar.c \
gimphandlebar.h \
2002-05-05 12:17:41 -07:00
gimphelp.c \
gimphelp.h \
2003-08-21 08:54:47 -07:00
gimphelp-ids.h \
2018-03-07 02:37:28 -08:00
gimphighlightablebutton.c \
gimphighlightablebutton.h \
2002-09-07 10:27:32 -07:00
gimphistogrambox.c \
gimphistogrambox.h \
2003-10-31 18:39:34 -08:00
gimphistogrameditor.c \
gimphistogrameditor.h \
2001-04-10 14:33:09 -07:00
gimphistogramview.c \
gimphistogramview.h \
2011-03-01 03:31:17 -08:00
gimpiconpicker.c \
gimpiconpicker.h \
2016-01-06 20:09:01 -08:00
gimpiconsizescale.c \
gimpiconsizescale.h \
2007-06-27 02:46:00 -07:00
gimpimagecommenteditor.c \
gimpimagecommenteditor.h \
2003-02-20 07:40:15 -08:00
gimpimageeditor.c \
gimpimageeditor.h \
2006-11-03 05:52:17 -08:00
gimpimageparasiteview.c \
gimpimageparasiteview.h \
2006-10-25 00:31:04 -07:00
gimpimageprofileview.c \
gimpimageprofileview.h \
2005-04-04 15:34:29 -07:00
gimpimagepropview.c \
gimpimagepropview.h \
2002-05-08 05:39:01 -07:00
gimpimageview.c \
gimpimageview.h \
2003-03-16 03:14:29 -08:00
gimpitemtreeview.c \
gimpitemtreeview.h \
2009-12-30 13:21:54 -08:00
gimplanguagecombobox.c \
gimplanguagecombobox.h \
2008-02-11 12:19:03 -08:00
gimplanguageentry.c \
gimplanguageentry.h \
2008-02-07 08:50:11 -08:00
gimplanguagestore.c \
gimplanguagestore.h \
gimplanguagestore-parser.c \
gimplanguagestore-parser.h \
2017-01-29 12:54:52 -08:00
gimplayermodebox.c \
gimplayermodebox.h \
2017-01-28 09:25:45 -08:00
gimplayermodecombobox.c \
gimplayermodecombobox.h \
2003-03-16 03:14:29 -08:00
gimplayertreeview.c \
gimplayertreeview.h \
2005-05-11 13:26:12 -07:00
gimpmenudock.c \
gimpmenudock.h \
2003-01-10 09:55:53 -08:00
gimpmenufactory.c \
gimpmenufactory.h \
2004-08-23 16:22:46 -07:00
gimpmessagebox.c \
gimpmessagebox.h \
2004-10-13 07:35:28 -07:00
gimpmessagedialog.c \
gimpmessagedialog.h \
2017-12-18 15:46:12 -08:00
gimpmeter.c \
gimpmeter.h \
2004-08-26 17:42:46 -07:00
gimpnavigationview.c \
gimpnavigationview.h \
2015-08-31 11:57:37 -07:00
gimpopendialog.c \
gimpopendialog.h \
2009-10-18 12:57:34 -07:00
gimpoverlaybox.c \
gimpoverlaybox.h \
gimpoverlaychild.c \
gimpoverlaychild.h \
2010-06-03 13:32:30 -07:00
gimpoverlaydialog.c \
gimpoverlaydialog.h \
2010-06-12 10:02:51 -07:00
gimpoverlayframe.c \
gimpoverlayframe.h \
2002-03-07 16:27:45 -08:00
gimppaletteeditor.c \
gimppaletteeditor.h \
2004-07-09 12:14:59 -07:00
gimppaletteselect.c \
gimppaletteselect.h \
2005-07-14 07:41:29 -07:00
gimppaletteview.c \
gimppaletteview.h \
2010-10-21 03:02:49 -07:00
gimppanedbox.c \
gimppanedbox.h \
2004-03-17 06:14:18 -08:00
gimppatternfactoryview.c \
gimppatternfactoryview.h \
2004-07-09 12:14:59 -07:00
gimppatternselect.c \
gimppatternselect.h \
gimppdbdialog.c \
gimppdbdialog.h \
2013-09-14 15:30:14 -07:00
gimppickablebutton.c \
gimppickablebutton.h \
2014-06-05 16:47:12 -07:00
gimppickablepopup.c \
gimppickablepopup.h \
2005-04-09 10:56:04 -07:00
gimppixbuf.c \
gimppixbuf.h \
2017-05-04 11:33:56 -07:00
gimppluginview.c \
gimppluginview.h \
2014-05-29 15:31:53 -07:00
gimppolar.c \
gimppolar.h \
2014-06-05 15:57:20 -07:00
gimppopup.c \
gimppopup.h \
2013-03-10 11:49:59 -07:00
gimpprefsbox.c \
gimpprefsbox.h \
2015-12-31 08:05:35 -08:00
gimpprocedureaction.c \
gimpprocedureaction.h \
2004-08-10 15:21:56 -07:00
gimpprogressbox.c \
gimpprogressbox.h \
2004-08-10 11:47:21 -07:00
gimpprogressdialog.c \
gimpprogressdialog.h \
2002-11-20 11:45:03 -08:00
gimppropwidgets.c \
gimppropwidgets.h \
2008-05-20 02:51:04 -07:00
gimpradioaction.c \
gimpradioaction.h \
2005-07-19 13:42:14 -07:00
gimprender.c \
gimprender.h \
2005-04-03 08:48:03 -07:00
gimpsamplepointeditor.c \
gimpsamplepointeditor.h \
2015-08-31 11:57:37 -07:00
gimpsavedialog.c \
gimpsavedialog.h \
2008-05-26 08:01:36 -07:00
gimpscalebutton.c \
gimpscalebutton.h \
2015-09-06 11:30:39 -07:00
gimpsearchpopup.c \
gimpsearchpopup.h \
2004-06-28 13:39:54 -07:00
gimpselectiondata.c \
gimpselectiondata.h \
2002-08-22 05:49:01 -07:00
gimpselectioneditor.c \
gimpselectioneditor.h \
2003-10-10 08:59:12 -07:00
gimpsessioninfo.c \
gimpsessioninfo.h \
2007-05-25 04:42:28 -07:00
gimpsessioninfo-aux.c \
gimpsessioninfo-aux.h \
gimpsessioninfo-book.c \
gimpsessioninfo-book.h \
gimpsessioninfo-dock.c \
gimpsessioninfo-dock.h \
gimpsessioninfo-dockable.c \
gimpsessioninfo-dockable.h \
2009-09-20 08:06:36 -07:00
gimpsessioninfo-private.h \
2011-05-29 23:19:53 -07:00
gimpsessionmanaged.c \
gimpsessionmanaged.h \
2008-06-13 04:56:46 -07:00
gimpsettingsbox.c \
gimpsettingsbox.h \
2008-06-22 10:31:25 -07:00
gimpsettingseditor.c \
gimpsettingseditor.h \
2004-10-12 07:59:14 -07:00
gimpsizebox.c \
gimpsizebox.h \
2010-11-01 12:03:39 -07:00
gimpspinscale.c \
gimpspinscale.h \
2004-04-16 05:09:46 -07:00
gimpstringaction.c \
gimpstringaction.h \
2003-09-26 10:33:49 -07:00
gimpstrokeeditor.c \
gimpstrokeeditor.h \
2016-01-27 10:13:17 -08:00
gimpsymmetryeditor.c \
gimpsymmetryeditor.h \
2008-12-20 06:46:54 -08:00
gimptagentry.c \
gimptagentry.h \
gimptagpopup.c \
gimptagpopup.h \
2003-04-11 06:17:23 -07:00
gimptemplateeditor.c \
gimptemplateeditor.h \
2003-04-06 04:21:56 -07:00
gimptemplateview.c \
gimptemplateview.h \
2010-02-25 08:41:10 -08:00
gimptextbuffer.c \
gimptextbuffer.h \
2010-02-25 16:22:27 -08:00
gimptextbuffer-serialize.c \
gimptextbuffer-serialize.h \
2003-02-01 13:50:21 -08:00
gimptexteditor.c \
gimptexteditor.h \
2009-06-24 10:34:36 -07:00
gimptextproxy.c \
gimptextproxy.h \
2010-02-25 16:22:27 -08:00
gimptextstyleeditor.c \
gimptextstyleeditor.h \
2010-04-03 09:02:14 -07:00
gimptexttag.c \
gimptexttag.h \
2004-02-26 05:48:42 -08:00
gimpthumbbox.c \
gimpthumbbox.h \
2008-05-20 02:51:04 -07:00
gimptoggleaction.c \
gimptoggleaction.h \
2002-03-14 09:07:02 -08:00
gimptoolbox.c \
gimptoolbox.h \
gimptoolbox-color-area.c \
gimptoolbox-color-area.h \
2003-06-06 08:14:47 -07:00
gimptoolbox-dnd.c \
gimptoolbox-dnd.h \
2004-05-31 13:30:52 -07:00
gimptoolbox-image-area.c \
gimptoolbox-image-area.h \
2002-03-14 09:07:02 -08:00
gimptoolbox-indicator-area.c \
gimptoolbox-indicator-area.h \
2009-07-21 14:51:21 -07:00
gimptooleditor.c \
gimptooleditor.h \
2003-09-29 13:26:09 -07:00
gimptooloptionseditor.c \
gimptooloptionseditor.h \
2010-11-19 14:52:09 -08:00
gimptoolpalette.c \
gimptoolpalette.h \
2010-04-03 08:25:31 -07:00
gimptoolpreseteditor.c \
gimptoolpreseteditor.h \
gimptoolpresetfactoryview.c \
gimptoolpresetfactoryview.h \
2009-12-30 14:55:26 -08:00
gimptranslationstore.c \
gimptranslationstore.h \
2004-04-21 09:33:17 -07:00
gimpuimanager.c \
gimpuimanager.h \
2003-02-20 04:47:42 -08:00
gimpundoeditor.c \
gimpundoeditor.h \
2003-03-16 03:14:29 -08:00
gimpvectorstreeview.c \
gimpvectorstreeview.h \
2004-08-24 10:16:46 -07:00
gimpview.c \
gimpview.h \
2004-08-25 15:31:44 -07:00
gimpview-popup.c \
gimpview-popup.h \
2004-10-12 05:06:50 -07:00
gimpviewablebox.c \
gimpviewablebox.h \
2003-04-10 03:34:56 -07:00
gimpviewablebutton.c \
gimpviewablebutton.h \
2002-08-30 14:00:42 -07:00
gimpviewabledialog.c \
gimpviewabledialog.h \
2004-08-25 15:31:44 -07:00
gimpviewrenderer.c \
gimpviewrenderer.h \
2004-09-27 12:40:12 -07:00
gimpviewrenderer-frame.c \
gimpviewrenderer-frame.h \
2004-08-26 07:20:30 -07:00
gimpviewrenderer-utils.c \
gimpviewrenderer-utils.h \
gimpviewrendererbrush.c \
gimpviewrendererbrush.h \
2004-09-14 05:06:28 -07:00
gimpviewrendererbuffer.c \
gimpviewrendererbuffer.h \
2004-08-26 07:20:30 -07:00
gimpviewrendererdrawable.c \
gimpviewrendererdrawable.h \
gimpviewrenderergradient.c \
gimpviewrenderergradient.h \
gimpviewrendererimage.c \
gimpviewrendererimage.h \
gimpviewrendererimagefile.c \
gimpviewrendererimagefile.h \
gimpviewrendererlayer.c \
gimpviewrendererlayer.h \
2005-07-13 13:11:24 -07:00
gimpviewrendererpalette.c \
gimpviewrendererpalette.h \
2004-08-26 07:20:30 -07:00
gimpviewrenderervectors.c \
gimpviewrenderervectors.h \
2001-05-25 09:04:54 -07:00
gimpwidgets-constructors.c \
gimpwidgets-constructors.h \
gimpwidgets-utils.c \
gimpwidgets-utils.h \
2008-04-28 09:30:55 -07:00
gimpwindow.c \
gimpwindow.h \
2012-01-30 14:33:21 -08:00
gimpwindowstrategy.c \
gimpwindowstrategy.h \
2001-04-10 14:33:09 -07:00
gtkwrapbox.c \
gtkwrapbox.h \
gtkhwrapbox.c \
2010-05-30 08:22:30 -07:00
gtkhwrapbox.h
2001-04-10 14:33:09 -07:00
2008-07-13 12:49:32 -07:00
libappwidgets_a_built_sources = widgets-enums.c
2001-04-10 14:33:09 -07:00
2002-06-07 16:00:46 -07:00
libappwidgets_a_SOURCES = \
$(libappwidgets_a_built_sources) $(libappwidgets_a_sources)
2002-03-13 06:51:48 -08:00
2003-12-12 17:35:19 -08:00
2002-03-13 06:51:48 -08:00
#
# rules to generate built sources
#
2003-02-03 05:39:55 -08:00
# setup autogeneration dependencies
2008-07-13 12:49:32 -07:00
gen_sources = xgen-wec
2002-03-13 06:51:48 -08:00
CLEANFILES = $(gen_sources)
2017-05-22 14:19:17 -07:00
xgen-wec: $(srcdir)/widgets-enums.h $(GIMP_MKENUMS) Makefile.am
2017-05-22 17:12:50 -07:00
$(AM_V_GEN) $(GIMP_MKENUMS) \
2004-10-25 10:55:25 -07:00
--fhead "#include \"config.h\"\n#include <gtk/gtk.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"widgets-enums.h\"\n#include \"gimp-intl.h\"" \
2017-05-22 17:12:50 -07:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2004-07-28 04:50:20 -07:00
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
2004-10-25 10:55:25 -07:00
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \
2017-11-29 13:27:59 -08:00
--dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ },@if ('@valueabbrev@' ne 'NULL')@\n /* Translators: this is an abbreviated version of @valueudesc@.\n Keep it short. */\n { @VALUENAME@, @valueabbrev@, NULL },@endif@" \
2008-11-06 00:28:28 -08:00
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
2017-05-22 17:12:50 -07:00
$< > $@
2017-05-22 14:19:17 -07:00
2017-06-02 07:53:44 -07:00
# copy the generated enum file back to the source directory only if it's
# changed; otherwise, only update its timestamp, so that the recipe isn't
# executed again on the next build, however, allow this to (harmlessly) fail,
# to support building from a read-only source tree.
2017-05-22 14:19:17 -07:00
$(srcdir)/widgets-enums.c: xgen-wec
$(AM_V_GEN) if ! cmp -s $< $@; then \
cp $< $@; \
else \
touch $@ 2> /dev/null \
|| true; \
fi