2001-01-24 11:40:15 -08:00
## Process this file with automake to produce Makefile.in
2004-01-21 19:51:46 -08:00
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
2005-02-04 13:55:06 -08:00
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
2003-05-21 14:22:22 -07:00
2002-12-22 17:51:58 -08:00
if PLATFORM_WIN32
no_undefined = -no-undefined
2015-12-29 09:43:41 -08:00
libgdi32 = -lgdi32
2002-12-22 17:51:58 -08:00
else
libm = -lm
endif
2016-05-06 16:36:23 -07:00
if PLATFORM_OSX
xobjective_c = "-xobjective-c"
2018-04-08 00:59:49 -07:00
xobjective_cxx = "-xobjective-c++"
xnone = "-xnone"
2016-05-06 16:36:23 -07:00
framework_cocoa = -framework Cocoa
endif
2002-12-22 17:51:58 -08:00
if OS_WIN32
gimpwidgets_def = gimpwidgets.def
2014-09-14 09:28:26 -07:00
libgimpwidgets_export_symbols = -export-symbols $(srcdir)/gimpwidgets.def
2002-12-22 17:51:58 -08:00
install-libtool-import-lib:
2004-01-21 19:51:46 -08:00
$(INSTALL) .libs/libgimpwidgets-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
2014-09-14 09:28:26 -07:00
$(INSTALL) $(srcdir)/gimpwidgets.def $(DESTDIR)$(libdir)
2002-12-22 17:51:58 -08:00
uninstall-libtool-import-lib:
2004-01-21 19:51:46 -08:00
-rm $(DESTDIR)$(libdir)/libgimpwidgets-$(GIMP_API_VERSION).dll.a
2003-10-09 14:33:27 -07:00
-rm $(DESTDIR)$(libdir)/gimpwidgets.def
2002-12-22 17:51:58 -08:00
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif
if MS_LIB_AVAILABLE
2004-01-21 19:51:46 -08:00
noinst_DATA = gimpwidgets-$(GIMP_API_VERSION).lib
2002-12-22 17:51:58 -08:00
install-ms-lib:
2004-01-21 19:51:46 -08:00
$(INSTALL) gimpwidgets-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
2002-12-22 17:51:58 -08:00
uninstall-ms-lib:
2004-01-21 19:51:46 -08:00
-rm $(DESTDIR)$(libdir)/gimpwidgets-$(GIMP_API_VERSION).lib
2002-12-22 17:51:58 -08:00
2004-01-21 19:51:46 -08:00
gimpwidgets-@GIMP_API_VERSION@.lib: gimpwidgets.def
lib -name:libgimpwidgets-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpwidgets.def -out:$@
2002-12-22 17:51:58 -08:00
else
install-ms-lib:
uninstall-ms-lib:
endif
2004-01-21 19:51:46 -08:00
libgimpwidgetsincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpwidgets
2001-01-24 11:40:15 -08:00
2002-06-07 16:00:46 -07:00
AM_CPPFLAGS = \
2011-04-28 05:30:41 -07:00
-DG_LOG_DOMAIN=\"LibGimpWidgets\" \
2013-06-05 11:48:37 -07:00
-DGIMP_WIDGETS_COMPILATION \
-I$(top_srcdir) \
$(GEGL_CFLAGS) \
$(GTK_CFLAGS) \
2015-05-08 16:20:50 -07:00
$(LCMS_CFLAGS) \
2018-04-07 13:39:13 -07:00
-I$(includedir)
AM_CFLAGS = \
2016-05-06 16:36:23 -07:00
$(xobjective_c)
2001-01-24 11:40:15 -08:00
2018-04-08 00:59:49 -07:00
AM_CXXFLAGS = \
$(xobjective_cxx)
AM_LDFLAGS = \
$(xnone)
2012-05-04 06:37:43 -07:00
lib_LTLIBRARIES = libgimpwidgets-@GIMP_API_VERSION@.la
2001-01-24 11:40:15 -08:00
2012-05-04 06:37:43 -07:00
libgimpwidgets_sources = \
2007-08-14 09:01:04 -07:00
gimpbrowser.c \
gimpbrowser.h \
2018-05-29 07:29:55 -07:00
gimpbusybox.c \
gimpbusybox.h \
2007-08-14 09:01:04 -07:00
gimpbutton.c \
gimpbutton.h \
2007-12-12 06:17:19 -08:00
gimpcairo-utils.c \
gimpcairo-utils.h \
2007-08-14 09:01:04 -07:00
gimpcellrenderercolor.c \
gimpcellrenderercolor.h \
gimpcellrenderertoggle.c \
gimpcellrenderertoggle.h \
gimpchainbutton.c \
gimpchainbutton.h \
gimpcolorarea.c \
gimpcolorarea.h \
gimpcolorbutton.c \
gimpcolorbutton.h \
gimpcolordisplay.c \
gimpcolordisplay.h \
gimpcolordisplaystack.c \
gimpcolordisplaystack.h \
gimpcolorhexentry.c \
gimpcolorhexentry.h \
2008-11-24 14:11:18 -08:00
gimpcolornotebook.c \
gimpcolornotebook.h \
2014-03-14 14:01:46 -07:00
gimpcolorprofilechooserdialog.c \
gimpcolorprofilechooserdialog.h \
2007-08-14 09:01:04 -07:00
gimpcolorprofilecombobox.c \
gimpcolorprofilecombobox.h \
2008-11-24 14:11:18 -08:00
gimpcolorprofilestore-private.h \
2007-08-14 09:01:04 -07:00
gimpcolorprofilestore.c \
gimpcolorprofilestore.h \
2014-03-16 08:43:23 -07:00
gimpcolorprofileview.c \
gimpcolorprofileview.h \
2007-08-14 09:01:04 -07:00
gimpcolorscale.c \
gimpcolorscale.h \
gimpcolorscales.c \
gimpcolorscales.h \
gimpcolorselect.c \
gimpcolorselect.h \
gimpcolorselection.c \
gimpcolorselection.h \
2008-11-24 14:11:18 -08:00
gimpcolorselector.c \
gimpcolorselector.h \
2007-08-14 09:01:04 -07:00
gimpcontroller.c \
gimpcontroller.h \
gimpdialog.c \
gimpdialog.h \
2009-05-17 02:33:35 -07:00
gimpeevl.c \
gimpeevl.h \
2007-08-14 09:01:04 -07:00
gimpenumcombobox.c \
gimpenumcombobox.h \
gimpenumlabel.c \
gimpenumlabel.h \
2008-11-24 14:11:18 -08:00
gimpenumstore.c \
gimpenumstore.h \
gimpenumwidgets.c \
gimpenumwidgets.h \
2007-08-14 09:01:04 -07:00
gimpfileentry.c \
gimpfileentry.h \
gimpframe.c \
gimpframe.h \
gimphelpui.c \
gimphelpui.h \
gimphintbox.c \
gimphintbox.h \
2015-12-12 11:44:46 -08:00
gimpicons.c \
gimpicons.h \
2007-08-14 09:01:04 -07:00
gimpintcombobox.c \
gimpintcombobox.h \
gimpintstore.c \
gimpintstore.h \
gimpmemsizeentry.c \
gimpmemsizeentry.h \
gimpnumberpairentry.c \
gimpnumberpairentry.h \
gimpoffsetarea.c \
gimpoffsetarea.h \
2008-11-24 14:11:18 -08:00
gimpoldwidgets.c \
gimpoldwidgets.h \
2007-08-14 09:01:04 -07:00
gimppageselector.c \
gimppageselector.h \
gimppatheditor.c \
gimppatheditor.h \
gimppickbutton.c \
gimppickbutton.h \
gimppixmap.c \
gimppixmap.h \
gimppreview.c \
gimppreview.h \
gimppreviewarea.c \
gimppreviewarea.h \
gimppropwidgets.c \
gimppropwidgets.h \
gimpquerybox.c \
gimpquerybox.h \
2008-05-26 14:20:16 -07:00
gimpruler.c \
gimpruler.h \
2008-02-14 09:02:47 -08:00
gimpscaleentry.c \
2008-02-14 09:49:53 -08:00
gimpscaleentry.h \
2007-08-14 09:01:04 -07:00
gimpscrolledpreview.c \
gimpscrolledpreview.h \
gimpsizeentry.c \
gimpsizeentry.h \
2018-11-10 03:26:46 -08:00
gimpspinbutton.c \
gimpspinbutton.h \
2007-08-14 09:01:04 -07:00
gimpstringcombobox.c \
gimpstringcombobox.h \
2010-10-14 13:15:25 -07:00
gimpunitcombobox.c \
gimpunitcombobox.h \
2007-08-14 09:01:04 -07:00
gimpunitmenu.c \
gimpunitmenu.h \
2010-10-14 13:15:25 -07:00
gimpunitstore.c \
gimpunitstore.h \
2008-11-30 13:25:02 -08:00
gimpwidgets-error.c \
gimpwidgets-error.h \
2007-08-14 09:01:04 -07:00
gimpwidgets-private.c \
2008-11-24 14:11:18 -08:00
gimpwidgets-private.h \
gimpwidgets.c \
gimpwidgets.h \
gimpwidgetsenums.h \
gimpwidgetstypes.h \
2015-05-06 13:15:30 -07:00
gimpwidgetsutils.c \
gimpwidgetsutils.h \
2008-11-24 14:11:18 -08:00
gimpzoommodel.c \
2011-09-30 01:45:00 -07:00
gimpzoommodel.h \
gimp3migration.c \
gimp3migration.h
2001-01-24 11:40:15 -08:00
2012-05-04 06:37:43 -07:00
libgimpwidgets_built_sources = \
2005-05-20 11:34:00 -07:00
gimpwidgetsenums.c \
2002-01-30 00:31:00 -08:00
gimpwidgetsmarshal.c \
2008-11-24 14:11:18 -08:00
gimpwidgetsmarshal.h
2002-01-30 00:31:00 -08:00
2012-05-04 06:37:43 -07:00
libgimpwidgets_extra_sources = gimpwidgetsmarshal.list
2002-01-30 00:31:00 -08:00
2012-05-04 06:37:43 -07:00
libgimpwidgets_@GIMP_API_VERSION@_la_SOURCES = \
$(libgimpwidgets_built_sources) \
$(libgimpwidgets_sources)
2002-01-30 00:31:00 -08:00
2002-06-07 16:00:46 -07:00
libgimpwidgetsinclude_HEADERS = \
2007-08-14 09:01:04 -07:00
gimpbrowser.h \
2018-06-08 09:58:04 -07:00
gimpbusybox.h \
2007-08-14 09:01:04 -07:00
gimpbutton.h \
2007-12-12 06:17:19 -08:00
gimpcairo-utils.h \
2007-08-14 09:01:04 -07:00
gimpcellrenderercolor.h \
gimpcellrenderertoggle.h \
gimpchainbutton.h \
gimpcolorarea.h \
gimpcolorbutton.h \
gimpcolordisplay.h \
gimpcolordisplaystack.h \
gimpcolorhexentry.h \
gimpcolornotebook.h \
2014-03-14 14:01:46 -07:00
gimpcolorprofilechooserdialog.h \
2008-11-24 14:11:18 -08:00
gimpcolorprofilecombobox.h \
gimpcolorprofilestore.h \
2014-03-16 08:43:23 -07:00
gimpcolorprofileview.h \
2007-08-14 09:01:04 -07:00
gimpcolorscale.h \
gimpcolorscales.h \
gimpcolorselect.h \
gimpcolorselection.h \
2008-11-24 14:11:18 -08:00
gimpcolorselector.h \
2007-08-14 09:01:04 -07:00
gimpcontroller.h \
gimpdialog.h \
gimpenumcombobox.h \
gimpenumlabel.h \
gimpenumstore.h \
gimpenumwidgets.h \
gimpfileentry.h \
gimpframe.h \
gimphelpui.h \
gimphintbox.h \
2015-12-12 11:44:46 -08:00
gimpicons.h \
2007-08-14 09:01:04 -07:00
gimpintcombobox.h \
gimpintstore.h \
gimpmemsizeentry.h \
gimpnumberpairentry.h \
gimpoffsetarea.h \
2008-11-24 14:11:18 -08:00
gimpoldwidgets.h \
2007-08-14 09:01:04 -07:00
gimppageselector.h \
gimppatheditor.h \
gimppickbutton.h \
gimppixmap.h \
gimppreview.h \
gimppreviewarea.h \
gimppropwidgets.h \
gimpquerybox.h \
2008-05-26 14:20:16 -07:00
gimpruler.h \
2008-02-14 09:02:47 -08:00
gimpscaleentry.h \
2007-08-14 09:01:04 -07:00
gimpscrolledpreview.h \
gimpsizeentry.h \
2018-11-19 06:27:01 -08:00
gimpspinbutton.h \
2007-08-14 09:01:04 -07:00
gimpstringcombobox.h \
2010-10-14 13:15:25 -07:00
gimpunitcombobox.h \
2007-08-14 09:01:04 -07:00
gimpunitmenu.h \
2010-10-14 13:15:25 -07:00
gimpunitstore.h \
2008-11-30 13:25:02 -08:00
gimpwidgets-error.h \
2008-11-24 14:11:18 -08:00
gimpwidgets.h \
gimpwidgetsenums.h \
gimpwidgetstypes.h \
2015-05-06 13:15:30 -07:00
gimpwidgetsutils.h \
2011-09-30 01:45:00 -07:00
gimpzoommodel.h \
gimp3migration.h
2001-01-24 11:40:15 -08:00
2012-05-04 06:37:43 -07:00
libgimpwidgets_@GIMP_API_VERSION@_la_LDFLAGS = \
2014-03-14 14:39:02 -07:00
-version-info $(LT_VERSION_INFO) \
$(no_undefined) \
2016-05-06 16:36:23 -07:00
$(libgimpwidgets_export_symbols) \
2018-04-08 00:59:49 -07:00
$(framework_cocoa) \
$(xnone)
2002-12-22 17:51:58 -08:00
2014-03-15 14:18:45 -07:00
EXTRA_libgimpwidgets_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpwidgets_def)
2014-03-14 14:39:02 -07:00
2012-05-04 06:37:43 -07:00
libgimpwidgets_@GIMP_API_VERSION@_la_LIBADD = \
2014-03-14 14:39:02 -07:00
$(libgimpbase) \
2007-08-14 09:01:04 -07:00
$(libgimpcolor) \
$(libgimpconfig) \
2012-05-02 18:36:22 -07:00
$(GEGL_LIBS) \
2007-08-14 09:01:04 -07:00
$(GTK_LIBS) \
2015-05-08 16:20:50 -07:00
$(LCMS_LIBS) \
2015-12-29 09:43:41 -08:00
$(libm) \
$(libgdi32)
2001-02-25 06:37:12 -08:00
2018-07-24 10:59:47 -07:00
BUILT_SOURCES = \
$(libgimpwidgets_built_sources)
2006-03-29 03:59:51 -08:00
EXTRA_DIST = \
2012-05-04 06:37:43 -07:00
gimpwidgets.def \
2015-03-29 12:00:11 -07:00
$(libgimpwidgets_extra_sources)
2006-03-29 04:27:29 -08:00
2015-09-26 05:27:50 -07:00
#
# platform-dependent source files
#
2015-10-04 09:11:16 -07:00
if PLATFORM_OSX_QUARTZ
2017-12-08 14:57:09 -08:00
libgimpwidgets_sources += gimppickbutton-quartz.c gimppickbutton-quartz.h
2015-09-26 05:27:50 -07:00
AM_CPPFLAGS += "-xobjective-c"
else
2017-12-08 14:57:09 -08:00
libgimpwidgets_sources += \
gimppickbutton-default.c \
gimppickbutton-default.h \
gimppickbutton-kwin.c \
gimppickbutton-kwin.h
2015-09-26 05:27:50 -07:00
endif
2006-03-29 04:27:29 -08:00
2002-01-30 00:31:00 -08:00
#
# rules to generate built sources
#
2018-04-18 11:57:03 -07:00
# setup autogeneration dependencies
2015-03-29 12:00:11 -07:00
gen_sources = xgen-wec xgen-wmh xgen-wmc
2002-01-30 00:31:00 -08:00
CLEANFILES = $(gen_sources)
2017-05-22 14:19:17 -07:00
xgen-wec: $(srcdir)/gimpwidgetsenums.h $(GIMP_MKENUMS) Makefile.am
2017-05-22 17:12:50 -07:00
$(AM_V_GEN) $(GIMP_MKENUMS) \
2013-10-14 16:58:39 -07:00
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpwidgetsenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
2017-05-22 17:12:50 -07:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2005-05-20 11:34:00 -07:00
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
2005-05-22 13:57:23 -07:00
--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_domain (type, GETTEXT_PACKAGE \"-libgimp\");\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)/gimpwidgetsenums.c: xgen-wec
$(AM_V_GEN) if ! cmp -s $< $@; then \
cp $< $@; \
else \
touch $@ 2> /dev/null \
|| true; \
fi
2005-05-20 11:34:00 -07:00
2007-06-07 06:19:44 -07:00
gimpwidgetsmarshal.h: $(srcdir)/gimpwidgetsmarshal.list
2012-10-10 00:43:56 -07:00
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --header >> xgen-wmh \
2005-05-20 11:34:00 -07:00
&& (cmp -s xgen-wmh $(@F) || cp xgen-wmh $(@F)) \
&& rm -f xgen-wmh xgen-wmh~
2002-01-30 00:31:00 -08:00
2007-06-07 06:19:44 -07:00
gimpwidgetsmarshal.c: gimpwidgetsmarshal.h
2017-08-28 13:50:25 -07:00
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --header --body >> xgen-wmc \
2005-05-20 11:34:00 -07:00
&& cp xgen-wmc $(@F) \
&& rm -f xgen-wmc xgen-wmc~
2002-01-30 00:31:00 -08:00
2004-07-29 14:08:13 -07:00
#
2007-05-31 06:18:13 -07:00
# test programs, not installed
2004-07-29 14:08:13 -07:00
#
2009-05-17 02:33:35 -07:00
EXTRA_PROGRAMS = \
test-preview-area \
test-eevl
2004-07-29 14:08:13 -07:00
2016-06-01 16:50:16 -07:00
test_preview_area_SOURCES = test-preview-area.c
2004-07-29 14:08:13 -07:00
test_preview_area_LDADD = \
2014-03-14 14:39:02 -07:00
$(GTK_LIBS) \
2014-03-20 03:06:56 -07:00
$(libgimpbase) \
$(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
2004-07-29 14:08:13 -07:00
2009-05-17 02:33:35 -07:00
test_eevl_SOURCES = \
test-eevl.c
test_eevl_LDADD = \
2014-03-14 14:39:02 -07:00
$(GLIB_LIBS) \
2014-03-20 03:06:56 -07:00
$(libgimpcolor) \
$(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
2009-05-17 02:33:35 -07:00
#
# test programs, not to be built by default and never installed
#
TESTS = test-eevl$(EXEEXT)
CLEANFILES += $(EXTRA_PROGRAMS)
2004-07-29 14:08:13 -07:00
2002-12-22 17:51:58 -08:00
install-data-local: install-ms-lib install-libtool-import-lib
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib