Your IP : 216.73.216.196


Current Path : /opt/alt/python36/lib64/python3.6/Tools/freeze/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/Tools/freeze/__pycache__/winmakemakefile.cpython-36.opt-1.pyc

3

� fv�@sNddlZddlZdZdZd
eddfeddfdd�Zdd�Zd	d
�Zdd�ZdS)�Na�
#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
    )
{
    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);
}
��)ZconsoleZwindowsZserviceZcom_dllcCs6yt|dd�Stk
r0td|��YnXdS)N�zThe subsystem %s is not known)�subsystem_details�KeyError�
ValueError)�	subsystem�r	�A/opt/alt/python36/lib64/python3.6/Tools/freeze/winmakemakefile.py�get_custom_entry_point&srcCs*tj}z|t_t|||�Wd|t_XdS)N)�sys�stdout�realwork)Zoutfp�vars�files�targetZsaver	r	r
�makemakefile-s
rcCs:dtjdd�}td�t�td|�td|d�t�td�td�td	�td
�td�td�td
�td�td�td�td�td�t�td�td�td|�t�d}d}t|ddr�d}d}td|�td�t�td|�t�td�td�t�g}d d!d"d#d$g}x�|D]�}td%|j�x�|jD]�}	tjj|	�}
tjj	|
�\}
}|j
|
d&�td'|
|	f�td(d)d*�td+�td,�|j�}|�r�td-d)j|�f�td.|	�t��q\Wx&|j
�D]}
|
|k�r�|j
|
��q�W�qDWtd/d)d*�x"|d0D]}td1|d)d*��q4Wt�t�td2d)d*�x|D]}td3|d)d*��qlWt�t�td4d)d*�x|D]}td1|d)d*��q�Wt�t�td5|�td6||fd7�td8�td9�td:�td;�td<�td=�t�td>�td?�td@�dS)ANz%r%rrzA# Makefile for Microsoft Visual C++ generated by freeze.py scriptztarget = %szpythonhome = %s�prefixz4DEBUG=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=zc_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)zshell32.libzcomdlg32.libzwsock32.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@<<z	$(OBJS)z	$(LIBS)z	$(ADDN_LINK_FILES)z#	$(pythonlib) $(lcustom) $(l_debug)z
	$(resources)z<<zclean:z	-del /f *.objz	-del /f $(target).exe)r�version_info�printr�nameZsourceFiles�os�path�basename�splitext�appendZGetCompilerOptions�joinZ
GetLinkerLibs)rZmoddefnsrZversion_suffixZtarget_link_flagsZ
target_extZobjectsZlibsZmoddefn�file�baseZextZextraZmodlibZaddn�obj�libr	r	r
r5s�



r)Nrr)rrr)rrZWINMAINTEMPLATEZSERVICETEMPLATErrrrr	r	r	r
�<module>s