summaryrefslogtreecommitdiff
path: root/bindings/python/Makefile.am
blob: 9841596a8a61fb1c89eefa9748c806631746cba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
noinst_LTLIBRARIES = \
	eom.la

nodist_eom_la_SOURCES = \
	eom.c

eom_la_LDFLAGS = \
	-module -avoid-version

eom_la_LIBADD = 		\
	$(PYTHON_LIB_LOC)       \
	$(PYTHON_LIBS)		\
	$(PYTHON_EXTRA_LIBS)	\
	$(PYGTK_LIBS)

eom_la_CFLAGS = 					\
	-I$(top_srcdir)					\
	-I$(top_builddir)				\
	-I$(top_srcdir)/src				\
	-I$(top_builddir)/src				\
	-I$(top_srcdir)/cut-n-paste/toolbar-editor	\
	$(EOM_CFLAGS)					\
	$(NO_STRICT_ALIASING_CFLAGS)			\
	$(PYGTK_CFLAGS)					\
	$(PYTHON_CFLAGS)				\
	$(AM_CFLAGS)

$(top_builddir)/src/eom-enum-types.h:
	$(AM_V_GEN)cd $(top_builddir)/src && $(MAKE) eom-enum-types.h

eom.c: eom.defs eom.override $(top_builddir)/src/eom-enum-types.h
	$(AM_V_GEN)( cd $(srcdir) && $(PYGOBJECT_CODEGEN) \
		--register $(PYGOBJECT_DEFSDIR)/gio-types.defs \
		--register $(PYGTK_DEFSDIR)/pango-types.defs \
		--register $(PYGTK_DEFSDIR)/gdk-types.defs \
		--register $(PYGTK_DEFSDIR)/gtk-types.defs \
		--override $*.override \
		--prefix py$* $(<F) ) > $@

BINDING_EOM_HEADERS_SRCDIR_IN = 			\
	src/eom-application.h				\
	src/eom-window.h				\
	src/eom-dialog.h				\
	src/eom-properties-dialog.h			\
	src/eom-message-area.h				\
	src/eom-statusbar.h				\
	src/eom-thumb-nav.h				\
	src/eom-image.h					\
	src/eom-scroll-view.h				\
	src/eom-thumb-view.h				\
	src/eom-list-store.h				\
	src/eom-job-queue.h				\
	src/eom-jobs.h					\
	src/eom-plugin.h

BINDING_HEADERS_BUILDDIR_IN =

BINDING_EOM_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_EOM_HEADERS_SRCDIR_IN))

BINDING_HEADERS_BUILDDIR   := $(addprefix $(top_builddir)/,$(BINDING_HEADERS_BUILDDIR_IN))

regenerate-python-binding:
	$(PYGTK_H2DEF) $(sort $(BINDING_EOM_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > eom.defs.new

BUILT_SOURCES = \
	eom.c

EXTRA_DIST = 		\
	eom.override	\
	eom.defs

CLEANFILES = $(BUILT_SOURCES)

dist-hook:
	cd $(distdir); rm -f $(BUILT_SOURCES)

-include $(top_srcdir)/git.mk