File: Makefile-python.am

package info (click to toggle)
hippo-canvas 0.3.1-1.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 2,820 kB
  • ctags: 1,823
  • sloc: ansic: 12,985; sh: 10,115; makefile: 81; xml: 40; python: 31
file content (47 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download | duplicates (2)
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
hippo_la_CPPFLAGS =			\
	$(AM_CPPFLAGS)			\
	-I $(top_srcdir)/common		\
	-I $(top_srcdir)/linux		\
	-I $(top_srcdir)/python		\
	$(PYTHON_INCLUDES)		\
	$(PYTHON_BINDINGS_CFLAGS)	\
	$(PYCAIRO_CFLAGS)		\
	$(LIBHIPPOCANVAS_CFLAGS)

PYTHONSRCDIR=$(top_srcdir)/python

pyhippodir = $(pyexecdir)
pyhippo_LTLIBRARIES=hippo.la

hippo_la_LDFLAGS = -module -avoid-version
hippo_la_LIBADD =					\
	$(PYTHON_BINDINGS_LIBS)				\
	$(LIBHIPPOCANVAS_LIBS)				\
	$(top_builddir)/libhippocanvas-1.la

hippo_la_SOURCES = 				\
	$(PYTHONSRCDIR)/canvas-box-child.c	\
	$(PYTHONSRCDIR)/canvas-box-child.h	\
	$(PYTHONSRCDIR)/hippomodule.c

nodist_hippo_la_SOURCES = \
	hippo.c

PYTHONDEFS_FILES =				\
	$(PYTHONSRCDIR)/hippo.defs		\
	$(PYTHONSRCDIR)/hippo.override		\
	$(PYTHONSRCDIR)/arg-types.py

CLEANFILES += hippo.c
EXTRA_DIST += $(PYTHONDEFS_FILES)

hippo.c: $(PYTHONDEFS_FILES)
	($(PYGTK_CODEGEN) \
	    --load-types $(PYTHONSRCDIR)/arg-types.py \
            --register $(PYGTK_DEFSDIR)/pango.defs \
            --register $(PYGTK_DEFSDIR)/gtk-types.defs \
            --register $(PYGTK_DEFSDIR)/gdk-types.defs \
	    --override $(PYTHONSRCDIR)/hippo.override \
	    --prefix pyhippo $(PYTHONSRCDIR)/hippo.defs) > gen-hippo.c \
	&& cp gen-hippo.c $*.c \
	&& rm -f gen-hippo.c