gimpthumb-enums.c is a built source from the header. No need to scan it. As a side effect, it fixes another build break as it could not recognize the construction rule for this file. Thanks to tmanni for raising these build issues.
129 lines
3.3 KiB
Makefile
129 lines
3.3 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(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
|
|
gimpthumb_def = gimpthumb.def
|
|
libgimpthumb_export_symbols = -export-symbols $(srcdir)/gimpthumb.def
|
|
|
|
install-libtool-import-lib:
|
|
$(INSTALL) .libs/libgimpthumb-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
|
|
$(INSTALL) $(srcdir)/gimpthumb.def $(DESTDIR)$(libdir)
|
|
|
|
uninstall-libtool-import-lib:
|
|
-rm $(DESTDIR)$(libdir)/libgimpthumb-$(GIMP_API_VERSION).dll.a
|
|
-rm $(DESTDIR)$(libdir)/gimpthumb.def
|
|
else
|
|
install-libtool-import-lib:
|
|
uninstall-libtool-import-lib:
|
|
endif
|
|
|
|
if MS_LIB_AVAILABLE
|
|
noinst_DATA = gimpthumb-$(GIMP_API_VERSION).lib
|
|
|
|
install-ms-lib:
|
|
$(INSTALL) gimpthumb-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
|
|
|
|
uninstall-ms-lib:
|
|
-rm $(DESTDIR)$(libdir)/gimpthumb-$(GIMP_API_VERSION).lib
|
|
|
|
gimpthumb-@GIMP_API_VERSION@.lib: gimpthumb.def
|
|
lib -name:libgimpthumb-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpthumb.def -out:$@
|
|
|
|
else
|
|
install-ms-lib:
|
|
uninstall-ms-lib:
|
|
endif
|
|
|
|
libgimpthumbincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpthumb
|
|
|
|
AM_CPPFLAGS = \
|
|
-DG_LOG_DOMAIN=\"LibGimpThumb\" \
|
|
-DGIMP_THUMB_COMPILATION \
|
|
-I$(top_srcdir) \
|
|
$(GDK_PIXBUF_CFLAGS) \
|
|
$(GIO_CFLAGS) \
|
|
-I$(includedir)
|
|
|
|
AM_CFLAGS = \
|
|
$(xobjective_c)
|
|
|
|
AM_CXXFLAGS = \
|
|
$(xobjective_cxx)
|
|
|
|
AM_LDFLAGS = \
|
|
$(xnone)
|
|
|
|
EXTRA_DIST = \
|
|
gimpthumb.def
|
|
|
|
lib_LTLIBRARIES = libgimpthumb-@GIMP_API_VERSION@.la
|
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
include $(top_srcdir)/libgimpthumb/Makefile.gi
|
|
|
|
libgimpthumb_@GIMP_API_VERSION@_la_SOURCES = \
|
|
gimpthumb.h \
|
|
gimpthumb-enums.c \
|
|
$(libgimpthumb_introspectable)
|
|
|
|
libgimpthumbinclude_HEADERS = \
|
|
gimpthumb.h \
|
|
$(libgimpthumb_introspectable_headers)
|
|
|
|
libgimpthumb_@GIMP_API_VERSION@_la_LDFLAGS = \
|
|
-version-info $(LT_VERSION_INFO) \
|
|
$(no_undefined) \
|
|
$(libgimpbase) \
|
|
$(libgimpthumb_export_symbols) \
|
|
$(framework_cocoa) \
|
|
$(xnone)
|
|
|
|
libgimpthumb_@GIMP_API_VERSION@_la_LIBADD = \
|
|
$(GDK_PIXBUF_LIBS) \
|
|
$(GIO_LIBS)
|
|
|
|
|
|
noinst_PROGRAMS = gimp-thumbnail-list
|
|
|
|
gimp_thumbnail_list_SOURCES = gimp-thumbnail-list.c
|
|
|
|
gimp_thumbnail_list_LDADD = \
|
|
libgimpthumb-$(GIMP_API_VERSION).la \
|
|
$(GDK_PIXBUF_LIBS) \
|
|
$(GIO_LIBS)
|
|
|
|
|
|
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-tec
|
|
CLEANFILES = $(gen_sources)
|
|
|
|
gimpthumb-enums.c: $(srcdir)/gimpthumb-enums.h $(GIMP_MKENUMS) Makefile.am
|
|
$(AM_V_GEN) $(GIMP_MKENUMS) \
|
|
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"gimpthumb-enums.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@, @valuedesc@, \"@valuenick@\" }," \
|
|
--vtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n type = g_@type@_register_static (\"@EnumName@\", values);\n\n return type;\n}\n" \
|
|
$< > xgen-tec \
|
|
&& cp xgen-tec $(@F) \
|
|
&& rm -f xgen-tec
|