2001-01-25 03:40:15 +08:00
## Process this file with automake to produce Makefile.in
2004-01-22 11:51:46 +08:00
libgimpbase = $( top_builddir) /libgimpbase/libgimpbase-$( GIMP_API_VERSION) .la
libgimpcolor = $( top_builddir) /libgimpcolor/libgimpcolor-$( GIMP_API_VERSION) .la
2005-02-05 05:55:06 +08:00
libgimpconfig = $( top_builddir) /libgimpconfig/libgimpconfig-$( GIMP_API_VERSION) .la
2003-05-22 05:22:22 +08:00
2002-12-23 09:51:58 +08:00
i f P L A T F O R M _ W I N 3 2
no_undefined = -no-undefined
2015-12-30 01:43:41 +08:00
libgdi32 = -lgdi32
2002-12-23 09:51:58 +08:00
e l s e
libm = -lm
e n d i f
2016-05-07 07:36:23 +08:00
i f P L A T F O R M _ O S X
xobjective_c = "-xobjective-c"
2018-04-08 15:59:49 +08:00
xobjective_cxx = "-xobjective-c++"
xnone = "-xnone"
2016-05-07 07:36:23 +08:00
framework_cocoa = -framework Cocoa
e n d i f
2002-12-23 09:51:58 +08:00
i f O S _ W I N 3 2
gimpwidgets_def = gimpwidgets.def
2014-09-15 00:28:26 +08:00
libgimpwidgets_export_symbols = -export-symbols $( srcdir) /gimpwidgets.def
2002-12-23 09:51:58 +08:00
install-libtool-import-lib :
2004-01-22 11:51:46 +08:00
$( INSTALL) .libs/libgimpwidgets-$( GIMP_API_VERSION) .dll.a $( DESTDIR) $( libdir)
2014-09-15 00:28:26 +08:00
$( INSTALL) $( srcdir) /gimpwidgets.def $( DESTDIR) $( libdir)
2002-12-23 09:51:58 +08:00
uninstall-libtool-import-lib :
2004-01-22 11:51:46 +08:00
-rm $( DESTDIR) $( libdir) /libgimpwidgets-$( GIMP_API_VERSION) .dll.a
2003-10-10 05:33:27 +08:00
-rm $( DESTDIR) $( libdir) /gimpwidgets.def
2002-12-23 09:51:58 +08:00
e l s e
install-libtool-import-lib :
uninstall-libtool-import-lib :
e n d i f
i f M S _ L I B _ A V A I L A B L E
2004-01-22 11:51:46 +08:00
noinst_DATA = gimpwidgets-$( GIMP_API_VERSION) .lib
2002-12-23 09:51:58 +08:00
install-ms-lib :
2004-01-22 11:51:46 +08:00
$( INSTALL) gimpwidgets-$( GIMP_API_VERSION) .lib $( DESTDIR) $( libdir)
2002-12-23 09:51:58 +08:00
uninstall-ms-lib :
2004-01-22 11:51:46 +08:00
-rm $( DESTDIR) $( libdir) /gimpwidgets-$( GIMP_API_VERSION) .lib
2002-12-23 09:51:58 +08:00
2004-01-22 11: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-23 09:51:58 +08:00
e l s e
install-ms-lib :
uninstall-ms-lib :
e n d i f
2004-01-22 11:51:46 +08:00
libgimpwidgetsincludedir = $( includedir) /gimp-$( GIMP_API_VERSION) /libgimpwidgets
2001-01-25 03:40:15 +08:00
2002-06-08 07:00:46 +08:00
AM_CPPFLAGS = \
2011-04-28 20:30:41 +08:00
-DG_LOG_DOMAIN= \" LibGimpWidgets\" \
2013-06-06 02:48:37 +08:00
-DGIMP_WIDGETS_COMPILATION \
2021-07-06 19:26:24 +08:00
-DDATAROOTDIR= \" " $( datarootdir) " \" \
2013-06-06 02:48:37 +08:00
-I$( top_srcdir) \
$( GEGL_CFLAGS) \
$( GTK_CFLAGS) \
2015-05-09 07:20:50 +08:00
$( LCMS_CFLAGS) \
2018-04-08 04:39:13 +08:00
-I$( includedir)
AM_CFLAGS = \
2016-05-07 07:36:23 +08:00
$( xobjective_c)
2001-01-25 03:40:15 +08:00
2018-04-08 15:59:49 +08:00
AM_CXXFLAGS = \
$( xobjective_cxx)
AM_LDFLAGS = \
$( xnone)
2012-05-04 21:37:43 +08:00
lib_LTLIBRARIES = libgimpwidgets-@GIMP_API_VERSION@.la
2001-01-25 03:40:15 +08:00
2019-07-30 07:46:04 +08:00
AUTOMAKE_OPTIONS = subdir-objects
i n c l u d e $( top_srcdir ) / l i b g i m p w i d g e t s / M a k e f i l e . g i
2012-05-04 21:37:43 +08:00
libgimpwidgets_sources = \
2008-11-25 06:11:18 +08:00
gimpcolorprofilestore-private.h \
2007-08-15 00:01:04 +08:00
gimpcolorscale.c \
gimpcolorscale.h \
gimpcolorscales.c \
gimpcolorscales.h \
gimpcolorselect.c \
gimpcolorselect.h \
gimpcontroller.c \
gimpcontroller.h \
2009-05-17 17:33:35 +08:00
gimpeevl.c \
gimpeevl.h \
2010-12-29 23:20:00 +08:00
gimppickbutton-private.h \
2007-08-15 00:01:04 +08:00
gimpwidgets-private.c \
2008-11-25 06:11:18 +08:00
gimpwidgets-private.h \
2019-07-30 07:46:04 +08:00
$( libgimpwidgets_introspectable)
2001-01-25 03:40:15 +08:00
2012-05-04 21:37:43 +08:00
libgimpwidgets_built_sources = \
2018-05-28 23:25:18 +08:00
gimp-color-picker-cursors.c \
gimp-color-picker-cursors.h \
2018-06-14 02:02:05 +08:00
gimp-icon-pixbufs.c \
gimp-icon-pixbufs.h \
2018-05-28 23:25:18 +08:00
gimpwidgetsenums.c \
gimpwidgetsmarshal.c \
2008-11-25 06:11:18 +08:00
gimpwidgetsmarshal.h
2002-01-30 16:31:00 +08:00
2012-05-04 21:37:43 +08:00
libgimpwidgets_extra_sources = gimpwidgetsmarshal.list
2002-01-30 16:31:00 +08:00
2012-05-04 21:37:43 +08:00
l i b g i m p w i d g e t s _ @ G I M P _ A P I _ V E R S I O N @ _la_SOURCES = \
$( libgimpwidgets_built_sources) \
$( libgimpwidgets_sources)
2002-01-30 16:31:00 +08:00
2002-06-08 07:00:46 +08:00
libgimpwidgetsinclude_HEADERS = \
2007-08-15 00:01:04 +08:00
gimpcolorscale.h \
gimpcolorscales.h \
gimpcolorselect.h \
gimpcontroller.h \
2019-07-30 07:46:04 +08:00
$( libgimpwidgets_introspectable_headers)
2001-01-25 03:40:15 +08:00
2012-05-04 21:37:43 +08:00
l i b g i m p w i d g e t s _ @ G I M P _ A P I _ V E R S I O N @ _la_LDFLAGS = \
2014-03-15 05:39:02 +08:00
-version-info $( LT_VERSION_INFO) \
$( no_undefined) \
2016-05-07 07:36:23 +08:00
$( libgimpwidgets_export_symbols) \
2018-04-08 15:59:49 +08:00
$( framework_cocoa) \
$( xnone)
2002-12-23 09:51:58 +08:00
2014-03-16 05:18:45 +08:00
E X T R A _ l i b g i m p w i d g e t s _ @ G I M P _ A P I _ V E R S I O N @ _la_DEPENDENCIES = $( gimpwidgets_def)
2014-03-15 05:39:02 +08:00
2012-05-04 21:37:43 +08:00
l i b g i m p w i d g e t s _ @ G I M P _ A P I _ V E R S I O N @ _la_LIBADD = \
2014-03-15 05:39:02 +08:00
$( libgimpbase) \
2007-08-15 00:01:04 +08:00
$( libgimpcolor) \
$( libgimpconfig) \
2012-05-03 09:36:22 +08:00
$( GEGL_LIBS) \
2007-08-15 00:01:04 +08:00
$( GTK_LIBS) \
2015-05-09 07:20:50 +08:00
$( LCMS_LIBS) \
2015-12-30 01:43:41 +08:00
$( libm) \
$( libgdi32)
2001-02-25 22:37:12 +08:00
2018-07-25 01:59:47 +08:00
BUILT_SOURCES = \
$( libgimpwidgets_built_sources)
2006-03-29 19:59:51 +08:00
EXTRA_DIST = \
2012-05-04 21:37:43 +08:00
gimpwidgets.def \
2015-03-30 03:00:11 +08:00
$( libgimpwidgets_extra_sources)
2006-03-29 20:27:29 +08:00
2015-09-26 20:27:50 +08:00
#
# platform-dependent source files
#
2015-10-05 00:11:16 +08:00
i f P L A T F O R M _ O S X _ Q U A R T Z
2017-12-09 06:57:09 +08:00
libgimpwidgets_sources += gimppickbutton-quartz.c gimppickbutton-quartz.h
2015-09-26 20:27:50 +08:00
AM_CPPFLAGS += "-xobjective-c"
e l s e
2017-12-09 06:57:09 +08:00
libgimpwidgets_sources += \
gimppickbutton-default.c \
gimppickbutton-default.h \
gimppickbutton-kwin.c \
gimppickbutton-kwin.h
2015-09-26 20:27:50 +08:00
e n d i f
2006-03-29 20:27:29 +08:00
2002-01-30 16:31:00 +08:00
#
# rules to generate built sources
#
2018-04-19 02:57:03 +08:00
# setup autogeneration dependencies
2018-05-31 14:56:07 +08:00
gen_sources = \
gimp-color-picker-cursors.c \
gimp-color-picker-cursors.h \
2018-06-14 02:02:05 +08:00
gimp-icon-pixbufs.c \
gimp-icon-pixbufs.h \
2018-05-31 14:56:07 +08:00
xgen-wec \
xgen-wmh \
xgen-wmc
2018-06-14 02:02:05 +08:00
2002-01-30 16:31:00 +08:00
CLEANFILES = $( gen_sources)
2017-05-23 05:19:17 +08:00
xgen-wec : $( srcdir ) /gimpwidgetsenums .h $( GIMP_MKENUMS ) Makefile .am
2017-05-23 08:12:50 +08:00
$( AM_V_GEN) $( GIMP_MKENUMS) \
2013-10-15 07:58:39 +08: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-23 08:12:50 +08:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2005-05-21 02:34:00 +08:00
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
2005-05-23 04:57:23 +08:00
--vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \
2017-11-30 05: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 16: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-23 08:12:50 +08:00
$< > $@
2017-05-23 05:19:17 +08:00
2017-06-02 22:53:44 +08: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-23 05:19:17 +08:00
$(srcdir)/gimpwidgetsenums.c : xgen -wec
$( AM_V_GEN) if ! cmp -s $< $@ ; then \
cp $< $@ ; \
else \
touch $@ 2> /dev/null \
|| true; \
fi
2005-05-21 02:34:00 +08:00
2007-06-07 21:19:44 +08:00
gimpwidgetsmarshal.h : $( srcdir ) /gimpwidgetsmarshal .list
2012-10-10 15:43:56 +08:00
$( AM_V_GEN) $( GLIB_GENMARSHAL) --prefix= _gimp_widgets_marshal $( srcdir) /gimpwidgetsmarshal.list --header >> xgen-wmh \
2005-05-21 02:34:00 +08:00
&& ( cmp -s xgen-wmh $( @F) || cp xgen-wmh $( @F) ) \
&& rm -f xgen-wmh xgen-wmh~
2002-01-30 16:31:00 +08:00
2007-06-07 21:19:44 +08:00
gimpwidgetsmarshal.c : gimpwidgetsmarshal .h
2021-04-18 04:49:59 +08:00
$( AM_V_GEN) $( GLIB_GENMARSHAL) --prefix= _gimp_widgets_marshal $( srcdir) /gimpwidgetsmarshal.list --prototypes --body >> xgen-wmc \
2005-05-21 02:34:00 +08:00
&& cp xgen-wmc $( @F) \
&& rm -f xgen-wmc xgen-wmc~
2002-01-30 16:31:00 +08:00
2018-05-28 23:25:18 +08:00
gimp-color-picker-cursors.h : $( top_builddir ) /cursors /gimp -color -picker -cursors .gresource .xml
2018-08-12 22:08:41 +08:00
$( AM_V_GEN) $( HOST_GLIB_COMPILE_RESOURCES) \
2018-05-28 23:25:18 +08:00
--sourcedir= $( top_srcdir) /cursors --generate-header \
--target= $@ $( top_builddir) /cursors/gimp-color-picker-cursors.gresource.xml
gimp-color-picker-cursors.c : gimp -color -picker -cursors .h
2018-08-12 22:08:41 +08:00
$( AM_V_GEN) $( HOST_GLIB_COMPILE_RESOURCES) \
2018-05-28 23:25:18 +08:00
--sourcedir= $( top_srcdir) /cursors --generate-source \
--target= $@ $( top_builddir) /cursors/gimp-color-picker-cursors.gresource.xml
2018-06-14 02:02:05 +08:00
gimp-icon-pixbufs.h : $( top_builddir ) /icons /Color /gimp -icon -pixbufs .gresource .xml
2018-08-12 22:08:41 +08:00
$( AM_V_GEN) $( HOST_GLIB_COMPILE_RESOURCES) \
2018-06-14 02:02:05 +08:00
--sourcedir= $( top_srcdir) /icons/Color --generate-header \
--target= $@ $( top_builddir) /icons/Color/gimp-icon-pixbufs.gresource.xml
gimp-icon-pixbufs.c : gimp -icon -pixbufs .h
2018-08-12 22:08:41 +08:00
$( AM_V_GEN) $( HOST_GLIB_COMPILE_RESOURCES) \
2018-06-14 02:02:05 +08:00
--sourcedir= $( top_srcdir) /icons/Color --generate-source \
--target= $@ $( top_builddir) /icons/Color/gimp-icon-pixbufs.gresource.xml
2004-07-30 05:08:13 +08:00
#
2007-05-31 21:18:13 +08:00
# test programs, not installed
2004-07-30 05:08:13 +08:00
#
2009-05-17 17:33:35 +08:00
EXTRA_PROGRAMS = \
test-preview-area \
test-eevl
2004-07-30 05:08:13 +08:00
2016-06-02 07:50:16 +08:00
test_preview_area_SOURCES = test-preview-area.c
2004-07-30 05:08:13 +08:00
test_preview_area_LDADD = \
2014-03-15 05:39:02 +08:00
$( GTK_LIBS) \
2014-03-20 18:06:56 +08:00
$( libgimpbase) \
$( top_builddir) /libgimpwidgets/libgimpwidgets-$( GIMP_API_VERSION) .la
2004-07-30 05:08:13 +08:00
2009-05-17 17:33:35 +08:00
test_eevl_SOURCES = \
test-eevl.c
test_eevl_LDADD = \
2014-03-15 05:39:02 +08:00
$( GLIB_LIBS) \
2014-03-20 18:06:56 +08:00
$( libgimpcolor) \
$( top_builddir) /libgimpwidgets/libgimpwidgets-$( GIMP_API_VERSION) .la
2009-05-17 17:33:35 +08:00
#
# test programs, not to be built by default and never installed
#
TESTS = test-eevl$( EXEEXT)
CLEANFILES += $( EXTRA_PROGRAMS)
2004-07-30 05:08:13 +08:00
2002-12-23 09:51:58 +08:00
install-data-local : install -ms -lib install -libtool -import -lib
uninstall-local : uninstall -ms -lib uninstall -libtool -import -lib