Commit b2661054 authored by Johan Dahlin's avatar Johan Dahlin
parent 597bd643
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = 1.7
SUBDIRS = docs codegen glib gobject gio examples tests
SUBDIRS = docs codegen glib gobject gio gi examples tests
PLATFORM_VERSION = 2.0
......@@ -118,3 +118,15 @@ dist-hook: $(BUILT_EXTRA_DIST)
for f in $$files; do \
if test -f $$f; then d=.; else d=$(srcdir); fi; \
rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done
check.gdb:
cd tests && $(MAKE) check.gdb
%.gdb:
cd tests && $(MAKE) $*.gdb
check.valgrind:
cd tests && $(MAKE) check.valgrind
%.valgrind:
cd tests && $(MAKE) $*.valgrind
......@@ -16,6 +16,7 @@ AC_INIT(pygobject, pygobject_version,
[http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject])
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I .")
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([gobject/gobjectmodule.c])
AC_DEFINE(PYGOBJECT_MAJOR_VERSION, pygobject_major_version, [pygobject major version])
AC_SUBST(PYGOBJECT_MAJOR_VERSION, pygobject_major_version)
......@@ -24,10 +25,10 @@ AC_SUBST(PYGOBJECT_MINOR_VERSION, pygobject_minor_version)
AC_DEFINE(PYGOBJECT_MICRO_VERSION, pygobject_micro_version, [pygobject micro version])
AC_SUBST(PYGOBJECT_MICRO_VERSION, pygobject_micro_version)
AC_CONFIG_SRCDIR([gobject/gobjectmodule.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
AM_INIT_AUTOMAKE(foreign)
AM_MAINTAINER_MODE
dnl put the ACLOCAL flags in the makefile
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
......@@ -68,10 +69,13 @@ m4_define([_LT_AC_TAGCONFIG],[])
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
dnl when using libtool 2.x create libtool early, because it's used in configure
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_CC_STDC
JD_PATH_PYTHON(2.3.5)
JD_PATH_PYTHON(2.5.2)
JD_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
......@@ -205,8 +209,20 @@ AC_ARG_ENABLE(pygi,
enable_pygi=no)
if test "$enable_pygi" != no; then
AC_DEFINE(ENABLE_PYGI,1,Use PyGI to create wrappers for introspection-enabled types)
PKG_CHECK_MODULES(GI,
glib-2.0 >= 2.22.4
gobject-introspection-1.0 >= 0.6.14
pygobject-2.0 >= 2.21.1
pycairo >= 1.0.2
)
fi
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
AC_SUBST(INTROSPECTION_SCANNER)
AC_SUBST(INTROSPECTION_COMPILER)
dnl add required cflags ...
if test "x$GCC" = "xyes"; then
JH_ADD_CFLAG([-Wall])
......@@ -231,6 +247,9 @@ AC_CONFIG_FILES(
docs/Makefile
docs/reference/entities.docbook
docs/xsl/fixxref.py
gi/Makefile
gi/repository/Makefile
gi/overrides/Makefile
glib/Makefile
gobject/Makefile
gio/Makefile
......
EXTRA_DIST = properties.py signal.py option.py
EXTRA_DIST = properties.py signal.py option.py cairo-demo.py
......@@ -8,7 +8,7 @@ SUBDIRS = \
overrides
AM_CFLAGS = \
$(PYTHON_INCLUDES) \
$(GNOME_CFLAGS) \
$(GI_CFLAGS) \
$(PYCAIRO_CFLAGS)
pygidir = $(pkgpyexecdir)/gi
......@@ -23,7 +23,7 @@ _gi_la_LDFLAGS = \
-avoid-version \
-export-symbols-regex init_gi
_gi_la_LIBADD = \
$(GNOME_LIBS) \
$(GI_LIBS) \
$(PYCAIRO_LIBS)
_gi_la_SOURCES = \
pygi-repository.c \
......
EXTRA_DIST = cairo-demo.py
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = \
-Wall \
-g
SUBDIRS = \
gi \
tests \
examples
EXTRA_DIST = \
autogen.sh \
pygi-convert.sh \
HACKING
check.gdb:
cd tests && $(MAKE) check.gdb
%.gdb:
cd tests && $(MAKE) $*.gdb
check.valgrind:
cd tests && $(MAKE) check.valgrind
%.valgrind:
cd tests && $(MAKE) $*.valgrind
AC_INIT(pygi, 0.6.1)
AM_INIT_AUTOMAKE(foreign)
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR(m4)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
AM_MAINTAINER_MODE
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AM_PROG_LIBTOOL
# Python
AM_PATH_PYTHON(2.5.2)
AC_PATH_TOOL(PYTHON_CONFIG, "python${PYTHON_VERSION}-config")
if test -z "$PYTHON_CONFIG"; then
AC_PATH_TOOL(PYTHON_CONFIG, "python-config-${PYTHON_VERSION}")
if test -z "$PYTHON_CONFIG"; then
AC_MSG_ERROR(Python development tools not found)
fi
fi
PYTHON_INCLUDES=`$PYTHON_CONFIG --includes`
AC_SUBST(PYTHON_INCLUDES)
save_CPPFLAGS="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} ${PYTHON_INCLUDES}"
AC_CHECK_HEADER(Python.h, , AC_MSG_ERROR(Python headers not found))
CPPFLAGS="${save_CPPFLAGS}"
# FFI
PKG_CHECK_MODULES(FFI, libffi >= 3.0)
# GNOME
PKG_CHECK_MODULES(GNOME,
glib-2.0 >= 2.22.4
gobject-introspection-1.0 >= 0.6.14
pygobject-2.0 >= 2.21.1
pycairo >= 1.0.2
)
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
AC_SUBST(INTROSPECTION_SCANNER)
AC_SUBST(INTROSPECTION_COMPILER)
AC_OUTPUT(
Makefile
examples/Makefile
gi/Makefile
gi/repository/Makefile
gi/overrides/Makefile
tests/Makefile
)
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gnome="http://api.gnome.org/doap-extensions#"
xmlns="http://usefulinc.com/ns/doap#">
<name xml:lang="en">PyGI</name>
<shortdesc xml:lang="en">Python dynamic bindings based on GObject-Introspection</shortdesc>
<category rdf:resource="http://api.gnome.org/doap-extensions#bindings" />
<mailing-list rdf:resource="http://www.daa.com.au/mailman/listinfo/pygtk" />
<homepage rdf:resource="http://live.gnome.org/PyGi" />
<maintainer>
<foaf:Person>
<foaf:name>Simon van der Linden</foaf:name>
<foaf:mbox rdf:resource="mailto:svdlinden@src.gnome.org" />
<gnome:userid>svdlinden</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Tomeu Vizoso</foaf:name>
<foaf:mbox rdf:resource="mailto:tomeu@sugarlabs.org" />
<gnome:userid>tomeuv</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Zach Goldberg</foaf:name>
<foaf:mbox rdf:resource="mailto:zach@zachgoldberg.com" />
<gnome:userid>zgoldberg</gnome:userid>
</foaf:Person>
</maintainer>
</Project>
......@@ -6,7 +6,7 @@
<name xml:lang="en">PyGObject</name>
<shortdesc xml:lang="en">Python bindings GLib, GObject and GIO</shortdesc>
<homepage rdf:resource="http://www.pygtk.org" />
<homepage rdf:resource="http://live.gnome.org/PyGObject" />
<mailing-list rdf:resource="http://www.daa.com.au/mailman/listinfo/pygtk" />
<category rdf:resource="http://api.gnome.org/doap-extensions#bindings" />
......@@ -38,4 +38,18 @@
<gnome:userid>tomeuv</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Simon van der Linden</foaf:name>
<foaf:mbox rdf:resource="mailto:svdlinden@src.gnome.org" />
<gnome:userid>svdlinden</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Zach Goldberg</foaf:name>
<foaf:mbox rdf:resource="mailto:zach@zachgoldberg.com" />
<gnome:userid>zgoldberg</gnome:userid>
</foaf:Person>
</maintainer>
</Project>
......@@ -19,7 +19,7 @@ testhelper_la_LIBADD = $(GLIB_LIBS)
testhelper_la_SOURCES = \
testhelpermodule.c \
test-thread.c \
test-unknown.c
test-unknown.c
tests = \
test_gicon.py \
......@@ -31,7 +31,10 @@ tests = \
test_signal.py \
test_subprocess.py \
test_unknown.py \
test_source.py
test_source.py \
test_everything.py \
test_gi.py \
test_overrides.py
# This is a hack to make sure a shared library is built
testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES)
......@@ -53,9 +56,23 @@ check-local: $(top_srcdir)/glib/__init__.py $(top_srcdir)/gobject/__init__.py $(
@rm -fr $(top_builddir)/gobject/*.pyc
@rm -fr $(top_builddir)/gio/*.pyc
all: $(LTLIBRARIES:.la=.so)
clean-local:
rm -f $(LTLIBRARIES:.la=.so)
.la.so:
$(LN_S) .libs/$@ $@ || true
check.gdb:
EXEC_NAME="gdb --args" $(MAKE) check
%.gdb:
EXEC_NAME="gdb --args" TEST_NAMES=$* $(MAKE) check
check.valgrind:
EXEC_NAME="valgrind" $(MAKE) check
%.valgrind:
EXEC_NAME="valgrind" TEST_NAMES=$* $(MAKE) check
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment