diff options
author | Ted Gould <ted@gould.cx> | 2009-12-17 00:14:58 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-17 00:14:58 -0600 |
commit | 20a7ac227046fa1e117abfe93ad3c86d923b9d40 (patch) | |
tree | c61182ba6c059aa3086267f9b990b740a4b25596 /bindings/python/Makefile.am | |
parent | 0d66efa5b71d3d4e9e4456ea5a59067b9c923b8e (diff) | |
parent | 97f6e62d618747a03ba44486f70a2230af5177fd (diff) | |
download | ayatana-indicator-application-20a7ac227046fa1e117abfe93ad3c86d923b9d40.tar.gz ayatana-indicator-application-20a7ac227046fa1e117abfe93ad3c86d923b9d40.tar.bz2 ayatana-indicator-application-20a7ac227046fa1e117abfe93ad3c86d923b9d40.zip |
* Upstream work
* Python bindings
* Mono binding clean up
Diffstat (limited to 'bindings/python/Makefile.am')
-rw-r--r-- | bindings/python/Makefile.am | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am new file mode 100644 index 0000000..0b606db --- /dev/null +++ b/bindings/python/Makefile.am @@ -0,0 +1,40 @@ +defsdir = $(datadir)/pygtk/2.0/defs +defs_DATA = appindicator.defs + +#CFLAGS = -Wall -Werror +INCLUDES = \ + -I$(top_srcdir)/src \ + -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) -L$(top_builddir)/src/.libs -lappindicator +_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 |