Gimp/libgimp/Makefile.am
Jehan 826c09b629 libgimp: keep gimplegacy as introspectable, at least temporarily.
Recent commits broke the Python plug-ins again because the old API is
not introspected anymore. Of course, by release of GIMP 3, we should
probably remove this deprecated API from introspection. But first, we
have to figure out how and if the new API can be used in bindings.
2019-07-31 11:18:00 +02:00

268 lines
7.6 KiB
Makefile

## Process this file with automake to produce Makefile.in
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
libgimp = ./libgimp-$(GIMP_API_VERSION).la
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if PLATFORM_OSX
xobjective_c = "-xobjective-c"
xobjective_cxx = "-xobjective-c++"
xnone = "-xnone"
framework_cocoa = -framework Cocoa
endif
if OS_WIN32
if HAVE_EXCHNDL
exchndl = -lexchndl
endif
gimp_def = gimp.def
gimpui_def = gimpui.def
libgimp_export_symbols = -export-symbols $(srcdir)/gimp.def
libgimpui_export_symbols = -export-symbols $(srcdir)/gimpui.def
install-libtool-import-lib:
$(INSTALL) .libs/libgimp-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
$(INSTALL) .libs/libgimpui-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
$(INSTALL) $(srcdir)/gimp.def $(DESTDIR)$(libdir)
$(INSTALL) $(srcdir)/gimpui.def $(DESTDIR)$(libdir)
uninstall-libtool-import-lib:
-rm $(DESTDIR)$(libdir)/libgimp-$(GIMP_API_VERSION).dll.a
-rm $(DESTDIR)$(libdir)/libgimpui-$(GIMP_API_VERSION).dll.a
-rm $(DESTDIR)$(libdir)/gimp.def
-rm $(DESTDIR)$(libdir)/gimpui.def
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif
if MS_LIB_AVAILABLE
noinst_DATA = gimp-$(GIMP_API_VERSION).lib gimpui-$(GIMP_API_VERSION).lib
install-ms-lib:
$(INSTALL) gimp-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
$(INSTALL) gimpui-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
uninstall-ms-lib:
-rm $(DESTDIR)$(libdir)/gimp-$(GIMP_API_VERSION).lib
-rm $(DESTDIR)$(libdir)/gimpui-$(GIMP_API_VERSION).lib
gimp-@GIMP_API_VERSION@.lib: gimp.def
lib -name:libgimp-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimp.def -out:$@
gimpui-@GIMP_API_VERSION@.lib: gimpui.def
lib -name:libgimpui-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpui.def -out:$@
else
install-ms-lib:
uninstall-ms-lib:
endif
gimpincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimp
AM_CPPFLAGS = \
-DGIMPDIR=\""$(gimpdir)"\" \
-DGIMP_USER_VERSION=\"$(GIMP_USER_VERSION)\" \
-DG_LOG_DOMAIN=\"LibGimp\" \
-DGIMP_COMPILATION \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
$(GEGL_CFLAGS) \
$(GEXIV2_CFLAGS) \
-I$(includedir)
AM_CFLAGS = \
$(xobjective_c)
AM_CXXFLAGS = \
$(xobjective_cxx)
AM_LDFLAGS = \
$(xnone)
lib_LTLIBRARIES = libgimp-@GIMP_API_VERSION@.la libgimpui-@GIMP_API_VERSION@.la
# Add all sources which are introspectable in this file for reuse.
AUTOMAKE_OPTIONS = subdir-objects
include $(top_srcdir)/libgimp/Makefile.gi
libgimp_sources = \
$(libgimp_introspectable) \
gimptilebackendplugin.c \
gimptilebackendplugin.h \
gimpunitcache.c \
gimpunitcache.h \
stdplugins-intl.h \
libgimp-intl.h
libgimp_built_sources = \
gimpenums.c
libgimp_private_sources = \
gimpgpcompat.c \
gimpgpcompat.h \
gimpgpparams.c \
gimpgpparams.h \
gimpplugin-private.c \
gimpplugin-private.h \
gimp-private.h \
gimpprocedure-private.c \
gimpprocedure-private.h
libgimp_extra_sources = \
gimpenums.c.tail \
gimpgpparams-body.c
libgimp_@GIMP_API_VERSION@_la_SOURCES = \
$(libgimp_built_sources) \
$(libgimp_private_sources) \
$(libgimp_sources)
libgimpui_sources = \
$(libgimpui_introspectable)
libgimpui_built_sources = \
gimpuimarshal.c \
gimpuimarshal.h
libgimpui_extra_sources = gimpuimarshal.list
libgimpui_@GIMP_API_VERSION@_la_SOURCES = \
$(libgimpui_built_sources) \
$(libgimpui_sources)
gimpinclude_HEADERS = \
gimp.h \
gimptypes.h \
gimpenums.h \
${PDB_WRAPPERS_H} \
gimpbrushselect.h \
gimpchannel.h \
gimpdrawable.h \
gimpfontselect.h \
gimpgimprc.h \
gimpgradientselect.h \
gimpimage.h \
gimpimagecolorprofile.h \
gimplayer.h \
gimplegacy.h \
gimppaletteselect.h \
gimpparamspecs.h \
gimppatternselect.h \
gimpplugin.h \
gimpproceduraldb.h \
gimpprogress.h \
gimpselection.h \
\
gimpui.h \
gimpuitypes.h \
gimpaspectpreview.h \
gimpbrushselectbutton.h \
gimpdrawablepreview.h \
gimpexport.h \
gimpfontselectbutton.h \
gimpgradientselectbutton.h \
gimpimagecombobox.h \
gimpimagemetadata.h \
gimpitemcombobox.h \
gimppaletteselectbutton.h \
gimppatternselectbutton.h \
gimppixbuf.h \
gimpprocbrowserdialog.h \
gimpprocview.h \
gimpprogressbar.h \
gimpselectbutton.h \
gimpzoompreview.h
libgimp_@GIMP_API_VERSION@_la_LDFLAGS = \
-version-info $(LT_VERSION_INFO) \
$(no_undefined) \
$(libgimp_export_symbols) \
$(framework_cocoa) \
$(xnone)
EXTRA_libgimp_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimp_def)
libgimp_@GIMP_API_VERSION@_la_LIBADD = \
$(libgimpconfig) \
$(libgimpcolor) \
$(libgimpbase) \
$(exchndl) \
$(CAIRO_LIBS) \
$(GEGL_LIBS) \
$(GDK_PIXBUF_LIBS) \
$(RT_LIBS)
libgimpui_@GIMP_API_VERSION@_la_LDFLAGS = \
-version-info $(LT_VERSION_INFO) \
$(no_undefined) \
$(libgimpui_export_symbols) \
$(framework_cocoa) \
$(xnone)
EXTRA_libgimpui_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpui_def)
libgimpui_@GIMP_API_VERSION@_la_LIBADD = \
$(libgimp) \
$(libgimpwidgets) \
$(libgimpcolor) \
$(libgimpbase) \
$(libgimpmodule) \
$(GTK_LIBS) \
$(GEXIV2_LIBS) \
$(RT_LIBS)
BUILT_SOURCES = \
$(libgimp_built_sources) \
$(libgimpui_built_sources)
EXTRA_DIST = \
COPYING \
gimp.def \
gimpui.def \
$(libgimp_extra_sources) \
$(libgimpui_extra_sources)
install-data-local: install-ms-lib install-libtool-import-lib
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
#
# rules to generate built sources
#
# setup autogeneration dependencies
gen_sources = xgen-cec xgen-umh xgen-umc
CLEANFILES = $(gen_sources)
gimpenums.c: $(srcdir)/gimpenums.h $(srcdir)/gimpenums.c.tail $(GIMP_MKENUMS) Makefile.am
$(AM_V_GEN) $(GIMP_MKENUMS) \
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include <gegl.h>\n#undef GIMP_DISABLE_DEPRECATED\n#include \"libgimpbase/gimpbase.h\"\n#include \"libgimpbase/gimpbase-private.h\"\n#include \"libgimpconfig/gimpconfigenums.h\"\n#include \"gimpenums.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \
--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@" \
--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" \
$< > xgen-cec \
&& cat $(srcdir)/gimpenums.c.tail >> xgen-cec \
&& cp xgen-cec $(@F) \
&& rm -f xgen-cec
gimpuimarshal.h: $(srcdir)/gimpuimarshal.list
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_gimpui_marshal $(srcdir)/gimpuimarshal.list --header >> xgen-umh \
&& (cmp -s xgen-umh $(@F) || cp xgen-umh $(@F)) \
&& rm -f xgen-umh xgen-umh~
gimpuimarshal.c: gimpuimarshal.h
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_gimpui_marshal $(srcdir)/gimpuimarshal.list --header --body >> xgen-umc \
&& cp xgen-umc $(@F) \
&& rm -f xgen-umc xgen-umc~