diff options
author | Perberos <[email protected]> | 2011-11-07 16:46:58 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-07 16:46:58 -0300 |
commit | 528c1e5ff51e213936e800fc5a9a25da99c0bdf2 (patch) | |
tree | 77f8aa456b09367ba81f04d4562fc935f898a951 /plugin-loaders/python/bindings/Makefile.am | |
download | pluma-528c1e5ff51e213936e800fc5a9a25da99c0bdf2.tar.bz2 pluma-528c1e5ff51e213936e800fc5a9a25da99c0bdf2.tar.xz |
initial
Diffstat (limited to 'plugin-loaders/python/bindings/Makefile.am')
-rwxr-xr-x | plugin-loaders/python/bindings/Makefile.am | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/plugin-loaders/python/bindings/Makefile.am b/plugin-loaders/python/bindings/Makefile.am new file mode 100755 index 00000000..47183a55 --- /dev/null +++ b/plugin-loaders/python/bindings/Makefile.am @@ -0,0 +1,115 @@ +## Process this file with automake to produce Makefile.in + +noinst_LTLIBRARIES = \ + gedit.la + +nodist_gedit_la_SOURCES = \ + gedit.c \ + geditutils.c \ + geditcommands.c + +gedit_la_LDFLAGS = \ + -module -avoid-version + +gedit_la_LIBADD = \ + $(PYTHON_LIB_LOC) \ + $(PYTHON_LIBS) \ + $(PYTHON_EXTRA_LIBS) \ + $(PYGTK_LIBS) + +gedit_la_CFLAGS = \ + -I$(top_srcdir) \ + -I$(top_builddir) \ + -I$(top_srcdir)/gedit \ + -I$(top_builddir)/gedit \ + -I$(top_srcdir)/plugin-loaders/python \ + -I$(top_builddir)/plugin-loaders/python \ + $(GEDIT_CFLAGS) \ + $(NO_STRICT_ALIASING_CFLAGS) \ + $(PYGTK_CFLAGS) \ + $(PYTHON_CFLAGS) \ + $(AM_CFLAGS) + +$(top_builddir)/gedit/gedit-enum-types.h: + cd $(top_builddir)/gedit && $(MAKE) gedit-enum-types.h + +gedit.c: gedit.defs gedit.override geditplugin.override geditmessage.override $(top_builddir)/gedit/gedit-enum-types.h + ( cd $(srcdir) && $(PYGTK_CODEGEN) \ + --register $(PYGTK_DEFSDIR)/pango-types.defs \ + --register $(PYGTK_DEFSDIR)/gdk-types.defs \ + --register $(PYGTK_DEFSDIR)/gtk-types.defs \ + --register $(PYGTK_DEFSDIR)/gtksourceview2.defs \ + --register $(PYGOBJECT_DEFSDIR)/gio-types.defs \ + --override $*.override \ + --prefix py$* $(<F) ) > $@ + +geditutils.c: geditutils.defs geditutils.override + ( cd $(srcdir) && $(PYGTK_CODEGEN) \ + --override $*.override \ + --prefix py$* $(<F) ) > $@ + +geditcommands.c: geditcommands.defs geditcommands.override gedit.defs + ( cd $(srcdir) && $(PYGTK_CODEGEN) \ + --register gedit.defs \ + --register $(PYGTK_DEFSDIR)/gtk-types.defs \ + --override $*.override \ + --prefix py$* $(<F) ) > $@ + +BINDING_GEDIT_HEADERS_SRCDIR_IN = \ + gedit/gedit-app.h \ + gedit/gedit-document.h \ + gedit/gedit-encodings.h \ + gedit/gedit-plugin.h \ + plugin-loaders/python/gedit-plugin-python.h \ + gedit/gedit-view.h \ + gedit/gedit-statusbar.h \ + gedit/gedit-tab.h \ + gedit/gedit-panel.h \ + gedit/gedit-window.h \ + gedit/gedit-help.h \ + gedit/gedit-debug.h \ + gedit/gedit-message-type.h \ + gedit/gedit-message.h \ + gedit/gedit-message-bus.h \ + gedit/gedit-language-manager.h + +BINDING_UTILS_HEADERS_SRCDIR_IN = \ + gedit/gedit-utils.h + +BINDING_COMMANDS_HEADERS_SRCDIR_IN = \ + gedit/gedit-commands.h + +BINDING_HEADERS_BUILDDIR_IN = + +BINDING_GEDIT_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_GEDIT_HEADERS_SRCDIR_IN)) +BINDING_UTILS_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_UTILS_HEADERS_SRCDIR_IN)) +BINDING_COMMANDS_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_COMMANDS_HEADERS_SRCDIR_IN)) + +BINDING_HEADERS_BUILDDIR := $(addprefix $(top_builddir)/,$(BINDING_HEADERS_BUILDDIR_IN)) + +regenerate-python-binding: + $(PYGTK_H2DEF) $(sort $(BINDING_GEDIT_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > gedit.defs.new + $(PYGTK_H2DEF) $(sort $(BINDING_UTILS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > geditutils.defs.new + $(PYGTK_H2DEF) $(sort $(BINDING_COMMANDS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > geditcommands.defs.new + +BUILT_SOURCES = \ + gedit.c \ + geditutils.c \ + geditcommands.c + +EXTRA_DIST = \ + gedit.override \ + gedit.defs \ + geditutils.override \ + geditutils.defs \ + geditcommands.override \ + geditcommands.defs \ + geditmessage.override \ + geditplugin.override + +CLEANFILES = $(BUILT_SOURCES) + +dist-hook: + cd $(distdir); rm -f $(BUILT_SOURCES) + +-include $(top_srcdir)/git.mk |