aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/Makefile.am
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2009-12-16 14:32:39 -0500
committerKen VanDine <ken.vandine@canonical.com>2009-12-16 14:32:39 -0500
commit4d9d260b7528dc9b1c2f1e205b38f29b34c8c320 (patch)
tree71df84215f1270ae62fe834b3cb863e111a505ff /bindings/python/Makefile.am
parent985c449e8efe4e258d286857f6a71a7726b43561 (diff)
parent251da6dc9c3ce7e84e83d734bb08cc42c6db2480 (diff)
downloadlibayatana-appindicator-4d9d260b7528dc9b1c2f1e205b38f29b34c8c320.tar.gz
libayatana-appindicator-4d9d260b7528dc9b1c2f1e205b38f29b34c8c320.tar.bz2
libayatana-appindicator-4d9d260b7528dc9b1c2f1e205b38f29b34c8c320.zip
merged in python bindings branch and some of my fixes needed for packaging
Diffstat (limited to 'bindings/python/Makefile.am')
-rw-r--r--bindings/python/Makefile.am40
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