Commit 27aecba1 authored by Christian Hergert's avatar Christian Hergert

build: migrate template-glib to meson

parent d013a404
# Generated by Makefile. Do not edit.
Christian Hergert Christian Hergert
SUBDIRS = data src tests po doc examples
ACLOCAL_AMFLAGS = -I build-aux
EXTRA_DIST = \
AUTHORS \
$(NULL)
DISTCHECK_CONFIGURE_FLAGS = \
--enable-introspection \
--enable-gtk-doc \
$(NULL)
GITIGNOREFILES = \
**/*.swp \
*.o \
aclocal.m4 \
build-aux \
ChangeLog \
config \
config.h.in \
gtk-doc.m4 \
gtk-doc.make \
INSTALL \
ABOUT-NLS \
$(NULL)
AUTHORS:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating $@ && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
git log --no-merges --pretty=format:"%an" src \
| sort | uniq ) > $@.tmp \
&& mv -f $@.tmp $@ \
|| ( rm -f $@.tmp ; \
echo Failed to generate $@ >&2 ); \
fi
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
.PHONY: AUTHORS
-include $(top_srcdir)/git.mk
...@@ -67,6 +67,8 @@ false => false ...@@ -67,6 +67,8 @@ false => false
1 / 3 => .333333 1 / 3 => .333333
a = (1*3) => (a assigned 3) a = (1*3) => (a assigned 3)
a * a => 9 a * a => 9
!true => false
!!true => true
func min(a,b) = if a < b then a; else b;; func min(a,b) = if a < b then a; else b;;
min(1,2) => 1 min(1,2) => 1
......
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
(test -f $srcdir/src/main.c) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level template-glib directory."
exit 1
}
touch ChangeLog
touch INSTALL
aclocal --install -I build-aux || exit 1
gtkdocize || exit 1
autoreconf --force --install -Wno-portability || exit 1
if [ "$NOCONFIGURE" = "" ]; then
$srcdir/configure "$@" || exit 1
if [ "$1" = "--help" ]; then exit 0 else
echo "Now type \`make\' to compile" || exit 1
fi
else
echo "Skipping configure process."
fi
set +x
# Rules for generating enumeration types using glib-mkenums
#
# Define:
# glib_enum_h = header template file
# glib_enum_c = source template file
# glib_enum_headers = list of headers to parse
#
# before including Makefile.am.enums. You will also need to have
# the following targets already defined:
#
# CLEANFILES
# DISTCLEANFILES
# BUILT_SOURCES
# EXTRA_DIST
#
# Author: Emmanuele Bassi <ebassi@linux.intel.com>
# Basic sanity checks
$(if $(GLIB_MKENUMS),,$(error Need to define GLIB_MKENUMS))
$(if $(or $(glib_enum_h), \
$(glib_enum_c)),, \
$(error Need to define glib_enum_h and glib_enum_c))
$(if $(glib_enum_headers),,$(error Need to define glib_enum_headers))
enum_tmpl_h=$(addprefix $(srcdir)/, $(glib_enum_h:.h=.h.in))
enum_tmpl_c=$(addprefix $(srcdir)/, $(glib_enum_c:.c=.c.in))
enum_headers=$(addprefix $(srcdir)/, $(glib_enum_headers))
CLEANFILES += stamp-enum-types
DISTCLEANFILES += $(glib_enum_h) $(glib_enum_c)
BUILT_SOURCES += $(glib_enum_h) $(glib_enum_c)
EXTRA_DIST += $(enum_tmpl_h) $(enum_tmpl_c)
stamp-enum-types: $(enum_headers) $(enum_tmpl_h)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--template $(enum_tmpl_h) \
$(enum_headers) > xgen-eh \
&& (cmp -s xgen-eh $(glib_enum_h) || cp -f xgen-eh $(glib_enum_h)) \
&& rm -f xgen-eh \
&& echo timestamp > $(@F)
$(glib_enum_h): stamp-enum-types
@true
$(glib_enum_c): $(enum_headers) $(enum_tmpl_h) $(enum_tmpl_c)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--template $(enum_tmpl_c) \
$(enum_headers) > xgen-ec \
&& cp -f xgen-ec $(glib_enum_c) \
&& rm -f xgen-ec
dnl vala.m4
dnl
dnl Copyright 2010 Marc-Andre Lureau
dnl Copyright 2011 Rodney Dawes <dobey.pwns@gmail.com>
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# _VALA_CHECK_COMPILE_WITH_ARGS(ARGS, [ACTION-IF-TRUE],
# [ACTION-IF-FALSE])
# --------------------------------------
# Check that Vala compile with ARGS.
#
AC_DEFUN([_VALA_CHECK_COMPILE_WITH_ARGS],
[AC_REQUIRE([AM_PROG_VALAC])[]dnl
cat <<_ACEOF >conftest.vala
void main(){}
_ACEOF
AS_IF([vala_error=`$VALAC $1 -q --cc="${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" -o conftest$ac_exeext conftest.vala 2>&1`],
[$2], [$3])
])
])# _VALA_CHECK_COMPILE_WITH_ARGS
# VALA_CHECK_PACKAGES(PKGS, [ACTION-IF-FOUND],
# [ACTION-IF-NOT-FOUND])
# --------------------------------------
# Check that PKGS Vala bindings are installed and usable.
#
AC_DEFUN([VALA_CHECK_PACKAGES],
[
unset vala_pkgs
unset vala_bindings
ac_save_ifs="$IFS"; unset IFS
for vala_pkg in $(echo "$1"); do
vala_pkgs="${vala_pkgs:+$vala_pkgs }--pkg $vala_pkg"
vala_bindings="${vala_bindings:+$vala_bindings }$vala_pkg"
done
IFS="$ac_save_ifs"
AC_MSG_CHECKING([for $vala_bindings vala bindings])
_VALA_CHECK_COMPILE_WITH_ARGS([$vala_pkgs],
[vala_pkg_exists=yes],
[vala_pkg_exists=no])
AS_IF([test x${vala_pkg_exists} = xno],[
ifelse([$3], , [AC_MSG_ERROR([]dnl
[Package requirements were not met: $1
$vala_error
Consider adjusting the XDG_DATA_DIRS environment variable if you
installed bindings in a non-standard prefix.
])],
[AC_MSG_RESULT([no])
$3])],[
AC_MSG_RESULT([yes])
ifelse([$2], , :, [$2])[]dnl
])
])# VALA_CHECK_PACKAGES
# Check for Vala bindings for a package, as well as the pkg-config
# CFLAGS and LIBS for the package. The arguments here work the
# same as those for PKG_CHECK_MODULES, which is called internally.
# As a result, the _CFLAGS, _LIBS, and _VALAFLAGS variables will
# all be declared, rather than only _VALAFLAGS.
#
# VALA_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
# [ACTION-IF-NOT-FOUND])
# --------------------------------------------------------------
AC_DEFUN([VALA_CHECK_MODULES],
[
AC_REQUIRE([AM_PROG_VALAC])dnl
AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_REQUIRE([_VALA_CHECK_COMPILE_WITH_ARGS])dnl
AC_ARG_VAR([$1][_VALAFLAGS], [Vala compiler flags for $1])dnl
VALA_MODULES="`echo $2 | sed -e 's/ [[=<>]]\+ [[0-9.]]\+//g'`"
for MODULE in $VALA_MODULES; do
$1[]_VALAFLAGS="$[]$1[]_VALAFLAGS --pkg $MODULE"
done
PKG_CHECK_MODULES([$1], [$2], [$3], [$4])
pkg_failed=no
AC_MSG_CHECKING([for $1 vala modules])
_VALA_CHECK_COMPILE_WITH_ARGS([$1][_VALAFLAGS],
[pkg_failed=yes],
[pkg_failed=no])
if test $pkg_failed = yes; then
AC_MSG_RESULT([no])
m4_default([$4], [AC_MSG_ERROR(
[Package requirements ($2) were not met.])dnl
])
else
AC_MSG_RESULT([yes])
m4_default([$3], [:])
fi[]dnl
])
# Check whether the Vala API Generator exists in `PATH'. If it is found,
# the variable VAPIGEN is set. Optionally a minimum release number of the
# generator can be requested.
#
# VALA_PROG_VAPIGEN([MINIMUM-VERSION])
# ------------------------------------
AC_DEFUN([VALA_PROG_VAPIGEN],
[AC_PATH_PROG([VAPIGEN], [vapigen], [])
AS_IF([test -z "$VAPIGEN"],
[AC_MSG_WARN([No Vala API Generator found. You will not be able to generate .vapi files.])],
[AS_IF([test -n "$1"],
[AC_MSG_CHECKING([$VAPIGEN is at least version $1])
am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator *//'`
AS_VERSION_COMPARE([$1], ["$am__vapigen_version"],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AC_MSG_ERROR([Vala API Generator $1 not found.])])])])
])
dnl vapigen.m4
dnl
dnl Copyright 2012 Evan Nemerson
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# VAPIGEN_CHECK([VERSION], [API_VERSION], [FOUND_INTROSPECTION], [DEFAULT])
# --------------------------------------
# Check vapigen existence and version
#
# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation
AC_DEFUN([VAPIGEN_CHECK],
[
AS_IF([test "x$3" != "xyes"], [
m4_provide_if([GOBJECT_INTROSPECTION_CHECK], [], [
m4_provide_if([GOBJECT_INTROSPECTION_REQUIRE], [], [
AC_MSG_ERROR([[You must call GOBJECT_INTROSPECTION_CHECK or GOBJECT_INTROSPECTION_REQUIRE before using VAPIGEN_CHECK unless using the FOUND_INTROSPECTION argument is "yes"]])
])
])
])
AC_ARG_ENABLE([vala],
[AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[
AS_IF([test "x$4" = "x"], [
enable_vala=auto
], [
enable_vala=$4
])
])
AS_CASE([$enable_vala], [no], [enable_vala=no],
[yes], [
AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [
AC_MSG_ERROR([Vala bindings require GObject Introspection])
])
], [auto], [
AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [
enable_vala=no
])
], [
AC_MSG_ERROR([Invalid argument passed to --enable-vala, should be one of @<:@no/auto/yes@:>@])
])
AS_IF([test "x$2" = "x"], [
vapigen_pkg_name=vapigen
], [
vapigen_pkg_name=vapigen-$2
])
AS_IF([test "x$1" = "x"], [
vapigen_pkg="$vapigen_pkg_name"
], [
vapigen_pkg="$vapigen_pkg_name >= $1"
])
PKG_PROG_PKG_CONFIG
PKG_CHECK_EXISTS([$vapigen_pkg], [
AS_IF([test "$enable_vala" = "auto"], [
enable_vala=yes
])
], [
AS_CASE([$enable_vala], [yes], [
AC_MSG_ERROR([$vapigen_pkg not found])
], [auto], [
enable_vala=no
])
])
AC_MSG_CHECKING([for vapigen])
AS_CASE([$enable_vala],
[yes], [
VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name`
VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen
AS_IF([test "x$2" = "x"], [
VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name`
], [
VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name`
])
])
AC_MSG_RESULT([$enable_vala])
AC_SUBST([VAPIGEN])
AC_SUBST([VAPIGEN_VAPIDIR])
AC_SUBST([VAPIGEN_MAKEFILE])
AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$enable_vala" = "xyes")
])
AC_PREREQ([2.69])
dnl ***********************************************************************
dnl Define Versioning Information
dnl ***********************************************************************
m4_define([tmpl_major_version],[3])
m4_define([tmpl_minor_version],[19])
m4_define([tmpl_micro_version],[4])
m4_define([tmpl_version],[tmpl_major_version.tmpl_minor_version.tmpl_micro_version])
m4_define([tmpl_interface_age],[0])
m4_define([tmpl_bugreport_url],
[https://bugzilla.gnome.org/enter_bug.cgi?product=template-glib])
m4_define([tmpl_debug_default],
[m4_if(m4_eval(tmpl_minor_version % 2), [1], [yes], [minimum])])
dnl ***********************************************************************
dnl Initialize Autoconf
dnl ***********************************************************************
AC_INIT([template-glib],[tmpl_version],[tmpl_bugreport_url])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([build-aux])
AC_CONFIG_AUX_DIR([build-aux])
AC_SUBST(ACLOCAL_AMFLAGS, "-I build-aux")
AC_CANONICAL_HOST
dnl ***********************************************************************
dnl Make Version Info Available to .in Files
dnl ***********************************************************************
MAJOR_VERSION=tmpl_major_version
MINOR_VERSION=tmpl_minor_version
MICRO_VERSION=tmpl_micro_version
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(MICRO_VERSION)
dnl ***********************************************************************
dnl Initialize Automake
dnl ***********************************************************************
AM_SILENT_RULES([yes])
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects tar-ustar no-dist-gzip dist-xz])
AM_MAINTAINER_MODE([enable])
dnl ***********************************************************************
dnl Internationalization
dnl ***********************************************************************
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name])
AM_GNU_GETTEXT_VERSION([0.19.2])
AM_GNU_GETTEXT([external])
dnl ***********************************************************************
dnl Check for Required Programs
dnl ***********************************************************************
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LEX
AC_PROG_YACC
AM_PROG_VALAC
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
PKG_PROG_PKG_CONFIG([0.22])
GOBJECT_INTROSPECTION_CHECK([1.42.0])
GLIB_GSETTINGS
VAPIGEN_CHECK
dnl ***********************************************************************
dnl Enable support for debuggin
dnl ***********************************************************************
AC_ARG_ENABLE(tracing,
AS_HELP_STRING([--enable-tracing=@<:@no/yes@:>@],
[add extra debugging information @<:@default=no@:>@]),
,
enable_tracing=no)
AS_IF([test "x$enable_tracing" = "xyes"],[enable_debug=yes ENABLE_TRACING=1],[ENABLE_TRACING=0])
AC_SUBST(ENABLE_TRACING)
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],
[turn on debugging @<:@default=tmpl_debug_default@:>@]),
,
enable_debug=tmpl_debug_default)
AS_CASE(["$enable_debug"],
[yes],[
DEBUG_CFLAGS="$DEBUG_CFLAGS -O0"
DEBUG_CFLAGS="$DEBUG_CFLAGS -g"
],
[minimum],[
DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_CAST_CHECKS"
],
[no],[
DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_ASSERT"
DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_CHECKS"
DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_CAST_CHECKS"
],
[])
AC_SUBST(DEBUG_CFLAGS)
dnl ***********************************************************************
dnl Check for Required Packages
dnl ***********************************************************************
PKG_CHECK_MODULES(TMPL, [gio-2.0 >= 2.47.4
gobject-introspection-1.0 >= 1.47.1])
dnl ***********************************************************************
dnl Initialize Libtool
dnl ***********************************************************************
LT_PREREQ([2.2])
LT_INIT
dnl ***********************************************************************
dnl Additional C Compiler Flags
dnl ***********************************************************************
AX_CHECK_COMPILE_FLAG([-Werror=unknown-warning-option], [
ax_compiler_flags_test="-Werror=unknown-warning-option"
], [
ax_compiler_flags_test=""
])
AX_APPEND_COMPILE_FLAGS([ \
-Wall \
-Wcast-align \
-Wdeclaration-after-statement \
-Wempty-body \
-Werror=format-security \
-Werror=format=2 \
-Wextra \
-Wformat \
-Wformat-nonliteral \
-Wformat-security \
-Winit-self \
-Wmisleading-indentation \
-Wmissing-include-dirs \
-Wshift-negative-value \
-Wnested-externs \
-Wno-missing-field-initializers \
-Wno-sign-compare \
-Wno-strict-aliasing \
-Wno-uninitialized \
-Wno-unused-parameter \
-Wpointer-arith \
-Wredundant-decls \
-Wreturn-type \
-Wshadow \
-Wswitch-default \
-Wswitch-enum \
-Wundef \
-Wuninitialized \
], [], [$ax_compiler_flags_test])
AC_C_CONST
dnl ***********************************************************************
dnl Use --enable-tests to always build tests
dnl ***********************************************************************
AC_ARG_ENABLE([tests],
AS_HELP_STRING([--enable-tests],
[Enable always building tests during 'make all' [default=no]]),
[enable_tests=$enableval], [enable_tests=no])
AM_CONDITIONAL([ENABLE_TESTS], test "$enable_tests" = "yes")
dnl ***********************************************************************
dnl Support for gtk-doc Documentation Engine
dnl ***********************************************************************
GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
AM_CONDITIONAL(ENABLE_GTK_DOC, test "x$enable_gtk_doc" = "xyes")
AC_ARG_ENABLE(doc-cross-references,
AS_HELP_STRING([--disable-doc-cross-references],
[cross reference symbols from other libraries @<:@default=yes@:>@]),
enable_doc_cross_references=$enableval,
enable_doc_cross_references=yes)
AM_CONDITIONAL(ENABLE_DOC_CROSS_REFERENCES, test x$enable_doc_cross_references != xno)
dnl ***********************************************************************
dnl Enable optimizations such as -Bsymbolic
dnl ***********************************************************************
AC_MSG_CHECKING([whether to enable optimized builds])
AC_ARG_ENABLE(optimizations,
AC_HELP_STRING([--enable-optimizations],
[turn on build-time optimizations [default=yes]]),
[enable_optimizations=$enableval],
[AS_IF([test "x$enable_debug" = "xyes"],
[enable_optimizations="no"],
[enable_optimizations="yes"])])
AC_MSG_RESULT([$enable_optimizations])
OPTIMIZE_CFLAGS=""
OPTIMIZE_LDFLAGS=""
# Enable -Bsymbolic
AS_IF([test "$enable_optimizations" != "no"],
[AX_CHECK_LINK_FLAG([-Wl,-Bsymbolic],
[OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -Wl,-Bsymbolic"])
AX_CHECK_LINK_FLAG([-fno-plt],
[OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -fno-plt"])])
AC_SUBST(OPTIMIZE_CFLAGS)
AC_SUBST(OPTIMIZE_LDFLAGS)
dnl ***********************************************************************
dnl Check if we should instrument our targets
dnl ***********************************************************************
AC_MSG_CHECKING([for --enable-profiling])
AC_ARG_ENABLE(profiling,
AC_HELP_STRING([--enable-profiling],
[turn on runtime instrumentation [default=no]]),
[enable_profiling=$enableval],
[enable_profiling=no])
AS_IF([test "$enable_profiling" = "yes"],[
ac_save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -pg"
AC_LINK_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],
[PROFILING_CFLAGS="-pg"],
[enable_profiling=no])
CFLAGS="$ac_save_cflags $PROFILING_CFLAGS"
])
AC_MSG_RESULT([$enable_profiling])
dnl ***********************************************************************
dnl Enable GObject Introspection bindings
dnl ***********************************************************************
GOBJECT_INTROSPECTION_CHECK([1.42.0])
dnl ***********************************************************************
dnl Process .in Files
dnl ***********************************************************************
AC_CONFIG_FILES([
Makefile
data/Makefile
data/template-glib-1.0.pc
examples/Makefile
doc/Makefile
doc/version.xml
po/Makefile.in
src/Makefile
src/tmpl-debug.h
tests/Makefile
])
AC_OUTPUT
echo ""
echo " ${PACKAGE} - ${VERSION}"
echo ""
echo " Options"
echo ""
echo " Prefix ............................... : ${prefix}"
echo " Library Directory .................... : ${libdir}"
echo " Optimized Build ...................... : ${enable_optimizations}"
echo ""
echo " Development Options"
echo ""
echo " Enable Debug ......................... : ${enable_debug}"
echo " Enable Profiling (-pg)................ : ${enable_profiling}"
echo " Build Test Suite ..................... : ${enable_tests}"
echo " Build API reference .................. : ${enable_gtk_doc}"
echo " Use cross-referencing in API docs .... : ${enable_doc_cross_references}"
echo " Vala support ......................... : ${enable_vala}"
echo ""
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = template-glib-1.0.pc
-include $(top_srcdir)/git.mk
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: template-glib-1.0
Description: A fast templating library for GLib-based applications
Version: @VERSION@
Libs: -L${libdir} -ltemplate-glib-1.0
Cflags: -I${includedir}/template-glib-1.0
Requires: gio-2.0
## Process this file with automake to produce Makefile.in
NULL =
AUTOMAKE_OPTIONS = 1.6
# The name of the module.
DOC_MODULE=template-glib
# The top-level SGML file.
DOC_MAIN_SGML_FILE=template-glib-docs.sgml
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=
# Extra options to pass to gtkdoc-scangobj
SCANGOBJ_OPTIONS=
# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=$(top_srcdir)/src
# Used for dependencies
HFILE_GLOB=$(top_srcdir)/src/tmpl-*.h
CFILE_GLOB=$(top_srcdir)/src/tmpl-*.c
# Header files to ignore when scanning
IGNORE_HFILES=$(top_srcdir)/src/tmpl-glib.h
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
AM_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_builddir)/src
GTKDOC_LIBS = -L$(top_builddir)/src -ltemplate-glib-1.0
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
content_files = version.xml
# Images to copy into HTML directory
HTML_IMAGES =
# Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS = \
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gobject \
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gio \
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib
include $(top_srcdir)/gtk-doc.make
# Other files to distribute
EXTRA_DIST += version.xml.in
GITIGNOREFILES = version.xml
-include $(top_srcdir)/git.mk
EXTRA_DATA = \
article.tmpl \
simple.tmpl \
$(NULL)
noinst_PROGRAMS = simple
simple_SOURCES = simple.c
simple_CFLAGS = $(TMPL_CFLAGS) -I$(top_srcdir)/src
simple_LDADD = $(TMPL_LIBS) $(top_builddir)/src/libtemplate-glib-1.0.la
if ENABLE_VAPIGEN
noinst_PROGRAMS += simple-vala
simple_vala_SOURCES = simple-vala.vala
simple_vala_CFLAGS = $(TMPL_CFLAGS) -I$(top_srcdir)/src
simple_vala_LDADD = $(TMPL_LIBS) $(top_builddir)/src/libtemplate-glib-1.0.la
simple_vala_VALAFLAGS = \
--vapidir $(top_builddir)/src \
--pkg template-glib-1.0
endif
-include $(top_srcdir)/git.mk
# git.mk, a small Makefile to autogenerate .gitignore files
# for autotools-based projects.
#
# Copyright 2009, Red Hat, Inc.
# Copyright 2010,2011,2012,2013 Behdad Esfahbod
# Written by Behdad Esfahbod
#