18 # Windows requires Python modules to be explicitly linked to libpython.
19 # Extension modules are shared libaries (.dll), but need to be
20 # called .pyd for Python to load it as an extension module.
24 extension_ldflags += \
28 pkgincludedir = $(includedir)/pygobject-$(PLATFORM_VERSION)
30 pkginclude_HEADERS = pygobject.h
33 pygidir = $(pyexecdir)/gi
35 pygi_LTLIBRARIES = _gi.la
66 pyglib-python-compat.h \
95 pygi-signal-closure.c \
96 pygi-signal-closure.h \
97 pygobject-external.h \
100 pygi-invoke-state-struct.h \
103 pygi-marshal-cleanup.c \
104 pygi-marshal-cleanup.h \
117 pygi-enum-marshal.c \
118 pygi-enum-marshal.h \
119 pygi-struct-marshal.c \
120 pygi-struct-marshal.h \
124 $(extension_cppflags) \
128 $(extension_cppflags)
130 $(extension_libadd) \
135 $(extension_ldflags) \
136 -export-symbols-regex "init_gi|PyInit__gi"
139 pygi_LTLIBRARIES += _gi_cairo.la
142 _gi_cairo_la_SOURCES = \
144 _gi_cairo_la_CFLAGS = \
148 _gi_cairo_la_CPPFLAGS = \
149 $(extension_cppflags)
150 _gi_cairo_la_LIBADD = \
151 $(extension_libadd) \
155 _gi_cairo_la_LDFLAGS = \
156 $(extension_ldflags) \
157 -export-symbols-regex "init_gi_cairo|PyInit__gi_cairo"
160 # This is to ensure we have a symlink to the .so in the
161 # build directory, which the Python interpreter can load
162 # directly without having to know how to parse .la files.
164 $(LN_S) -f .libs/$@ $@
166 all-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
168 check-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
170 rm -f $(LTLIBRARIES:.la=$(PYTHON_SO))