[latexila] Autotools: compile Vala sources
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Autotools: compile Vala sources
- Date: Tue, 4 Sep 2012 20:02:49 +0000 (UTC)
commit b2d164da504eea80f549bb3137ac873ae3ccf918
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Wed Aug 29 18:14:40 2012 +0200
Autotools: compile Vala sources
Handle the config.h, add some AC_DEFINEs, etc.
configure.ac | 26 ++++++++++++++++++++++++--
src/Makefile.am | 8 +++++++-
2 files changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 50f638e..21201cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,15 @@ AC_SUBST([GTKSOURCEVIEW_REQUIRED_VERSION])
AC_SUBST([GTKSPELL_REQUIRED_VERSION])
AC_SUBST([VALA_REQUIRED_VERSION])
+# Some directories
+AC_DEFINE_UNQUOTED([DATA_DIR],
+ ["${datadir}/latexila"],
+ [latexila data directory])
+
+AC_DEFINE_UNQUOTED([ICONS_DIR],
+ ["${datadir}/icons/hicolor"],
+ [icons directory])
+
# Checks for programs
AC_PROG_CC
AC_PROG_INSTALL
@@ -53,12 +62,25 @@ AC_SUBST([LATEXILA_CFLAGS])
AC_SUBST([LATEXILA_LIBS])
# Native Language Support
-GETTEXT_PACKAGE="latexila"
-AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([LOCALE_DIR],
+ ["${localedir}"],
+ [locale directory])
+
+AC_DEFINE([GETTEXT_PACKAGE],
+ ["latexila"],
+ [gettext package])
# GSettings
GLIB_GSETTINGS
+AC_DEFINE_UNQUOTED([SCHEMA_DIR],
+ ["${datadir}"],
+ [GSettings schemas directory])
+
+AC_DEFINE([DESKTOP_SCHEMAS],
+ [1],
+ [Use desktop GSettings schemas])
+
# Generate files
AC_CONFIG_FILES([Makefile
src/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 9447f6a..0d94522 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -66,5 +66,11 @@ latexila_SOURCES = \
$(vapidir)/gtkspell-2.0.vapi \
$(vapidir)/menu_tool_action.vapi
-latexila_CPPFLAGS = -I$(top_srcdir) $(LATEXILA_CFLAGS)
+latexila_CPPFLAGS = \
+ -I$(top_srcdir) \
+ -I$(srcdir)/gedit \
+ $(LATEXILA_CFLAGS)
+
latexila_LDFLAGS = $(LATEXILA_LIBS)
+
+INCLUDES = -include config.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]