@@ -278,6 +278,8 @@ LIBRARY_DEPS= @LIBRARY_DEPS@
278
278
LINK_PYTHON_DEPS=@LINK_PYTHON_DEPS@
279
279
PY_ENABLE_SHARED= @PY_ENABLE_SHARED@
280
280
STATIC_LIBPYTHON= @STATIC_LIBPYTHON@
281
+ ABI3DLLLIBRARY= libpython3.dll
282
+ ABI3LDLIBRARY= libpython3.dll.a
281
283
282
284
283
285
LIBS= @LIBS@
@@ -600,7 +602,7 @@ LIBEXPAT_HEADERS= \
600
602
# Default target
601
603
all: @DEF_MAKE_ALL_RULE@
602
604
build_all: check-clean-src $(BUILDPYTHON) $(BUILDPYTHONW) $(BUILDVENVLAUNCHER) $(BUILDVENVWLAUNCHER) platform oldsharedmods sharedmods \
603
- gdbhooks Programs/_testembed python-config
605
+ gdbhooks Programs/_testembed python-config $(ABI3DLLLIBRARY) $(ABI3LDLIBRARY)
604
606
build_wasm: check-clean-src $(BUILDPYTHON) platform oldsharedmods python-config
605
607
606
608
# Check that the source is clean when building out of source.
@@ -724,6 +726,9 @@ pythonw_exe.o: $(srcdir)/PC/pythonw_exe.rc
724
726
python_nt.o: $(srcdir)/PC/python_nt.rc
725
727
$(WINDRES) $(RCFLAGS) -DORIGINAL_FILENAME=\\\"$(DLLLIBRARY)\\\" -I$(srcdir)/Include -I$(srcdir)/PC -I. $(srcdir)/PC/python_nt.rc $@
726
728
729
+ python3dll_nt.o: $(srcdir)/PC/python_nt.rc
730
+ $(WINDRES) $(RCFLAGS) -DORIGINAL_FILENAME=\\\"$(ABI3DLLLIBRARY)\\\" -I$(srcdir)/Include -I$(srcdir)/PC -I. $(srcdir)/PC/python_nt.rc $@
731
+
727
732
venvlauncher.o: $(srcdir)/PC/pylauncher.rc
728
733
$(WINDRES) $(RCFLAGS) -DPY_ICON -I$(srcdir)/Include -I$(srcdir)/PC -I. $(srcdir)/PC/pylauncher.rc $@
729
734
@@ -852,6 +857,10 @@ $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS) python_nt.o
852
857
else true; \
853
858
fi
854
859
860
+ $(ABI3DLLLIBRARY) $(ABI3LDLIBRARY): python3dll_nt.o $(srcdir)/PC/launcher.c
861
+ $(LDSHARED) -DPYTHON_DLL_NAME=\"$(DLLLIBRARY)\" $(srcdir)/PC/python3dll.c -Wl,--out-implib=$(ABI3LDLIBRARY) -o $(ABI3DLLLIBRARY) python3dll_nt.o \
862
+ $(LDFLAGS_NODIST);
863
+
855
864
# wasm32-emscripten browser build
856
865
# wasm assets directory is relative to current build dir, e.g. "./usr/local".
857
866
# --preload-file turns a relative asset path into an absolute path.
@@ -1862,6 +1871,7 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@
1862
1871
if test -f $(LDLIBRARY) && test "$(PYTHONFRAMEWORKDIR)" = "no-framework" ; then \
1863
1872
if test -n "$(DLLLIBRARY)" ; then \
1864
1873
$(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \
1874
+ $(INSTALL_SHARED) $(ABI3DLLLIBRARY) $(DESTDIR)$(BINDIR); \
1865
1875
else \
1866
1876
$(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \
1867
1877
if test $(LDLIBRARY) != $(INSTSONAME); then \
@@ -2280,6 +2290,7 @@ libainstall: all python-config
2280
2290
if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
2281
2291
if test "$(SHLIB_SUFFIX)" = .dll -o "$(SHLIB_SUFFIX)" = .pyd; then \
2282
2292
$(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBDIR) ; \
2293
+ $(INSTALL_DATA) $(ABI3LDLIBRARY) $(DESTDIR)$(LIBDIR) ; \
2283
2294
else \
2284
2295
$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
2285
2296
fi; \
@@ -2526,7 +2537,7 @@ clean: clean-retain-profile
2526
2537
fi
2527
2538
2528
2539
clobber: clean
2529
- -rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
2540
+ -rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY)$(ABI3LDLIBRARY) $(ABI3DLLLIBRARY) \
2530
2541
tags TAGS \
2531
2542
config.cache config.log pyconfig.h Modules/config.c
2532
2543
-rm -rf build platform
0 commit comments