forked from gcampax/gtk-js-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
87 lines (71 loc) · 2.46 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
AC_PREREQ(2.63)
AC_INIT([com.example.Gtk.JSApplication], [0.1],
[bugs@js-app.example.com],
[gtk-js-app],
[http://www.example.com/gtk-js-app/])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.12 dist-xz no-dist-gzip foreign tar-ustar no-define serial-tests -Wno-portability])
# revert automake using PACKAGE_TARNAME instead of PACKAGE_NAME
AC_SUBST([PACKAGE], [$PACKAGE_NAME])
PACKAGE_DBUS_PATH=/`echo $PACKAGE_NAME | sed 's,\.,/,g'`
AC_SUBST([PACKAGE_DBUS_PATH], [$PACKAGE_DBUS_PATH])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
GETTEXT_PACKAGE=$PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.])
IT_PROG_INTLTOOL([0.50.1])
AC_PROG_CC
AM_PROG_CC_C_O
LT_INIT([disable-static])
PKG_PROG_PKG_CONFIG([0.22])
APPSTREAM_XML
GLIB_GSETTINGS
GOBJECT_INTROSPECTION_REQUIRE([1.35.9])
GJS_MIN_VERSION=1.39.91
PKG_CHECK_MODULES([DEPS], [gdk-3.0
gdk-pixbuf-2.0
gio-2.0
glib-2.0
gobject-2.0
gtk+-3.0])
AC_PATH_PROG([GJS],[gjs])
AC_ARG_ENABLE(dogtail,
[AS_HELP_STRING([--enable-dogtail],
[test using dogtail [default=yes]])],,
enable_dogtail=yes)
AM_CONDITIONAL(ENABLE_DOGTAIL, test "$enable_dogtail" != no)
# coverage
AC_ARG_ENABLE([coverage],
[AS_HELP_STRING([--enable-coverage],
[enable code coverage])],
, [enable_coverage=no])
if test x$enable_coverage = xyes; then
if test x$GCC != xyes; then
AC_MSG_ERROR([GCC is required for --enable-coverage])
fi
AC_PATH_TOOL([LCOV], [lcov])
AC_PATH_TOOL([GENHTML], [genhtml])
if test x$LCOV = x || test x$GENHTML = x; then
AC_MSG_ERROR([lcov and genhtml are required for --enable-coverage])
fi
# only enable these if we ever want code coverage for libgd
# (which we don't)
#CFLAGS="$CFLAGS -g -O0 --coverage"
#CXXFLAGS="$CXXFLAGS -g -O0 --coverage"
#LIBS="$LIBS -lgcov"
fi
AM_CONDITIONAL([ENABLE_COVERAGE], [test x$enable_coverage = xyes])
GLIB_TESTS
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
AC_CONFIG_FILES([
Makefile
data/Makefile
data/icons/Makefile
src/Makefile
tests/Makefile
po/Makefile.in
])
AC_OUTPUT