File: Makefile.am

package info (click to toggle)
pygobject 3.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,268 kB
  • ctags: 4,864
  • sloc: ansic: 20,813; python: 15,139; sh: 11,845; makefile: 567; xml: 31
file content (168 lines) | stat: -rw-r--r-- 3,263 bytes parent folder | download
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
PLATFORM_VERSION = 3.0

SUBDIRS = \
	repository \
	overrides \
	_gobject

extension_cppflags = \
	$(PYTHON_INCLUDES) \
	-DPY_SSIZE_T_CLEAN

extension_ldflags = \
	-module \
	-avoid-version \
	-shrext $(PYTHON_SO)

if OS_WIN32
# Windows requires Python modules to be explicitly linked to libpython.
# Extension modules are shared libaries (.dll), but need to be
# called .pyd for Python to load it as an extension module.
extension_libadd = \
	$(PYTHON_LIBS)

extension_ldflags += \
	-no-undefined
endif

pkgincludedir = $(includedir)/pygobject-$(PLATFORM_VERSION)
if WITH_COMMON
pkginclude_HEADERS = pygobject.h
endif

pygidir = $(pyexecdir)/gi

pygi_LTLIBRARIES = _gi.la

_gi_la_SOURCES = \
	gobjectmodule.c \
	pygboxed.c \
	pygboxed.h \
	pygenum.c \
	pygenum.h \
	pygflags.c \
	pygflags.h \
	pyginterface.c \
	pyginterface.h \
	pygobject.c \
	pygobject.h \
	pygobject-private.h \
	pygparamspec.c \
	pygparamspec.h \
	pygpointer.c \
	pygpointer.h \
	pygtype.c \
	pygtype.h \
	glibmodule.c \
	pygoptioncontext.c \
	pygoptioncontext.h \
	pygoptiongroup.c \
	pygoptiongroup.h \
	pygspawn.c \
	pygspawn.h \
	pyglib.c \
	pyglib.h \
	pyglib-private.h \
	pyglib-python-compat.h \
	gimodule.c \
	pygi-repository.c \
	pygi-repository.h \
	pygi-info.c \
	pygi-info.h \
	pygi-foreign.c \
	pygi-foreign.h \
	pygi-foreign-api.h \
	pygi-struct.c \
	pygi-struct.h \
	pygi-source.c \
	pygi-source.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-ccallback.c \
	pygi-ccallback.h \
	pygi.h \
	pygi-private.h \
	pygi-property.c \
	pygi-property.h \
	pygi-signal-closure.c \
	pygi-signal-closure.h \
	pygobject-external.h \
	pygi-invoke.c \
	pygi-invoke.h \
	pygi-invoke-state-struct.h \
	pygi-cache.h \
	pygi-cache.c \
	pygi-marshal-cleanup.c \
	pygi-marshal-cleanup.h \
	pygi-basictype.c \
	pygi-basictype.h \
	pygi-list.c \
	pygi-list.h \
	pygi-array.c \
	pygi-array.h \
	pygi-error.c \
	pygi-error.h \
	pygi-object.c \
	pygi-object.h \
	pygi-value.c \
	pygi-value.h \
	pygi-enum-marshal.c \
	pygi-enum-marshal.h \
	pygi-struct-marshal.c \
	pygi-struct-marshal.h \
	pygi-hashtable.c \
	pygi-hashtable.h
_gi_la_CFLAGS = \
	$(extension_cppflags) \
	$(GLIB_CFLAGS) \
	$(GI_CFLAGS)
_gi_la_CPPFLAGS = \
	$(extension_cppflags)
_gi_la_LIBADD = \
	$(extension_libadd) \
	$(GLIB_LIBS) \
	$(GI_LIBS) \
	$(FFI_LIBS)
_gi_la_LDFLAGS = \
	$(extension_ldflags) \
	-export-symbols-regex "init_gi|PyInit__gi"

if ENABLE_CAIRO
pygi_LTLIBRARIES += _gi_cairo.la
endif

_gi_cairo_la_SOURCES = \
	pygi-foreign-cairo.c
_gi_cairo_la_CFLAGS = \
	$(GI_CFLAGS) \
	$(CAIRO_CFLAGS) \
	$(PYCAIRO_CFLAGS)
_gi_cairo_la_CPPFLAGS = \
	$(extension_cppflags)
_gi_cairo_la_LIBADD = \
	$(extension_libadd) \
	$(GI_LIBS) \
	$(CAIRO_LIBS) \
	$(PYCAIRO_LIBS)
_gi_cairo_la_LDFLAGS = \
	$(extension_ldflags) \
	-export-symbols-regex "init_gi_cairo|PyInit__gi_cairo"


# 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.
%$(PYTHON_SO): %.la
	$(LN_S) -f .libs/$@ $@

all-local: $(LTLIBRARIES:.la=$(PYTHON_SO))

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