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 \
94 pygi-signal-closure.c \
95 pygi-signal-closure.h \
96 pygobject-external.h \
99 pygi-invoke-state-struct.h \
102 pygi-marshal-cleanup.c \
103 pygi-marshal-cleanup.h \
116 pygi-enum-marshal.c \
117 pygi-enum-marshal.h \
118 pygi-struct-marshal.c \
119 pygi-struct-marshal.h \
123 $(extension_cppflags) \
127 $(extension_cppflags)
129 $(extension_libadd) \
134 $(extension_ldflags) \
135 -export-symbols-regex "init_gi|PyInit__gi"
138 pygi_LTLIBRARIES += _gi_cairo.la
141 _gi_cairo_la_SOURCES = \
143 _gi_cairo_la_CFLAGS = \
147 _gi_cairo_la_CPPFLAGS = \
148 $(extension_cppflags)
149 _gi_cairo_la_LIBADD = \
150 $(extension_libadd) \
154 _gi_cairo_la_LDFLAGS = \
155 $(extension_ldflags) \
156 -export-symbols-regex "init_gi_cairo|PyInit__gi_cairo"
159 # This is to ensure we have a symlink to the .so in the
160 # build directory, which the Python interpreter can load
161 # directly without having to know how to parse .la files.
163 $(LN_S) -f .libs/$@ $@
165 all-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
167 check-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
169 rm -f $(LTLIBRARIES:.la=$(PYTHON_SO))