100 lines
4.4 KiB
Diff
100 lines
4.4 KiB
Diff
From e1c61ef32352b4295a0eed3a24a1da41554cde59 Mon Sep 17 00:00:00 2001
|
|
From: Naveen M K <naveen521kk@gmail.com>
|
|
Date: Sat, 19 Mar 2022 15:33:05 +0530
|
|
Subject: [PATCH 135/N] Revert "Build venvlauncher.exe from PC/launcher.c"
|
|
|
|
This reverts commit 8f8ec42a9e503fb39bcede30bdc352c75eef3a51.
|
|
---
|
|
Makefile.pre.in | 21 ++++++++-------------
|
|
PC/pylauncher.rc | 20 ++++++++++----------
|
|
2 files changed, 18 insertions(+), 23 deletions(-)
|
|
|
|
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
|
index ea3481b..6b1cfce 100644
|
|
--- a/Makefile.pre.in
|
|
+++ b/Makefile.pre.in
|
|
@@ -609,12 +609,6 @@ pythonw_exe.o: $(srcdir)/PC/pythonw_exe.rc
|
|
python_nt.o: $(srcdir)/PC/python_nt.rc
|
|
$(WINDRES) $(RCFLAGS) -DORIGINAL_FILENAME=\\\"$(DLLLIBRARY)\\\" -I$(srcdir)/Include -I$(srcdir)/PC -I. $(srcdir)/PC/python_nt.rc $@
|
|
|
|
-venvlauncher.o: $(srcdir)/PC/pylauncher.rc
|
|
- $(WINDRES) $(RCFLAGS) -DPY_ICON -I$(srcdir)/Include -I$(srcdir)/PC -I. $(srcdir)/PC/pylauncher.rc $@
|
|
-
|
|
-venvwlauncher.o: $(srcdir)/PC/pylauncher.rc
|
|
- $(WINDRES) $(RCFLAGS) -DPYW_ICON -I$(srcdir)/Include -I$(srcdir)/PC -I. $(srcdir)/PC/pylauncher.rc $@
|
|
-
|
|
$(BUILDPYTHONW): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) pythonw_exe.o
|
|
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -municode -mwindows -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) pythonw_exe.o
|
|
|
|
@@ -622,12 +616,13 @@ $(BUILDPYTHONW): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) pythonw
|
|
$(BUILDPYTHON): Programs/python.o $(LIBRARY_DEPS) python_exe.o
|
|
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -municode -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) python_exe.o
|
|
|
|
-$(BUILDVENVLAUNCHER): $(BUILDPYTHON) venvlauncher.o $(srcdir)/PC/launcher.c
|
|
- $(LINKCC) -D_CONSOLE -DVENV_REDIRECT -municode -static -static-libgcc -static-libstdc++ venvlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
|
|
-
|
|
-$(BUILDVENVWLAUNCHER): $(BUILDPYTHONW) venvwlauncher.o $(srcdir)/PC/launcher.c
|
|
- $(LINKCC) -D_WINDOWS -DVENV_REDIRECT -mwindows -municode -static -static-libgcc -static-libstdc++ venvwlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
|
|
+# FIXME: build these from PC/launcher.c instead
|
|
+$(BUILDVENVLAUNCHER): $(BUILDPYTHON)
|
|
+ cp $(BUILDPYTHON) $(BUILDVENVLAUNCHER)
|
|
|
|
+# FIXME: build these from PC/launcher.c instead
|
|
+$(BUILDVENVWLAUNCHER): $(BUILDPYTHONW)
|
|
+ cp $(BUILDPYTHONW) $(BUILDVENVWLAUNCHER)
|
|
|
|
platform: $(BUILDPYTHON) pybuilddir.txt
|
|
$(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
|
|
@@ -1373,8 +1368,8 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@
|
|
if test "$(PYTHONFRAMEWORKDIR)" = "no-framework" ; then \
|
|
$(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE); \
|
|
$(INSTALL_PROGRAM) $(BUILDPYTHONW) $(DESTDIR)$(BINDIR)/python3w$(EXE); \
|
|
- $(INSTALL_PROGRAM) $(BUILDVENVLAUNCHER) $(DESTDIR)$(VENVLAUNCHERDIR)/python$(EXE); \
|
|
- $(INSTALL_PROGRAM) $(BUILDVENVWLAUNCHER) $(DESTDIR)$(VENVLAUNCHERDIR)/pythonw$(EXE); \
|
|
+ $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(VENVLAUNCHERDIR)/python$(EXE); \
|
|
+ $(INSTALL_PROGRAM) $(BUILDPYTHONW) $(DESTDIR)$(VENVLAUNCHERDIR)/pythonw$(EXE); \
|
|
else \
|
|
$(INSTALL_PROGRAM) $(STRIPFLAG) Mac/pythonw $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE); \
|
|
fi
|
|
diff --git a/PC/pylauncher.rc b/PC/pylauncher.rc
|
|
index 5716bf4..ff7e71e 100644
|
|
--- a/PC/pylauncher.rc
|
|
+++ b/PC/pylauncher.rc
|
|
@@ -12,17 +12,17 @@
|
|
1 RT_MANIFEST "python.manifest"
|
|
|
|
#if defined(PY_ICON)
|
|
-1 ICON DISCARDABLE "icons/python.ico"
|
|
+1 ICON DISCARDABLE "icons\python.ico"
|
|
#elif defined(PYW_ICON)
|
|
-1 ICON DISCARDABLE "icons/pythonw.ico"
|
|
+1 ICON DISCARDABLE "icons\pythonw.ico"
|
|
#else
|
|
-1 ICON DISCARDABLE "icons/launcher.ico"
|
|
-2 ICON DISCARDABLE "icons/py.ico"
|
|
-3 ICON DISCARDABLE "icons/pyc.ico"
|
|
-4 ICON DISCARDABLE "icons/pyd.ico"
|
|
-5 ICON DISCARDABLE "icons/python.ico"
|
|
-6 ICON DISCARDABLE "icons/pythonw.ico"
|
|
-7 ICON DISCARDABLE "icons/setup.ico"
|
|
+1 ICON DISCARDABLE "icons\launcher.ico"
|
|
+2 ICON DISCARDABLE "icons\py.ico"
|
|
+3 ICON DISCARDABLE "icons\pyc.ico"
|
|
+4 ICON DISCARDABLE "icons\pyd.ico"
|
|
+5 ICON DISCARDABLE "icons\python.ico"
|
|
+6 ICON DISCARDABLE "icons\pythonw.ico"
|
|
+7 ICON DISCARDABLE "icons\setup.ico"
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
@@ -61,4 +61,4 @@ BEGIN
|
|
BEGIN
|
|
VALUE "Translation", 0x0, 1200
|
|
END
|
|
-END
|
|
+END
|
|
\ No newline at end of file
|
|
--
|
|
2.36.1
|
|
|