Commit eadd10db authored by Christian Hergert's avatar Christian Hergert

build: remove autotools

parent 98fb732d
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = \
--enable-glade-catalog \
--enable-gtk-doc \
--disable-doc-cross-references
SUBDIRS = libpeas loaders
GCOVDIRS = libpeas loaders
if ENABLE_GTK
SUBDIRS += libpeas-gtk peas-demo
GCOVDIRS += libpeas-gtk
endif
SUBDIRS += tests data po docs
dist-hook:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChangeLog >&2; \
fi
test test-report perf-report full-report: all
@cd tests && $(MAKE) $(AM_MAKEFLAGS) $(@)
if GDB_ENABLED
test-gdb: all
@cd tests && $(MAKE) $(AM_MAKEFLAGS) $(@)
else
test-gdb:
@echo "You need GDB"
endif # GDB_ENABLED
if VALGRIND_ENABLED
test-valgrind test-callgrind: all
@cd tests && $(MAKE) $(AM_MAKEFLAGS) $(@)
else
test-valgrind test-callgrind:
@echo "You need Valgrind"
endif # VALGRIND_ENABLED
demo: all
@cd peas-demo && $(MAKE) $(AM_MAKEFLAGS) $(@)
if GCOV_ENABLED
gcov: test
@for dir in $(GCOVDIRS); do \
(cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $(@)); \
done
all-local:
@find . -name "*.gcda" -delete && find . -name "*.[ch].gcov" -delete
else
gcov:
@echo "You need to reconfigure with --enable-gcov"
endif # GCOV_ENABLED
.PHONY: test test-gdb test-valgrind test-callgrind \
test-report perf-report full-report gcov demo
if GCOV_ENABLED
gcov: all
@echo ""; \
project=`basename $(abs_srcdir)`; \
total_covered=0; \
total_actual=0; \
stats_length=`expr length " 9999 / 9999 100% "`; \
filename_width=`expr 80 - 2 - $$stats_length`; \
echo -e "Test coverage for $$project:\n"; \
for file in $(filter %.c,$(gcov_sources)); do \
gcov -o .libs/$${file/.c/.gcda} $$file > /dev/null; \
if test -f $$file.gcov; then \
actual=`grep -v ' -:' $$file.gcov | wc -l`; \
uncovered=`grep '#####:' $$file.gcov | wc -l`; \
covered=$$((actual - uncovered)); \
percent=$$((($$covered * 100) / $$actual)); \
total_covered=$$((total_covered + covered)); \
total_actual=$$((total_actual + actual)); \
filename=`echo $$file: | sed "s/^\.\///g"`; \
printf " %-*s %4i / %4i %3i%%\n" $$filename_width $$filename \
$$covered $$actual $$percent; \
fi \
done; \
printf "\nSource statements: %4i" $$total_actual; \
printf "\nCovered statements: %4i" $$total_covered; \
printf "\nTotal coverage: %3i%%\n" \
$$((($$total_covered * 100) / $$total_actual))
else
gcov:
@echo "You need to reconfigure with --enable-gcov"
endif # GCOV_ENABLED
.PHONY: gcov
dnl a macro to check for ability to create python extensions
dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
dnl function also defines PYTHON_INCLUDES
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
[AC_REQUIRE([AM_PATH_PYTHON])
AC_MSG_CHECKING(for headers required to compile python extensions)
dnl deduce PYTHON_INCLUDES
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fi
AC_SUBST(PYTHON_INCLUDES)
dnl check if the headers exist:
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
AC_TRY_CPP([#include <Python.h>],dnl
[AC_MSG_RESULT(found)
$1],dnl
[AC_MSG_RESULT(not found)
$2])
CPPFLAGS="$save_CPPFLAGS"
])
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="libpeas"
(test -f $srcdir/configure.ac \
&& test -f $srcdir/README \
&& test -d $srcdir/libpeas) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
which gnome-autogen.sh || {
echo "You need to install gnome-common from GNOME Git (or from"
echo "your OS vendor's package manager)."
exit 1
}
REQUIRED_MACROS=python.m4 USE_GNOME2_MACROS=1 . gnome-autogen.sh
This diff is collapsed.
SUBDIRS=icons
if ENABLE_GLADE_CATALOG
SUBDIRS+=glade
endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libpeas-1.0.pc
if ENABLE_GTK
pkgconfig_DATA += libpeas-gtk-1.0.pc
endif
EXTRA_DIST = libpeas-1.0.pc.in libpeas-gtk-1.0.pc.in
catalogdir = $(GLADE_CATALOG_DIR)
catalog_in_files = libpeas-gtk.xml.in
catalog_DATA = $(catalog_in_files:.xml.in=.xml)
EXTRA_DIST = \
$(catalog_in_files)
validate: $(catalog_DATA)
xmllint --dtdvalid $(GLADE_CATALOG_DIR)/glade-catalog.dtd --noout $<
CLEANFILES = $(catalog_DATA)
@INTLTOOL_XML_NOMERGE_RULE@
icons16x16dir = $(datadir)/icons/hicolor/16x16/actions
icons22x22dir = $(datadir)/icons/hicolor/22x22/actions
icons32x32dir = $(datadir)/icons/hicolor/32x32/actions
scalableiconsdir = $(datadir)/icons/hicolor/scalable/actions
icons16x16_DATA = 16x16/libpeas-plugin.png
icons22x22_DATA = 22x22/libpeas-plugin.png
icons32x32_DATA = 32x32/libpeas-plugin.png
scalableicons_DATA = scalable/libpeas-plugin.svg
noinst_DATA = \
16x16/libpeas-plugin.svg \
22x22/libpeas-plugin.svg \
32x32/libpeas-plugin.svg
EXTRA_DIST = \
$(icons16x16_DATA) \
$(icons22x22_DATA) \
$(icons32x32_DATA) \
$(scalableicons_DATA) \
$(noinst_DATA)
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libpeas
Description: libpeas, a GObject plugins library
Requires: glib-2.0 >= @GLIB_REQUIRED@, gobject-2.0 >= @GLIB_REQUIRED@, gmodule-2.0 >= @GLIB_REQUIRED@, gio-2.0 >= @GIO_REQUIRED@ gobject-introspection-1.0 >= @INTROSPECTION_REQUIRED@
Version: @VERSION@
Cflags: -I${includedir}/libpeas-1.0
Libs: -L${libdir} -lpeas-1.0
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libpeas-gtk
Description: libpeas-gtk, a GObject plugins library (Gtk widgets)
Requires: glib-2.0 >= @GLIB_REQUIRED@, gtk+-3.0 >= @GTK_REQUIRED@, libpeas-1.0 >= @VERSION@
Version: @VERSION@
Cflags: -I${includedir}/libpeas-1.0
Libs: -L${libdir} -lpeas-gtk-1.0
## Process this file with automake to produce Makefile.in
# see /gtk-doc/examples/Makefile.am
# We require automake 1.6 at least.
AUTOMAKE_OPTIONS = 1.6
# The name of the module, e.g. 'glib'.
DOC_MODULE=libpeas
# The top-level SGML file. You can change this if you want to.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# documenting the functions and macros.
DOC_SOURCE_DIR=$(top_srcdir)/libpeas $(top_srcdir)/libpeas-gtk
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
SCANGOBJ_OPTIONS=
# Extra options to supply to gtkdoc-scan.
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
SCAN_OPTIONS=--deprecated-guards="PEAS_DISABLE_DEPRECATED"
# Extra options to supply to gtkdoc-mkdb.
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
MKTMPL_OPTIONS=
if ENABLE_DOC_CROSS_REFERENCES
# Extra options to supply to gtkdoc-fixref. Not normally needed.
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
FIXXREF_OPTIONS = \
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib \
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gmodule \
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gobject \
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gio \
--extra-dir=$(GTK_PREFIX)/share/gtk-doc/html/gtk
endif
# Used for dependencies. The docs will be rebuilt if any of these change.
HFILE_GLOB = \
$(top_srcdir)/libpeas/*.h \
$(top_srcdir)/libpeas-gtk/*.h
CFILE_GLOB = \
$(top_srcdir)/libpeas/*.c \
$(top_srcdir)/libpeas-gtk/*.c
# Header files to ignore when scanning (These are internal to libpeas).
IGNORE_HFILES = \
peas-debug.h \
peas-dirs.h \
peas-engine-priv.h \
peas-gtk-disable-plugins-dialog.h \
peas-gtk-plugin-manager-store.h \
peas-i18n.h \
peas-introspection.h \
peas-marshal.h \
peas-plugin-info-priv.h \
peas-plugin-loader.h \
peas-plugin-loader-c.h \
peas-utils.h
# Images to copy into HTML directory.
HTML_IMAGES = \
$(srcdir)/images/peas-gtk-plugin-manager.png
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
content_files = \
version.xml
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
# e.g. expand_content_files=running.sgml
expand_content_files=
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
# signals and properties.
GTKDOC_CFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
$(PEAS_CFLAGS) \
$(PEAS_GTK_CFLAGS)
GTKDOC_LIBS = \
$(top_builddir)/libpeas/libpeas-1.0.la \
$(top_builddir)/libpeas-gtk/libpeas-gtk-1.0.la \
$(PEAS_LIBS) \
$(PEAS_GTK_LIBS)
# This includes the standard gtk-doc make rules, copied by gtkdocize.
include $(top_srcdir)/gtk-doc.make
# Other files to distribute
EXTRA_DIST += \
version.xml.in
if ENABLE_GTK_DOC
TESTS_ENVIRONMENT = \
SRCDIR=$(abs_srcdir) \
BUILDDIR=$(abs_builddir) \
DOC_MODULE=$(DOC_MODULE) \
DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE)
check-local: $(GTKDOC_CHECK)
@$(TESTS_ENVIRONMENT) ./$(GTKDOC_CHECK)
endif
lib_LTLIBRARIES = libpeas-gtk-1.0.la
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(srcdir) \
$(PEAS_CFLAGS) \
$(PEAS_GTK_CFLAGS) \
$(GCOV_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
libpeas_gtk_1_0_la_LDFLAGS = \
$(GCOV_LDFLAGS) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic -no-undefined -export-symbols-regex "^[^_].*"
libpeas_gtk_1_0_la_LIBADD = \
$(PEAS_LIBS) \
$(PEAS_GTK_LIBS) \
$(top_builddir)/libpeas/libpeas-1.0.la
if OS_OSX
AM_CPPFLAGS += -xobjective-c
libpeas_gtk_1_0_la_LDFLAGS += -framework Cocoa
endif
INST_H_FILES = \
peas-gtk-autocleanups.h \
peas-gtk-configurable.h \
peas-gtk-plugin-manager.h \
peas-gtk-plugin-manager-view.h \
peas-gtk.h
NOINST_H_FILES = \
peas-gtk-disable-plugins-dialog.h \
peas-gtk-plugin-manager-store.h
C_FILES = \
peas-gtk-configurable.c \
peas-gtk-disable-plugins-dialog.c \
peas-gtk-plugin-manager.c \
peas-gtk-plugin-manager-store.c \
peas-gtk-plugin-manager-view.c
libpeas_gtk_1_0_la_SOURCES = \
$(INST_H_FILES) \
$(NOINST_H_FILES) \
$(C_FILES)
headerdir = $(prefix)/include/libpeas-1.0/libpeas-gtk
header_DATA = $(INST_H_FILES)
if HAVE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS = PeasGtk-1.0.gir
INTROSPECTION_SCANNER_ARGS = \
--add-include-path=$(top_builddir)/libpeas \
--c-include=libpeas-gtk/peas-gtk.h \
--warn-all
INTROSPECTION_COMPILER_ARGS = \
--includedir=$(top_srcdir)/libpeas \
--includedir=$(top_builddir)/libpeas
introspection_sources = $(INST_H_FILES) $(C_FILES)
PeasGtk-1.0.gir: libpeas-gtk-1.0.la
PeasGtk_1_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
PeasGtk_1_0_gir_CFLAGS = $(PEAS_CFLAGS) $(PEAS_GTK_CFLAGS) -I$(top_srcdir)
PeasGtk_1_0_gir_LIBS = $(top_builddir)/libpeas/libpeas-1.0.la libpeas-gtk-1.0.la
PeasGtk_1_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
PeasGtk_1_0_gir_EXPORT_PACKAGES = libpeas-gtk-1.0
PeasGtk_1_0_gir_SCANNERFLAGS = --include-uninstalled=$(top_builddir)/libpeas/Peas-1.0.gir
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES = $(gir_DATA) $(typelib_DATA)
endif
gcov_sources = $(C_FILES)
include $(top_srcdir)/Makefile.gcov
lib_LTLIBRARIES = libpeas-1.0.la
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(srcdir) \
$(PEAS_CFLAGS) \
$(IGE_MAC_CFLAGS) \
$(GCOV_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
-DDATADIR=\""$(datadir)"\" \
-DLIBDIR=\""$(libdir)"\"
libpeas_1_0_la_LDFLAGS = \
$(GCOV_LDFLAGS) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic -no-undefined -export-symbols-regex "^[^_].*"
if OS_OSX
AM_CPPFLAGS += -xobjective-c
libpeas_1_0_la_LDFLAGS += -framework Cocoa
endif
libpeas_1_0_la_LIBADD = $(PEAS_LIBS)
INST_H_FILES = \
peas-autocleanups.h \
peas-plugin-info.h \
peas-object-module.h \
peas-extension-base.h \
peas-extension.h \
peas-extension-set.h \
peas-activatable.h \
peas-engine.h \
peas.h
NOINST_H_FILES = \
peas-debug.h \
peas-dirs.h \
peas-engine-priv.h \
peas-i18n.h \
peas-introspection.h \
peas-plugin-info-priv.h \
peas-plugin-loader.h \
peas-plugin-loader-c.h \
peas-utils.h
C_FILES = \
peas-activatable.c \
peas-debug.c \
peas-dirs.c \
peas-engine.c \
peas-extension.c \
peas-extension-base.c \
peas-extension-set.c \
peas-i18n.c \
peas-introspection.c \
peas-object-module.c \
peas-plugin-info.c \
peas-plugin-loader.c \
peas-plugin-loader-c.c \
peas-utils.c
BUILT_SOURCES = \
peas-marshal.c \
peas-marshal.h
libpeas_1_0_la_SOURCES = \
$(INST_H_FILES) \
$(NOINST_H_FILES) \
$(BUILT_SOURCES) \
$(C_FILES)
headerdir = $(prefix)/include/libpeas-1.0/libpeas
header_DATA = $(INST_H_FILES)
peas-marshal.c: peas-marshal.list $(GLIB_GENMARSHAL)
$(AM_V_GEN) (echo "#include \"peas-marshal.h\"" && $(GLIB_GENMARSHAL) $< --body --prefix=peas_cclosure_marshal) > $@
peas-marshal.h: peas-marshal.list $(GLIB_GENMARSHAL)
$(AM_V_GEN) $(GLIB_GENMARSHAL) $< --header --prefix=peas_cclosure_marshal > $@
EXTRA_DIST = peas-marshal.list
CLEANFILES = $(BUILT_SOURCES)
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)
if HAVE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS = Peas-1.0.gir
INTROSPECTION_SCANNER_ARGS = \
-I$(top_srcdir) \
--c-include=libpeas/peas.h \
--warn-all
introspection_sources = $(INST_H_FILES) $(C_FILES)
Peas-1.0.gir: libpeas-1.0.la
Peas_1_0_gir_INCLUDES = GObject-2.0 GModule-2.0 Gio-2.0 GIRepository-2.0
Peas_1_0_gir_CFLAGS = $(PEAS_CFLAGS)
Peas_1_0_gir_LIBS = libpeas-1.0.la
Peas_1_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
Peas_1_0_gir_EXPORT_PACKAGES = libpeas-1.0
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += \
$(gir_DATA) \
$(typelib_DATA)
endif
gcov_sources = $(C_FILES)
include $(top_srcdir)/Makefile.gcov
SUBDIRS =
if ENABLE_LUA51
SUBDIRS += lua5.1
endif
if ENABLE_PYTHON2
SUBDIRS += python
endif
if ENABLE_PYTHON3
SUBDIRS += python3
endif
gcov:
@for dir in $(SUBDIRS); do \
(cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $(@)); \
done
# Lua 5.1 plugin loader
SUBDIRS = resources
loaderdir = $(libdir)/libpeas-1.0/loaders
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(PEAS_CFLAGS) \
$(GCOV_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(LUA51_CFLAGS)
loader_LTLIBRARIES = liblua51loader.la
liblua51loader_la_SOURCES = \
peas-lua-internal.c \
peas-lua-internal.h \
peas-plugin-loader-lua.c \
peas-plugin-loader-lua.h \
peas-lua-utils.c \
peas-lua-utils.h \
resources/peas-lua-resources.c
liblua51loader_la_LDFLAGS = \
$(LOADER_LIBTOOL_FLAGS) \
$(GCOV_LDFLAGS)
liblua51loader_la_LIBADD = \
$(top_builddir)/libpeas/libpeas-1.0.la \
$(PEAS_LIBS) \
$(LUA51_LIBS)
gcov_sources = $(liblua51loader_la_SOURCES)
include $(top_srcdir)/Makefile.gcov
loader_resources_deps = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir="$(srcdir)" --generate-dependencies "$(srcdir)/peas-lua.gresource.xml")
loader_resources_c_deps = $(srcdir)/peas-lua.gresource.xml $(loader_resources_deps)
LUAC_FILES = $(addsuffix c,$(loader_resources_deps))
peas-lua-resources.c: $(loader_resources_c_deps)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) \
--target="$@" \
--sourcedir="$(srcdir)" \
--generate-source \
--internal \
"$(srcdir)/peas-lua.gresource.xml"
%.luac: %.lua
$(AM_V_GEN) $(LUA51_BIN) $(srcdir)/peas-lua-compile.lua $< $@
all-local: $(LUAC_FILES) peas-lua-resources.c
CLEANFILES = \
peas-lua-resources.c \
$(LUAC_FILES)
EXTRA_DIST = \
peas-lua-compile.lua \
$(loader_resources_c_deps)
# Python plugin loader
loaderdir = $(libdir)/libpeas-1.0/loaders
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(PEAS_CFLAGS) \
$(GCOV_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(PYGOBJECT_CFLAGS) \
$(PYTHON2_CFLAGS) \
-DPEAS_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
loader_LTLIBRARIES = libpythonloader.la
libpythonloader_la_SOURCES = \
peas-plugin-loader-python.c \
peas-plugin-loader-python.h \
peas-python-internal.c \
peas-python-internal.h \
peas-python-resources.c
libpythonloader_la_LDFLAGS = \
$(LOADER_LIBTOOL_FLAGS) \
$(GCOV_LDFLAGS) \
$(PYTHON2_LDFLAGS)
libpythonloader_la_LIBADD = \
$(top_builddir)/libpeas/libpeas-1.0.la \
$(PEAS_LIBS) \
$(PYGOBJECT_LIBS) \
$(PYTHON2_LIBS)
peas-python-internal.pyc: peas-python-internal.py
$(AM_V_GEN) $(PYTHON2_BIN) $(srcdir)/peas-python-compile.py $< $@
all-local: peas-python-internal.pyc
loader_resources_deps = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/peas-python.gresource.xml)
loader_resources_c_deps = $(srcdir)/peas-python.gresource.xml $(loader_resources_deps)
peas-python-resources.c: $(loader_resources_c_deps)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) \
--target="$@" \
--sourcedir="$(srcdir)" \
--generate-source \
--internal \
"$(srcdir)/peas-python.gresource.xml"
EXTRA_DIST = \
peas-python-compile.py \
$(loader_resources_c_deps)
CLEANFILES = \
peas-python-internal.pyc \
peas-python-resources.c
gcov_sources = $(libpythonloader_la_SOURCES)
include $(top_srcdir)/Makefile.gcov
# Python 3 plugin loader
loaderdir = $(libdir)/libpeas-1.0/loaders
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(PEAS_CFLAGS) \
$(GCOV_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(PYGOBJECT_CFLAGS) \
$(PYTHON3_CFLAGS) \
-DPEAS_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
loader_LTLIBRARIES = libpython3loader.la