17 # Windows requires Python modules to be explicitly linked to libpython.
18 # Extension modules are shared libaries (.dll), but need to be
19 # called .pyd for Python to load it as an extension module.
23 extension_ldflags += \
27 pkgincludedir = $(includedir)/pygobject-$(PLATFORM_VERSION)
29 pkginclude_HEADERS = pygobject.h
32 pygidir = $(pyexecdir)/gi
34 pygi_LTLIBRARIES = _gi.la
48 pygobject-internal.h \
65 pyglib-python-compat.h \
94 pygi-signal-closure.c \
95 pygi-signal-closure.h \
98 pygi-invoke-state-struct.h \
101 pygi-marshal-cleanup.c \
102 pygi-marshal-cleanup.h \
115 pygi-enum-marshal.c \
116 pygi-enum-marshal.h \
117 pygi-struct-marshal.c \
118 pygi-struct-marshal.h \
122 $(CODE_COVERAGE_CFLAGS) \
124 $(extension_cppflags) \
128 $(CODE_COVERAGE_CPPFLAGS) \
129 $(extension_cppflags)
131 $(CODE_COVERAGE_LIBS) \
132 $(extension_libadd) \
138 $(extension_ldflags) \
139 -export-symbols-regex "init_gi|PyInit__gi"
142 pygi_LTLIBRARIES += _gi_cairo.la
145 _gi_cairo_la_SOURCES = \
147 _gi_cairo_la_CFLAGS = \
148 $(CODE_COVERAGE_CFLAGS) \
153 _gi_cairo_la_CPPFLAGS = \
154 $(CODE_COVERAGE_CPPFLAGS) \
155 $(extension_cppflags)
156 _gi_cairo_la_LIBADD = \
157 $(CODE_COVERAGE_LIBS) \
158 $(extension_libadd) \
162 _gi_cairo_la_LDFLAGS = \
164 $(extension_ldflags) \
165 -export-symbols-regex "init_gi_cairo|PyInit__gi_cairo"
168 # This is to ensure we have a symlink to the .so in the
169 # build directory, which the Python interpreter can load
170 # directly without having to know how to parse .la files.
172 $(LN_S) -f .libs/$@ $@
174 all-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
176 check-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
178 rm -f $(LTLIBRARIES:.la=$(PYTHON_SO))