[gtk-mac-integration: 1/3] Get PyGObject-2.0's datadir from pkg-config
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-mac-integration: 1/3] Get PyGObject-2.0's datadir from pkg-config
- Date: Wed, 31 Dec 2014 04:25:11 +0000 (UTC)
commit ecc257cbb262157c39f4b7dfa0a7156b02cd6a82
Author: Brecht Machiels <brecht mos6581 org>
Date: Sun Dec 28 11:18:17 2014 +0100
Get PyGObject-2.0's datadir from pkg-config
acinclude.m4 | 5 +++++
bindings/python/gtkosx_application/Makefile.am | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/acinclude.m4 b/acinclude.m4
index 404fab7..6945eda 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -84,6 +84,11 @@ AC_DEFUN([GTK_PYTHON_CHECK],
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
AC_SUBST(PYGTK_DEFSDIR)
AC_MSG_RESULT($PYGTK_DEFSDIR)
+
+ AC_MSG_CHECKING([PyGObject DataDir])
+ PYGOBJECT_DATADIR=`$PKG_CONFIG --variable=datadir pygobject-2.0`
+ AC_SUBST(PYGOBJECT_DATADIR)
+ AC_MSG_RESULT($PYGOBJECT_DATADIR)
],
[ test x$GTK_MAJOR = "xgtk+-3.0" -o x$enable_python = "xall"],
dnl Check that pygobject and gtk-3.0.gir are present
diff --git a/bindings/python/gtkosx_application/Makefile.am b/bindings/python/gtkosx_application/Makefile.am
index 2671428..7744737 100644
--- a/bindings/python/gtkosx_application/Makefile.am
+++ b/bindings/python/gtkosx_application/Makefile.am
@@ -8,7 +8,7 @@ gtkosx_application_LTLIBRARIES = _gtkosx_application.la
headers = $(top_srcdir)/src/gtkosxapplication.h
gtkosx_application.defs: $(headers)
- $(PYTHON) $(datadir)/pygobject/2.0/codegen/h2def.py $(headers) > $@
+ $(PYTHON) $(PYGOBJECT_DATADIR)/pygobject/2.0/codegen/h2def.py $(headers) > $@
gtkosx_application.c: gtkosx_application.defs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]