[glibmm/gmmproc-refactor: 17/23] Add Gir::Config module.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/gmmproc-refactor: 17/23] Add Gir::Config module.
- Date: Mon, 26 Sep 2011 13:16:29 +0000 (UTC)
commit 626c3fb268d9b1332a0d0819f96a7957e842f688
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Mon Sep 26 14:52:48 2011 +0200
Add Gir::Config module.
.gitignore | 1 +
configure.ac | 2 ++
tools/pm/Gir/Config.pm.in | 30 ++++++++++++++++++++++++++++++
3 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ef2bba1..3a527e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -157,3 +157,4 @@ giommconfig.h
/tools/extra_defs_gen/generate_defs_glib
/tools/generate_wrap_init.pl
/tools/gmmproc
+/tools/pm/Gir/Config.pm
diff --git a/configure.ac b/configure.ac
index 68f618c..7060b7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,7 @@ PKG_CHECK_MODULES([GIOMM], [$GIOMM_MODULES])
MM_PKG_CONFIG_SUBST([GTHREAD_CFLAGS], [--cflags-only-other gthread-2.0])
MM_PKG_CONFIG_SUBST([GTHREAD_LIBS], [--libs gthread-2.0])
+MM_PKG_CONFIG_SUBST([GIR_DIR], [--variable=girdir gobject-introspection-1.0])
AC_CHECK_PROGS([M4], [gm4 m4], [m4])
GLIB_GSETTINGS
@@ -134,6 +135,7 @@ AC_CONFIG_FILES([Makefile
tools/Makefile
tools/gmmproc
tools/generate_wrap_init.pl
+ tools/pm/Gir/Config.pm
glib/${GLIBMM_MODULE_NAME}.pc:glib/glibmm.pc.in
glib/${GLIBMM_MODULE_NAME}-uninstalled.pc:glib/glibmm-uninstalled.pc.in
glib/src/Makefile
diff --git a/tools/pm/Gir/Config.pm.in b/tools/pm/Gir/Config.pm.in
new file mode 100644
index 0000000..e562e31
--- /dev/null
+++ b/tools/pm/Gir/Config.pm.in
@@ -0,0 +1,30 @@
+## @configure_input@
+##
+## Copyright 2011 Krzesimir Nowak
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+##
+
+package Gir::Config;
+
+use strict;
+use warnings;
+
+sub get_girdir ()
+{
+ return '@GIRDIR@';
+}
+
+1; # indicate proper module load.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]