diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2005-11-08 20:18:51 +0000 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2005-11-08 20:18:51 +0000 |
commit | c3c4b97bc788db03578a98f3613de8c6a4ecc71a (patch) | |
tree | 04847c7b189092104ac835949289ba17d4ecc974 /python | |
parent | ec5ac1c6d58b791eb8c8069fb329baf37c1ed8a0 (diff) | |
download | vte-c3c4b97bc788db03578a98f3613de8c6a4ecc71a.tar.gz |
Update.
2005-11-08 Kjartan Maraas <kmaraas@gnome.org>
* NEWS: Update.
* Makefile.am:
* autogen.sh:
* configure.in:
* python/Makefile.am:
I'm attaching a patch that modernizes the python binding
build stuff. Notably, it excludes python/vte.c from the dist.
Right now as it stands, the file is disted, which means people's
builds will not work unless they build against pygtk 2.8,
which makes this bug somewhat important. Patch from Manish Sing
Closes bug #320931.
Diffstat (limited to 'python')
-rw-r--r-- | python/Makefile.am | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/python/Makefile.am b/python/Makefile.am index 833eb387..c18d1800 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -1,4 +1,4 @@ -EXTRA_DIST = vte.defs vte.override +EXTRA_DIST = vte.defs vte.override cat.py unrealize.py vte-demo.py PYTHON_MODULES = vtemodule.la @@ -9,11 +9,22 @@ pythonsiteexec_LTLIBRARIES = $(PYTHON_MODULES) CLEANFILES = vte.c vtemodule_la_CFLAGS = @VTE_CFLAGS@ @X_CFLAGS@ @PYTHON_INCLUDES@ @PYGTK_CFLAGS@ -vtemodule_la_SOURCES = vtemodule.c vte.c +vtemodule_la_SOURCES = vtemodule.c vtemodule_la_LIBADD = $(top_builddir)/src/libvte.la @LIBS@ @PYGTK_LIBS@ @VTE_LIBS@ @X_LIBS@ -vtemodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex=initvte +vtemodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initvte +nodist_vtemodule_la_SOURCES = vte.c vte.c: vte.defs vte.override - pygtk-codegen-2.0 -p py$(PACKAGE) -o vte.override --register @PYGTK_DATADIR@/pygtk/2.0/defs/gtk-types.defs --register @PYGTK_DATADIR@/pygtk/2.0/defs/gdk-types.defs --register @PYGTK_DATADIR@/pygtk/2.0/defs/pango-types.defs $< > $@ + +.defs.c: + (cd $(srcdir) \ + && $(PYGTK_CODEGEN) \ + --register $(PYGTK_DEFSDIR)/pango-types.defs \ + --register $(PYGTK_DEFSDIR)/gdk-types.defs \ + --register $(PYGTK_DEFSDIR)/gtk-types.defs \ + --override $*.override \ + --prefix py$* $*.defs) > gen-$*.c \ + && cp gen-$*.c $*.c \ + && rm -f gen-$*.c endif |