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
46 pygobject-internal.h \
61 pygi-python-compat.c \
62 pygi-python-compat.h \
91 pygi-signal-closure.c \
92 pygi-signal-closure.h \
95 pygi-invoke-state-struct.h \
98 pygi-marshal-cleanup.c \
99 pygi-marshal-cleanup.h \
112 pygi-enum-marshal.c \
113 pygi-enum-marshal.h \
114 pygi-struct-marshal.c \
115 pygi-struct-marshal.h \
119 $(CODE_COVERAGE_CFLAGS) \
121 $(extension_cppflags) \
125 $(CODE_COVERAGE_CPPFLAGS) \
126 $(extension_cppflags)
128 $(CODE_COVERAGE_LIBS) \
129 $(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 = \
145 $(CODE_COVERAGE_CFLAGS) \
150 _gi_cairo_la_CPPFLAGS = \
151 $(CODE_COVERAGE_CPPFLAGS) \
152 $(extension_cppflags)
153 _gi_cairo_la_LIBADD = \
154 $(CODE_COVERAGE_LIBS) \
155 $(extension_libadd) \
159 _gi_cairo_la_LDFLAGS = \
161 $(extension_ldflags) \
162 -export-symbols-regex "init_gi_cairo|PyInit__gi_cairo"
165 # This is to ensure we have a symlink to the .so in the
166 # build directory, which the Python interpreter can load
167 # directly without having to know how to parse .la files.
169 $(LN_S) -f .libs/$@ $@
171 all-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
173 check-local: $(LTLIBRARIES:.la=$(PYTHON_SO))
175 rm -f $(LTLIBRARIES:.la=$(PYTHON_SO))