B m|.<4W@sNddlZddlZdZdZdeddfeddfddZdd Zd d Zd d ZdS)Na #include 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 ) { extern int Py_FrozenMain(int, char **); PyImport_FrozenModules = _PyImport_FrozenModules; return Py_FrozenMain(__argc, __argv); } z extern int PythonService_main(int, char **); int main( int argc, char **argv) { PyImport_FrozenModules = _PyImport_FrozenModules; return PythonService_main(argc, argv); } )Nrr)rr)ZconsoleZwindowsZserviceZcom_dllcCs8yt|ddStk r2td|dYnXdS)NzThe subsystem %s is not known)subsystem_detailsKeyError ValueError) subsystemr A/opt/alt/python37/lib64/python3.7/Tools/freeze/winmakemakefile.pyget_custom_entry_point&sr cCs*tj}z|t_t|||Wd|t_XdS)N)sysstdoutrealwork)ZoutfpvarsfilestargetZsaver r r makemakefile-s rcCs:dtjdd}tdttd|td|dttdtdtd td td td td tdtdtdtdtdttdtdtd|td}d}t|ddrd}d}td|tdttd|ttdtdtg}d d!d"d#d$g}x|D]}td%|jx|jD]} tj| } tj | \} } | | d&td'| | ftd(d)d*td+td,| } | rtd-d) | ftd.| tq\Wx&| D]} | |kr| | qWqDWtd/d)d*x"|d0D]}td1|d)d*q4Wtttd2d)d*x|D]}td3|d)d*qlWtttd4d)d*x|D]}td1|d)d*qWtttd5|td6||fd7td8td9td:td;td<td=ttd>td?td@dS)ANz%r%rrzA# Makefile for Microsoft Visual C++ generated by freeze.py scriptz target = %szpythonhome = %sprefixz4DEBUG=0 # Set to 1 to use the _d versions of Python.z !IF $(DEBUG)zdebug_suffix=_dz c_debug=/Zi /Od /DDEBUG /D_DEBUGzl_debug=/DEBUGztemp_dir=Build\Debugz!ELSEz debug_suffix=z c_debug=/Oxzl_debug=ztemp_dir=Build\Releasez!ENDIFzR# The following line assumes you have built Python using the standard instructionsz;# Otherwise fix the following line to point to the library.z?pythonlib = "$(pythonhome)/pcbuild/python%s$(debug_suffix).lib"rz.exerz-dllz.dllzD# As the target uses Python%s.dll, we must use this compiler option!z cdl = /MDzall: $(target)$(debug_suffix)%sz $(temp_dir):z. if not exist $(temp_dir)\. mkdir $(temp_dir)z shell32.libz comdlg32.libz wsock32.libz user32.libz oleaut32.libz# Modulez.objz$(temp_dir)\%s.obj: "%s"z: @$(CC) -c -nologo /Fo$* $(cdl) $(c_debug) /D BUILD_FREEZE )endz1"-I$(pythonhome)/Include" "-I$(pythonhome)/PC" \z# $(cflags) $(cdebug) $(cinclude) \z %s \z "%s"zADDN_LINK_FILES=Z addn_linkz"%s"zOBJS=z"$(temp_dir)\%s"zLIBS=z/$(target)$(debug_suffix)%s: $(temp_dir) $(OBJS)z( link -out:$(target)$(debug_suffix)%s %sz@<s