Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8836fa00
Commit
8836fa00
authored
Mar 04, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Untested changes to make the '-s windows' option
work on Windows.
parent
43fefe08
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
Tools/freeze/freeze.py
Tools/freeze/freeze.py
+3
-0
Tools/freeze/winmakemakefile.py
Tools/freeze/winmakemakefile.py
+14
-0
No files found.
Tools/freeze/freeze.py
View file @
8836fa00
...
...
@@ -240,6 +240,9 @@ def main():
outfp
=
open
(
frozen_c
,
'w'
)
try
:
makefreeze
.
makefreeze
(
outfp
,
dict
)
if
win
and
subsystem
==
'windows'
:
import
winmakemakefile
outfp
.
write
(
winmakemakefile
.
WINMAINTEMPLATE
)
finally
:
outfp
.
close
()
if
backup
:
...
...
Tools/freeze/winmakemakefile.py
View file @
8836fa00
import
sys
,
os
,
string
WINMAINTEMPLATE
=
"""
#include <windows.h>
int WINAPI WinMain(
HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // pointer to command line
int nCmdShow // show state of window
)
{
return main(__argc, __argv);
}
"""
def
makemakefile
(
outfp
,
vars
,
files
,
target
):
save
=
sys
.
stdout
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment