summaryrefslogtreecommitdiff
path: root/gi/Makefile.am
blob: 28825ab77f04f7e2f209763da2f8dda2443fe907 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
PLATFORM_VERSION = 2.0

pkgincludedir = $(includedir)/pygtk-$(PLATFORM_VERSION)
pkgpyexecdir = $(pyexecdir)

SUBDIRS = \
	repository \
	overrides

INCLUDES = -I$(top_srcdir)/gobject -I$(top_srcdir)/glib

pygidir = $(pkgpyexecdir)/gi
pygi_PYTHON = \
	types.py \
	module.py \
	importer.py \
	__init__.py

_gi_la_CFLAGS = \
	$(PYTHON_INCLUDES) \
	$(GI_CFLAGS)
_gi_la_LDFLAGS = \
	-module \
	-avoid-version \
	-export-symbols-regex "init_gi|PyInit__gi"
_gi_la_LIBADD = \
	$(GI_LIBS) \
	$(PYTHON_LIBS) \
	$(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@.la
_gi_la_SOURCES = \
	pygi-repository.c \
	pygi-repository.h \
	pygi-info.c \
	pygi-info.h \
	pygi-invoke.c \
	pygi-invoke.h \
	pygi-foreign.c \
	pygi-foreign.h \
	pygi-foreign-gvariant.c \
	pygi-foreign-gvariant.h \
	pygi-struct.c \
	pygi-struct.h \
	pygi-argument.c \
	pygi-argument.h \
	pygi-type.c \
	pygi-type.h \
	pygi-boxed.c \
	pygi-boxed.h \
	pygi-closure.c \
	pygi-closure.h \
	pygi-callbacks.c \
	pygi-callbacks.h \
	pygi.h \
	pygi-private.h \
	pygi-property.c \
	pygi-property.h \
	pygi-signal-closure.c \
	pygi-signal-closure.h \
	pygobject-external.h \
	gimodule.c

_gi_cairo_la_CFLAGS = \
	$(PYTHON_INCLUDES) \
	$(GI_CFLAGS) \
	$(PYCAIRO_CFLAGS)
_gi_cairo_la_LDFLAGS = \
	-module \
	-avoid-version \
	-export-symbols-regex "init_gi_cairo|PyInit__gi_cairo"
_gi_cairo_la_LIBADD = \
	$(GI_LIBS) \
	$(PYCAIRO_LIBS) \
	$(PYTHON_LIBS)
_gi_cairo_la_SOURCES = pygi-foreign-cairo.c


pygi_LTLIBRARIES = _gi.la

if ENABLE_CAIRO
pygi_LTLIBRARIES += _gi_cairo.la
endif


# This is to ensure we have a symlink to the .so in the
# build directory, which the Python interpreter can load
# directly without having to know how to parse .la files.
.la.so:
	test -L $@ || $(LN_S) .libs/$@ $@

all-local: $(LTLIBRARIES:.la=.so)
check-local: $(LTLIBRARIES:.la=.so)
clean-local:
	rm -f $(LTLIBRARIES:.la=.so)


-include $(top_srcdir)/git.mk