diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-21 12:41:16 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-21 12:41:16 (GMT) |
commit | e4a8e189e7cf25236ffebc72ac8d7bed6893b70d (patch) | |
tree | e2bef921f0fb1161e1cc89b6df6312a6c1ae3c5f /python/Makefile.am | |
parent | d8d3d5a63b7934f0740cdebb5f3b1d8fc99ed16b (diff) |
Split the python bindings to their own directory
Diffstat (limited to 'python/Makefile.am')
-rw-r--r-- | python/Makefile.am | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/python/Makefile.am b/python/Makefile.am new file mode 100644 index 0000000..c91d3db --- /dev/null +++ b/python/Makefile.am @@ -0,0 +1,39 @@ +sugardir = $(pythondir)/hulahop +sugar_PYTHON = \ + __init__.py \ + webview.py + +INCLUDES = \ + $(DEPS_CFLAGS) \ + $(PYTHON_INCLUDES) \ + $(PYGTK_CFLAGS) \ + -I$(top_srcdir)/src + +pkgpyexec_LTLIBRARIES = _hulahop.la + +_hulahop_la_LDFLAGS = -module -avoid-version -R$(MOZILLA_HOME) -dlopen self +_hulahop_la_LIBADD = \ + $(GECKO_LIBS) \ + $(DEPS_LIBS) \ + $(MOZILLA_EXTRA_LIBS) \ + $(MOZILLA_GLUE_LIBS) \ + $(top_builddir)/src/libhulahop.la + +_hulahop_la_SOURCES = \ + hulahop.c \ + hulahopmodule.c + +hulahop.c: hulahop.defs hulahop.override + +CLEANFILES = hulahop.c +EXTRA_DIST = hulahop.override hulahop.defs + +.defs.c: + (cd $(srcdir)\ + && $(PYGTK_CODEGEN) \ + --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 |