diff options
author | Neil J. Patel <neil.patel@canonical.com> | 2009-12-11 20:08:27 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-11 20:08:27 -0600 |
commit | f7ba47b1042091f3181a7dd7ae21e10b03780455 (patch) | |
tree | 09306bd6ab570301ec60dca33b1ecad67c8b39f8 /python/Makefile.am | |
parent | d3038937c5f5621da42952a026c61e1f5f74e83a (diff) | |
download | libayatana-appindicator-f7ba47b1042091f3181a7dd7ae21e10b03780455.tar.gz libayatana-appindicator-f7ba47b1042091f3181a7dd7ae21e10b03780455.tar.bz2 libayatana-appindicator-f7ba47b1042091f3181a7dd7ae21e10b03780455.zip |
Stealing a bunch of Neil's python binding code.
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..6d19723 --- /dev/null +++ b/python/Makefile.am @@ -0,0 +1,39 @@ +defsdir = $(datadir)/pygtk/2.0/defs +defs_DATA = appindicator.defs + +#CFLAGS = -Wall -Werror +INCLUDES = \ + -DG_LOG_DOMAIN=\"appindicator-python\" \ + -DDATADIR=\"$(datadir)\" \ + -DLIBDIR=\"$(libdir)\" \ + $(APPINDICATOR_PYTHON_CFLAGS) \ + $(PYTHON_INCLUDES) + +pkgpythondir = $(pyexecdir) +pkgpyexecdir = $(pyexecdir) + +pkgappindicatordir = $(pkgpythondir)/appindicator +pkgappindicator_PYTHON = __init__.py + +appindicatordir = $(pkgpyexecdir)/appindicator +appindicator_LTLIBRARIES = _appindicator.la + +_appindicator_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_appindicator -lpyglib-2.0-python2.6 +_appindicator_la_LIBADD = $(APPINDICATOR_PYTHON_LIBS) +_appindicator_la_SOURCES = appindicatormodule.c +nodist__appindicator_la_SOURCES = appindicator.c + +CLEANFILES = appindicator.c +EXTRA_DIST = appindicator.override appindicator-arg-types.py $(defs_DATA) +appindicator.c: $(defs_DATA) appindicator.override + +%.c: %.defs + (cd $(srcdir) \ + && $(PYGTK_CODEGEN) \ + --register $(PYGTK_DEFSDIR)/gtk-types.defs \ + --register $(PYGTK_DEFSDIR)/gdk-types.defs \ + --load-types appindicator-arg-types.py \ + --override $*.override \ + --prefix py$* $*.defs) > gen-$*.c \ + && cp gen-$*.c $*.c \ + && rm -f gen-$*.c |