Commit d2af7d20 authored by Christoph Reiter's avatar Christoph Reiter 馃悕

Drop autotools build system

parent 72c670ce
Pipeline #67979 passed with stages
in 5 minutes and 10 seconds
......@@ -34,30 +34,6 @@ fedora-x86_64-meson:
- "${CI_PROJECT_DIR}/_build/meson-logs"
- public
fedora-x86_64-autotools:
stage: build
variables:
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
CCACHE_DIR: "${CI_PROJECT_DIR}/_ccache"
CFLAGS: "-Werror"
script:
- sed -i 's|\[glib-2\.0 >= [0-9.]*\]|[glib-2.0 >= 1.0]|' configure.ac
- mkdir _build
- cd _build
- ../autogen.sh --with-python=python3 --enable-gtk-doc --enable-doctool
- make -j4
- make check
- python3 -m pip install --user flake8
- make check.quality
artifacts:
when: on_failure
name: "gi-_${CI_COMMIT_REF_NAME}"
paths:
- "_build/*.log"
- "_build/*/*.log"
- "_build/*/*/*.log"
- "_build/*/*/*/*.log"
msys2-mingw32-meson:
stage: build
tags:
......@@ -74,22 +50,6 @@ msys2-mingw32-meson:
paths:
- _build/meson-logs
msys2-mingw32-autotools:
stage: build
tags:
- win32
variables:
MSYSTEM: "MINGW32"
CHERE_INVOKING: "yes"
script:
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
- C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2-autotools.sh"
artifacts:
when: on_failure
name: "gi-_%CI_COMMIT_REF_NAME%"
paths:
- _build/meson-logs
vs2017-x64-meson:
stage: build
tags:
......
#!/bin/bash
set -e
export PATH="/c/msys64/$MSYSTEM/bin:$PATH"
if [[ "$MSYSTEM" == "MINGW32" ]]; then
export MSYS2_ARCH="i686"
else
export MSYS2_ARCH="x86_64"
fi
pacman --noconfirm -Suy
pacman --noconfirm -S --needed \
base-devel \
autoconf-archive \
mingw-w64-$MSYS2_ARCH-toolchain \
mingw-w64-$MSYS2_ARCH-python3 \
mingw-w64-$MSYS2_ARCH-libffi \
mingw-w64-$MSYS2_ARCH-cairo \
mingw-w64-$MSYS2_ARCH-glib2 \
mingw-w64-$MSYS2_ARCH-gtk-doc
./autogen.sh
make -j6
make -j6 check
EXTRA_LTLIBRARIES += libcmph.la
libcmph_la_CPPFLAGS = -Icmph $(GLIB_CFLAGS) $(GI_HIDDEN_VISIBILITY_CFLAGS)
libcmph_la_LIBADD = -lm $(GLIB_LIBS)
EXTRA_DIST += \
girepository/cmph/meson.build
libcmph_la_SOURCES = \
girepository/cmph/bdz.c \
girepository/cmph/bdz.h \
girepository/cmph/bdz_ph.c \
girepository/cmph/bdz_ph.h \
girepository/cmph/bdz_structs.h \
girepository/cmph/bdz_structs_ph.h \
girepository/cmph/bitbool.h \
girepository/cmph/bmz8.c \
girepository/cmph/bmz8.h \
girepository/cmph/bmz8_structs.h \
girepository/cmph/bmz.c \
girepository/cmph/bmz.h \
girepository/cmph/bmz_structs.h \
girepository/cmph/brz.c \
girepository/cmph/brz.h \
girepository/cmph/brz_structs.h \
girepository/cmph/buffer_entry.c \
girepository/cmph/buffer_entry.h \
girepository/cmph/buffer_manager.c \
girepository/cmph/buffer_manager.h \
girepository/cmph/chd.c \
girepository/cmph/chd.h \
girepository/cmph/chd_ph.c \
girepository/cmph/chd_ph.h \
girepository/cmph/chd_structs.h \
girepository/cmph/chd_structs_ph.h \
girepository/cmph/chm.c \
girepository/cmph/chm.h \
girepository/cmph/chm_structs.h \
girepository/cmph/cmph.c \
girepository/cmph/cmph.h \
girepository/cmph/cmph_structs.c \
girepository/cmph/cmph_structs.h \
girepository/cmph/cmph_time.h \
girepository/cmph/cmph_types.h \
girepository/cmph/compressed_rank.c \
girepository/cmph/compressed_rank.h \
girepository/cmph/compressed_seq.c \
girepository/cmph/compressed_seq.h \
girepository/cmph/debug.h \
girepository/cmph/fch_buckets.c \
girepository/cmph/fch_buckets.h \
girepository/cmph/fch.c \
girepository/cmph/fch.h \
girepository/cmph/fch_structs.h \
girepository/cmph/graph.c \
girepository/cmph/graph.h \
girepository/cmph/hash.c \
girepository/cmph/hash.h \
girepository/cmph/hash_state.h \
girepository/cmph/jenkins_hash.c \
girepository/cmph/jenkins_hash.h \
girepository/cmph/miller_rabin.c \
girepository/cmph/miller_rabin.h \
girepository/cmph/select.c \
girepository/cmph/select.h \
girepository/cmph/select_lookup_tables.h \
girepository/cmph/vqueue.c \
girepository/cmph/vqueue.h \
girepository/cmph/vstack.c \
girepository/cmph/vstack.h
TESTS += cmph-bdz-test
EXTRA_PROGRAMS += cmph-bdz-test
cmph_bdz_test_SOURCES = girepository/cmph-bdz-test.c
cmph_bdz_test_CFLAGS = -I$(top_srcdir)/girepository/cmph $(GOBJECT_CFLAGS)
cmph_bdz_test_LDADD = libcmph.la $(GOBJECT_LIBS)
CLEANFILES += cmph-bdz-test libcmph.la
noinst_PROGRAMS += glib-print
glib_print_SOURCES = examples/glib-print.c
glib_print_CFLAGS = $(GOBJECT_CFLAGS) $(WARN_CFLAGS) -I$(top_srcdir)/girepository -I$(top_builddir)/girepository
glib_print_LDFLAGS = $(WARN_LDFLAGS)
glib_print_LDADD = libgirepository-1.0.la $(GOBJECT_LIBS)
EXTRA_DIST += \
examples/meson.build
BUILT_GIRSOURCES =
SUBSTITUTED_GIRSOURCES =
STATIC_GIRSOURCES = \
gir/DBus-1.0.gir \
gir/DBusGLib-1.0.gir \
gir/fontconfig-2.0.gir \
gir/freetype2-2.0.gir \
gir/GL-1.0.gir \
gir/libxml2-2.0.gir \
gir/xft-2.0.gir \
gir/xlib-2.0.gir \
gir/xfixes-4.0.gir \
gir/xrandr-1.3.gir \
gir/win32-1.0.gir
EXTRA_DIST += $(STATIC_GIRSOURCES)
EXTRA_DIST += \
gir/meson.build
gir/cairo-1.0.gir: gir/cairo-1.0.gir.in Makefile
[ -d $(@D) ] || $(mkdir_p) $(@D) ; \
sed \
-e s,\@CAIRO_SHARED_LIBRARY\@,$(CAIRO_SHARED_LIBRARY), \
-e s,\@CAIRO_GIR_PACKAGE\@,$(CAIRO_GIR_PACKAGE), \
< $< > $@.tmp && mv $@.tmp $@
BUILT_SOURCES += gir/cairo-1.0.gir
SUBSTITUTED_GIRSOURCES += gir/cairo-1.0.gir
CLEANFILES += gir/cairo-1.0.gir
EXTRA_DIST += gir/cairo-1.0.gir.in
# Doesn't seem to work to do gir/%.typelib =(
gir/cairo-1.0.typelib: g-ir-compiler$(EXEEXT)
gir/DBus-1.0.typelib: g-ir-compiler$(EXEEXT)
gir/DBusGLib-1.0.typelib: g-ir-compiler$(EXEEXT)
gir/fontconfig-2.0.typelib: g-ir-compiler$(EXEEXT)
gir/freetype2-2.0.typelib: g-ir-compiler$(EXEEXT)
gir/GL-1.0.typelib: g-ir-compiler$(EXEEXT)
gir/libxml2-2.0.typelib: g-ir-compiler$(EXEEXT)
gir/xft-2.0.typelib: g-ir-compiler$(EXEEXT)
gir/xlib-2.0.typelib: g-ir-compiler$(EXEEXT)
gir/xfixes-4.0.typelib: g-ir-compiler$(EXEEXT)
gir/xrandr-1.3.typelib: g-ir-compiler$(EXEEXT)
gir/win32-1.0.typelib: g-ir-compiler$(EXEEXT)
# glib with source (to enable documentation)
if WITH_GLIBSRC
GLib_2_0_gir_DOCSRC = $(GLIBSRC)/glib/*.c
GObject_2_0_gir_DOCSRC = $(GLIBSRC)/gobject/*.c
GModule_2_0_gir_DOCSRC = $(GLIBSRC)/gmodule/*.c
Gio_2_0_gir_DOCSRC = $(GLIBSRC)/gio/*.c
else
GLib_2_0_gir_DOCSRC =
GObject_2_0_gir_DOCSRC =
GModule_2_0_gir_DOCSRC =
Gio_2_0_gir_DOCSRC =
endif
# glib
GLIB_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir glib-2.0)/glib-2.0
GLIB_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir glib-2.0)
GLIB_LIBRARY=glib-2.0
GLib_2_0_gir_LIBS = $(GLIB_LIBRARY) $(GOBJECT_LIBRARY)
GLib_2_0_gir_SCANNERFLAGS = \
--external-library \
--reparse-validate \
--identifier-prefix=G \
--symbol-prefix=g \
--symbol-prefix=glib \
--c-include="glib.h" \
$(GLib_2_0_gir_DOCSRC)
GLib_2_0_gir_PACKAGES = glib-2.0
GLib_2_0_gir_CFLAGS = \
-I$(GLIB_INCLUDEDIR) \
-I$(GLIB_LIBDIR)/glib-2.0/include \
-DGETTEXT_PACKAGE=Dummy \
-DGLIB_COMPILATION \
-D__G_I18N_LIB_H__
GLib_2_0_gir_FILES = \
$(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h \
$(filter-out $(GLIB_INCLUDEDIR)/glib/glib-autocleanups.h,$(wildcard $(GLIB_INCLUDEDIR)/glib/*.h)) \
$(GLIB_INCLUDEDIR)/gobject/glib-types.h \
gir/glib-2.0.c
if HAVE_GIO_UNIX
GLib_2_0_gir_FILES += $(GLIB_INCLUDEDIR)/glib-unix.h
endif
BUILT_GIRSOURCES += GLib-2.0.gir
GLib-2.0.gir: g-ir-scanner g-ir-compiler$(EXEEXT)
gir/DBusGLib-1.0.typelib: GObject-2.0.gir
# gobject
GOBJECT_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir gobject-2.0)/glib-2.0
GOBJECT_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir gobject-2.0)
GOBJECT_LIBRARY=gobject-2.0
GObject-2.0.gir: GLib-2.0.gir
GObject_2_0_gir_LIBS = $(GOBJECT_LIBRARY)
GObject_2_0_gir_SCANNERFLAGS = \
--external-library \
--reparse-validate \
--identifier-prefix=G \
--c-include="glib-object.h" \
--add-include-path=. \
$(GObject_2_0_gir_DOCSRC)
GObject_2_0_gir_PACKAGES = gobject-2.0
GObject_2_0_gir_INCLUDES = GLib-2.0
GObject_2_0_gir_CFLAGS = \
-DGOBJECT_COMPILATION \
-I$(GOBJECT_INCLUDEDIR) \
-I$(GOBJECT_LIBDIR)/glib-2.0/include
GObject_2_0_gir_FILES = \
$(filter-out $(GOBJECT_INCLUDEDIR)/gobject/glib-types.h $(GOBJECT_INCLUDEDIR)/gobject/gvaluecollector.h (GOBJECT_INCLUDEDIR)/gobject/glib-enumtypes.h, \
$(wildcard $(GOBJECT_INCLUDEDIR)/gobject/*.h)) \
gir/gobject-2.0.c
BUILT_GIRSOURCES += GObject-2.0.gir
# gmodule
GMODULE_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir gmodule-2.0)/glib-2.0
GMODULE_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir gmodule-2.0)
GMODULE_LIBRARY=gmodule-2.0
GModule-2.0.gir: GLib-2.0.gir
GModule_2_0_gir_LIBS = $(GMODULE_LIBRARY)
GModule_2_0_gir_SCANNERFLAGS = \
--external-library \
--identifier-prefix=G \
--c-include="gmodule.h" \
--add-include-path=. \
$(GModule_2_0_gir_DOCSRC)
GModule_2_0_gir_PACKAGES = gmodule-2.0
GModule_2_0_gir_INCLUDES = GLib-2.0
GModule_2_0_gir_CFLAGS = \
-I$(GMODULE_INCLUDEDIR) \
-I$(GMODULE_LIBDIR)/glib-2.0/include
GModule_2_0_gir_FILES = $(GLIB_INCLUDEDIR)/gmodule.h \
gir/gmodule-2.0.c
BUILT_GIRSOURCES += GModule-2.0.gir
# gio
GIO_INCLUDEDIR=$(shell "${PKG_CONFIG}" --variable=includedir gio-2.0)/glib-2.0
GIO_LIBDIR=$(shell "${PKG_CONFIG}" --variable=libdir gio-2.0)
GIO_LIBRARY=gio-2.0
if HAVE_GIO_UNIX
GIO_UNIX_INCLUDEDIR = $(shell "${PKG_CONFIG}" --variable=includedir gio-unix-2.0)/gio-unix-2.0
GIO_UNIX_HDRS = $(wildcard $(GIO_UNIX_INCLUDEDIR)/gio/*.h)
GIO_UNIX_PACKAGES = gio-unix-2.0
else
GIO_UNIX_INCLUDEDIR =
GIO_UNIX_HDRS=
GIO_UNIX_PACKAGES =
endif
GIO_CINCLUDES=$(patsubst $(GIO_UNIX_INCLUDEDIR)/%,--c-include='%',$(wildcard $(GIO_UNIX_HDRS)))
Gio-2.0.gir: GObject-2.0.gir
Gio_2_0_gir_LIBS = $(GIO_LIBRARY)
Gio_2_0_gir_SCANNERFLAGS = \
--external-library \
--reparse-validate \
--warn-all \
--identifier-prefix=G \
--c-include="gio/gio.h" \
$(GIO_CINCLUDES) \
--add-include-path=. \
$(Gio_2_0_gir_DOCSRC)
Gio_2_0_gir_PACKAGES = gio-2.0 $(GIO_UNIX_PACKAGES)
Gio_2_0_gir_INCLUDES = GObject-2.0
Gio_2_0_gir_CFLAGS = \
-DGIO_COMPILATION \
-DG_SETTINGS_ENABLE_BACKEND \
-I$(GIO_LIBDIR)/glib-2.0/include
Gio_2_0_gir_FILES = \
$(GIO_UNIX_HDRS) \
$(shell echo $(GIO_INCLUDEDIR)/gio/*.h) \
gir/gio-2.0.c
BUILT_GIRSOURCES += Gio-2.0.gir
EXTRA_DIST += gir/glib-2.0.c gir/gmodule-2.0.c gir/gobject-2.0.c gir/gio-2.0.c
# girepository
GIRepository-2.0.gir: GObject-2.0.gir libgirepository-1.0.la
GIRepository_2_0_gir_LIBS = libgirepository-1.0.la
GIRepository_2_0_gir_SCANNERFLAGS = \
$(WARN_SCANNERFLAGS) \
--identifier-prefix=GI \
--symbol-prefix=g \
--symbol-prefix=gi \
--c-include="girepository.h" \
--add-include-path=.
GIRepository_2_0_gir_PACKAGES = gobject-2.0
GIRepository_2_0_gir_INCLUDES = GObject-2.0
GIRepository_2_0_gir_EXPORT_PACKAGES = gobject-introspection-1.0
GIRepository_2_0_gir_CFLAGS = \
-I$(top_srcdir)/girepository \
-I$(top_srcdir) \
-I$(top_builddir)/girepository \
-DGI_COMPILATION
GIRepository_2_0_gir_FILES = \
$(top_srcdir)/girepository/girepository.h \
$(top_srcdir)/girepository/girepository.c \
$(wildcard $(top_srcdir)/girepository/gi*info.c) \
$(wildcard $(top_srcdir)/girepository/gi*info.h) \
$(top_srcdir)/girepository/giversion.c \
$(top_builddir)/girepository/giversion.h \
$(top_srcdir)/girepository/gitypelib.h \
$(top_srcdir)/girepository/gitypes.h
BUILT_GIRSOURCES += GIRepository-2.0.gir
CLEANFILES += $(BUILT_GIRSOURCES)
INTROSPECTION_GIRS += $(BUILT_GIRSOURCES)
girdir = $(GIR_DIR)
gir_DATA = $(STATIC_GIRSOURCES) $(SUBSTITUTED_GIRSOURCES) $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = $(gir_DATA:.gir=.typelib)
CLEANFILES += $(typelibs_DATA)
EXTRA_DIST += \
girepository/docs.c \
girepository/meson.build
girepodir = $(includedir)/gobject-introspection-1.0/
girepo_HEADERS = \
girepository/giarginfo.h \
girepository/gibaseinfo.h \
girepository/gicallableinfo.h \
girepository/giconstantinfo.h \
girepository/gienuminfo.h \
girepository/gifieldinfo.h \
girepository/gifunctioninfo.h \
girepository/giinterfaceinfo.h \
girepository/giobjectinfo.h \
girepository/gipropertyinfo.h \
girepository/giregisteredtypeinfo.h \
girepository/girepository.h \
girepository/girffi.h \
girepository/gisignalinfo.h \
girepository/gistructinfo.h \
girepository/gitypeinfo.h \
girepository/gitypelib.h \
girepository/gitypes.h \
girepository/giunioninfo.h \
girepository/giversionmacros.h \
girepository/givfuncinfo.h \
$(top_builddir)/girepository/giversion.h
lib_LTLIBRARIES += libgirepository-1.0.la
noinst_LTLIBRARIES += libgirepository-internals.la libgirepository-gthash.la
libgirepository_gthash_la_SOURCES = \
girepository/gthash.c
libgirepository_gthash_la_CFLAGS = \
$(WARN_CFLAGS) \
$(GIREPO_CFLAGS) \
$(GI_HIDDEN_VISIBILITY_CFLAGS) \
-I$(top_srcdir)/girepository \
-I$(top_builddir)/girepository
libgirepository_gthash_la_LDFLAGS = \
$(WARN_LDFLAGS)
libgirepository_gthash_la_LIBADD = libcmph.la $(GIREPO_LIBS)
libgirepository_internals_la_SOURCES = \
girepository/girmodule.c \
girepository/girmodule.h \
girepository/girnode.c \
girepository/girnode.h \
girepository/giroffsets.c \
girepository/girparser.c \
girepository/girparser.h \
girepository/girwriter.c \
girepository/girwriter.h
libgirepository_internals_la_CFLAGS = \
$(WARN_CFLAGS) \
$(GIREPO_CFLAGS) \
$(GI_HIDDEN_VISIBILITY_CFLAGS) \
-I$(top_srcdir)/girepository \
-I$(top_builddir)/girepository
libgirepository_internals_la_LDFLAGS = \
$(WARN_LDFLAGS)
libgirepository_internals_la_LIBADD = libgirepository-gthash.la $(GIREPO_LIBS)
libgirepository_1_0_la_SOURCES = \
girepository/gdump.c \
girepository/giarginfo.c \
girepository/gibaseinfo.c \
girepository/gicallableinfo.c \
girepository/giconstantinfo.c \
girepository/gienuminfo.c \
girepository/gifieldinfo.c \
girepository/gifunctioninfo.c \
girepository/ginvoke.c \
girepository/giinterfaceinfo.c \
girepository/giobjectinfo.c \
girepository/gipropertyinfo.c \
girepository/giregisteredtypeinfo.c \
girepository/girepository.c \
girepository/girepository-private.h \
girepository/girffi.c \
girepository/girffi.h \
girepository/gisignalinfo.c \
girepository/gistructinfo.c \
girepository/gitypeinfo.c \
girepository/gitypelib.c \
girepository/gitypelib-internal.h \
girepository/giunioninfo.c \
girepository/giversion.c \
girepository/givfuncinfo.c
libgirepository_1_0_la_CPPFLAGS = \
$(WARN_CFLAGS) \
$(GIREPO_CFLAGS) \
$(GI_HIDDEN_VISIBILITY_CFLAGS) \
-I$(top_srcdir)/girepository \
-I$(top_builddir)/girepository \
-DG_IREPOSITORY_COMPILATION
libgirepository_1_0_la_LIBADD = libgirepository-gthash.la $(GIREPO_LIBS)
libgirepository_1_0_la_LDFLAGS = \
$(WARN_LDFLAGS) \
$(EXTRA_LINK_FLAGS) \
-no-undefined -version-number 1:0:0
gdumpdir = $(datadir)/gobject-introspection-1.0/
gdump_DATA = girepository/gdump.c
if !OS_WIN32
noinst_PROGRAMS += gi-dump-types
gi_dump_types_SOURCES = girepository/gdump.c girepository/gi-dump-types.c
gi_dump_types_CFLAGS = $(GIO_UNIX_CFLAGS) $(GMODULE_CFLAGS) $(WARN_CFLAGS)
gi_dump_types_LDFLAGS = $(WARN_LDFLAGS)
gi_dump_types_LDADD = $(GIO_UNIX_LIBS) $(GMODULE_LIBS)
endif
EXTRA_PROGRAMS += gthash-test
CLEANFILES += gthash-test
TESTS += gthash-test
gthash_test_SOURCES = girepository/gthash.c girepository/gthash-test.c
gthash_test_CFLAGS = -I$(top_srcdir)/girepository -I$(top_builddir)/girepository $(GOBJECT_CFLAGS)
gthash_test_LDADD = libcmph.la libgirepository-1.0.la $(GOBJECT_LIBS)
## Process this file with automake to produce Makefile.in
BUILT_SOURCES += \
giscanner/scannerparser.c \
giscanner/scannerparser.h \
giscanner/scannerlexer.c \
giscanner/scannerlexer.h
EXTRA_DIST += \
giscanner/meson.build
AM_YFLAGS = -d -t
# Why do I have to do this automake?
giscanner/scannerlexer.h: giscanner/scannerlexer.c
noinst_LTLIBRARIES += libgiscanner.la
libgiscanner_la_SOURCES = \
giscanner/sourcescanner.c \
giscanner/sourcescanner.h \
giscanner/scannerlexer.l \
giscanner/scannerparser.y
libgiscanner_la_CPPFLAGS = -I$(top_srcdir)/girepository -I$(top_builddir)/girepository -I$(top_srcdir)/giscanner
libgiscanner_la_LIBADD = $(GOBJECT_LIBS) $(GIO_LIBS)
libgiscanner_la_CFLAGS = $(GOBJECT_CFLAGS) $(GIO_CFLAGS) $(WARN_CFLAGS_FLEX)
libgiscanner_la_LDFLAGS = $(WARN_LDFLAGS)
# Python module
pkgpyexecdir = $(pkglibdir)/giscanner
pkgpyexec_LTLIBRARIES = _giscanner.la
pkgpyexec_PYTHON = \
giscanner/__init__.py \
giscanner/_version.py \
giscanner/annotationmain.py \
giscanner/annotationparser.py \
giscanner/ast.py \
giscanner/cachestore.py \
giscanner/ccompiler.py \
giscanner/codegen.py \
giscanner/docmain.py \
giscanner/docwriter.py \
giscanner/dumper.py \
giscanner/gdumpparser.py \
giscanner/girparser.py \
giscanner/girwriter.py \
giscanner/introspectablepass.py \
giscanner/libtoolimporter.py \
giscanner/maintransformer.py \
giscanner/mdextensions.py \
giscanner/message.py \
giscanner/msvccompiler.py \
giscanner/pkgconfig.py \
giscanner/scannermain.py \
giscanner/sectionparser.py \
giscanner/shlibs.py \
giscanner/sourcescanner.py \
giscanner/testcodegen.py \
giscanner/transformer.py \
giscanner/utils.py \
giscanner/xmlwriter.py
templatedir = $(pkglibdir)
nobase_dist_template_DATA = \
giscanner/doctemplates/mallard/base.tmpl \
giscanner/doctemplates/mallard/class.tmpl \
giscanner/doctemplates/mallard/namespace.tmpl \
giscanner/doctemplates/mallard/C/callback.tmpl \
giscanner/doctemplates/mallard/C/class.tmpl \
giscanner/doctemplates/mallard/C/constructor.tmpl \
giscanner/doctemplates/mallard/C/default.tmpl \
giscanner/doctemplates/mallard/C/enum.tmpl \
giscanner/doctemplates/mallard/C/function.tmpl \
giscanner/doctemplates/mallard/C/field.tmpl \
giscanner/doctemplates/mallard/C/interface.tmpl \
giscanner/doctemplates/mallard/C/method.tmpl \
giscanner/doctemplates/mallard/C/namespace.tmpl \
giscanner/doctemplates/mallard/C/property.tmpl \
giscanner/doctemplates/mallard/C/record.tmpl \
giscanner/doctemplates/mallard/C/signal.tmpl \
giscanner/doctemplates/mallard/C/vfunc.tmpl \
giscanner/doctemplates/mallard/Python/callback.tmpl \
giscanner/doctemplates/mallard/Python/class.tmpl \
giscanner/doctemplates/mallard/Python/constructor.tmpl \
giscanner/doctemplates/mallard/Python/default.tmpl \
giscanner/doctemplates/mallard/Python/enum.tmpl \
giscanner/doctemplates/mallard/Python/function.tmpl \
giscanner/doctemplates/mallard/Python/field.tmpl \
giscanner/doctemplates/mallard/Python/interface.tmpl \
giscanner/doctemplates/mallard/Python/method.tmpl \
giscanner/doctemplates/mallard/Python/namespace.tmpl \
giscanner/doctemplates/mallard/Python/property.tmpl \
giscanner/doctemplates/mallard/Python/record.tmpl \
giscanner/doctemplates/mallard/Python/signal.tmpl \
giscanner/doctemplates/mallard/Python/vfunc.tmpl \
giscanner/doctemplates/mallard/Gjs/callback.tmpl \
giscanner/doctemplates/mallard/Gjs/class.tmpl \
giscanner/doctemplates/mallard/Gjs/constructor.tmpl \
giscanner/doctemplates/mallard/Gjs/default.tmpl \
giscanner/doctemplates/mallard/Gjs/enum.tmpl \
giscanner/doctemplates/mallard/Gjs/function.tmpl \
giscanner/doctemplates/mallard/Gjs/field.tmpl \
giscanner/doctemplates/mallard/Gjs/interface.tmpl \
giscanner/doctemplates/mallard/Gjs/method.tmpl \
giscanner/doctemplates/mallard/Gjs/namespace.tmpl \
giscanner/doctemplates/mallard/Gjs/property.tmpl \
giscanner/doctemplates/mallard/Gjs/record.tmpl \
giscanner/doctemplates/mallard/Gjs/signal.tmpl \
giscanner/doctemplates/mallard/Gjs/vfunc.tmpl \
giscanner/doctemplates/devdocs/Gjs/_doc.tmpl \
giscanner/doctemplates/devdocs/Gjs/_index.tmpl \
giscanner/doctemplates/devdocs/Gjs/_method.tmpl \
giscanner/doctemplates/devdocs/Gjs/_methods.tmpl \
giscanner/doctemplates/devdocs/Gjs/_properties.tmpl \
giscanner/doctemplates/devdocs/Gjs/_signals.tmpl \
giscanner/doctemplates/devdocs/Gjs/_staticmethods.tmpl \
giscanner/doctemplates/devdocs/Gjs/_vfuncs.tmpl \
giscanner/doctemplates/devdocs/Gjs/base.tmpl \
giscanner/doctemplates/devdocs/Gjs/callback.tmpl \
giscanner/doctemplates/devdocs/Gjs/class.tmpl \
giscanner/doctemplates/devdocs/Gjs/default.tmpl \
giscanner/doctemplates/devdocs/Gjs/enum.tmpl \
giscanner/doctemplates/devdocs/Gjs/function.tmpl \
giscanner/doctemplates/devdocs/Gjs/interface.tmpl \
giscanner/doctemplates/devdocs/Gjs/method.tmpl \
giscanner/doctemplates/devdocs/Gjs/namespace.tmpl
_giscanner_la_CFLAGS = \
$(PYTHON_INCLUDES) \
$(GOBJECT_CFLAGS) \
$(WARN_CFLAGS_PYTHON) \
-I$(top_srcdir)/giscanner
_giscanner_la_LIBADD = libgiscanner.la $(GOBJECT_LIBS)
_giscanner_la_LDFLAGS = \
$(WARN_LDFLAGS) \
-module -avoid-version \
-export-symbols-regex "init_giscanner|PyInit__giscanner"
if OS_WIN32
# Windows requires Python extension modules to be explicitly
# linked to libpython.
_giscanner_la_LIBADD += \
$(PYTHON_LIBS)
_giscanner_la_LDFLAGS += \
-no-undefined \
-shrext $(PYTHON_SO)
endif
_giscanner_la_SOURCES = giscanner/giscannermodule.c
bin_PROGRAMS += g-ir-compiler g-ir-generate g-ir-inspect
bin_SCRIPTS += g-ir-scanner g-ir-annotation-tool
if BUILD_DOCTOOL
bin_SCRIPTS += g-ir-doc-tool
endif
EXTRA_DIST += \
tools/g-ir-tool-template.in \
tools/meson.build
TOOL_SUBSTITUTIONS = -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON_CMD\@,\/usr\/bin\/env\ $(PYTHON), -e s,@GIR_DIR\@,$(GIR_DIR),g
g-ir-scanner: tools/g-ir-tool-template.in _giscanner.la Makefile
$(AM_V_GEN) sed $(TOOL_SUBSTITUTIONS) -e s,@TOOL_MODULE\@,scannermain, -e s,@TOOL_FUNCTION\@,scanner_main, $< > $@.tmp && mv $@.tmp $@
@chmod a+x $@
g-ir-annotation-tool: tools/g-ir-tool-template.in _giscanner.la Makefile
$(AM_V_GEN) sed $(TOOL_SUBSTITUTIONS) -e s,@TOOL_MODULE\@,annotationmain, -e s,@TOOL_FUNCTION\@,annotation_main, $< > $@.tmp && mv $@.tmp $@
@chmod a+x $@
g-ir-doc-tool: tools/g-ir-tool-template.in _giscanner.la Makefile
$(AM_V_GEN) sed $(TOOL_SUBSTITUTIONS) -e s,@TOOL_MODULE\@,docmain, -e s,@TOOL_FUNCTION\@,doc_main, $< > $@.tmp && mv $@.tmp $@
@chmod a+x $@
g_ir_compiler_SOURCES = tools/compiler.c
g_ir_compiler_CPPFLAGS = -I$(top_srcdir)/girepository -I$(top_builddir)/girepository
g_ir_compiler_CFLAGS = $(GIO_CFLAGS) $(WARN_CFLAGS)
g_ir_compiler_LDFLAGS = $(WARN_LDFLAGS)
g_ir_compiler_LDADD = \
libgirepository-internals.la \
libgirepository-1.0.la \
$(GIREPO_LIBS)
g_ir_generate_SOURCES = tools/generate.c
g_ir_generate_CPPFLAGS = -I$(top_srcdir)/girepository -I$(top_builddir)/girepository
g_ir_generate_CFLAGS = $(GIO_CFLAGS) $(WARN_CFLAGS)
g_ir_generate_LDFLAGS = $(WARN_LDFLAGS)
g_ir_generate_LDADD = \
libgirepository-internals.la \
libgirepository-1.0.la \
$(GIREPO_LIBS)
g_ir_inspect_SOURCES = tools/g-ir-inspect.c
g_ir_inspect_CFLAGS = $(GIO_CFLAGS) $(WARN_CFLAGS) -I$(top_srcdir)/girepository -I$(top_builddir)/girepository
g_ir_inspect_LDFLAGS = $(WARN_LDFLAGS)
g_ir_inspect_LDADD = \
libgirepository-1.0.la \
$(GIREPO_LIBS)
GCOVSOURCES = \
$(g_ir_compiler_SOURCES) \
$(g_ir_generate_SOURCES)
CLEANFILES += g-ir-scanner g-ir-annotation-tool g-ir-doc-tool g-ir-inspect
man_MANS =
EXTRA_DIST =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
BUILT_SOURCES =
CLEANFILES = $(BUILT_SOURCES)
INTROSPECTION_GIRS =
check_LTLIBRARIES =
check_PROGRAMS =
bin_PROGRAMS =
bin_SCRIPTS =
noinst_PROGRAMS =
EXTRA_LTLIBRARIES =
EXTRA_PROGRAMS =
TESTS =
include common.mk
include Makefile.introspection
include Makefile-cmph.am
include Makefile-girepository.am
include Makefile-giscanner.am
include Makefile-examples.am
include Makefile-gir.am
include Makefile-tools.am
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = . docs tests
DIST_SUBDIRS = $(SUBDIRS)
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-doctool