b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / distutils /
Filename/usr/lib64/python2.6/distutils/mwerkscompiler.pyc
Size7.49 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:40
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc @sÀdZdZddkZddkZddkZddkTddklZlZl Z l
Z
l Z ddk l
Z
lZlZddkZddkZddklZde
fd ��YZdS(
s¶distutils.mwerkscompiler

Contains MWerksCompiler, an implementation of the abstract CCompiler class
for MetroWerks CodeWarrior on the Macintosh. Needs work to support CW on
Windows.s@$Id: mwerkscompiler.py 55881 2007-06-11 05:28:45Z neal.norwitz $iÿÿÿÿN(t*(tDistutilsExecErrortDistutilsPlatformErrort CompileErrortLibErrort LinkError(t CCompilertgen_preprocess_optionstgen_lib_options(tlogtMWerksCompilerc BsþeZdZdZhZdgZdddgZdgZdZeeeZ dZ
d Z d
Z d Z
d ZZd
Zdddd�Zdddddddd�Zddddddddddd�
Zd�Zd�Zd�Zd�Zdd�ZRS(syConcrete class that implements an interface to MetroWerks CodeWarrior,
as defined by the CCompiler abstract class.tmwerkss.cs.ccs.cpps.cxxs.rs.exps.rsrcs.objs.libs.slbs%s%sticCsti||||�dS(N(Rt__init__(tselftverbosetdry_runtforce((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pyR
5sc Cs=|i|||�\}}}||_||_||_gS(N(t_fix_compile_argst_MWerksCompiler__sourcest_MWerksCompiler__macrost_MWerksCompiler__include_dirs( Rtsourcest
output_dirtmacrost include_dirstdebugt
extra_preargstextra_postargstdepends((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pytcompile=s

   c&Cs:|i||�\}}|i|||�\}}}||i|ifjo
td�n|o
td�n|
p| o
td�nt|�djo
td�nt|i|i�}t|i|i �}|ot|i|�}ng}| o|i| �} n
t
i �} |ot
i i
||�}n|i|�}t
i i|�\}}|ddjo|d }n6|ddjo|d }nt
i i|�d }|d
}|}|d }|d }d
|}tii| d|i�tii|d|i�h}||d<||d<||d<||d<ti|d<d|d<g}g}xU||D]I}t
i i|�\}}|i|�||jo|i|�ququW||d<||d<||||d<|io@dGt
i�GHx)|i�D]\}}d||fGHqWdSt
i i
| |�}tid|�t|d�}|id|d �|i�|io±t
i i
t
i�t
i i
| |��}t|d�}|id�xP|iD]E\} }|djo|id| �qß|id | |f�qßW|i�||d!<nt
i i
t
i�t
i i
| |��}!tid"|!�d#dk }"|"i!i"|�}#|#i#�|d$}$t|!d�}|i|$�|i�t
i i
t
i�t
i i
| |��}%tid%|%�|"i$|!|%�tid&�|"i%|%�dS('Ns@Can only make SHARED_LIBRARY or SHARED_OBJECT targets on the Macs(Runtime library dirs not implemented yetisNeed exactly one export symboliøÿÿÿs.ppc.slbiõÿÿÿs .carbon.slbis.mcps.xmls.mcp.expsmwerks_%s_config.hRtmac_exportnamet
mac_outputdirt mac_dllnametmac_targetnamet sysprefixtAbsolutetmac_sysprefixtypeRt librariestextrasearchdirssCALLING LINKER INs
%20.20s %ss Create export file %stws%s
s$#include "mwerks_shcarbon_config.h"
s #define %s
s#define %s %s
t
prefixnames Create XML file %siÿÿÿÿttmp_projectxmldatas Create project file %ss Build project(&t_fix_object_argst
_fix_lib_argstSHARED_LIBRARYt
SHARED_OBJECTRtlentmapt_filename_to_absRRtostcurdirtpathtjointsplittstript distutilstdir_utiltmkpathRtsystprefixtappendtgetcwdtitemsR RtopentwritetcloseRtNonet mkcwprojecttcwxmlgentProjectBuildertgeneratet makeprojectt buildproject(&Rt target_desctobjectstoutput_filenameRR&t library_dirstruntime_library_dirstexport_symbolsRRRt
build_tempt target_langRRtbasenamet projectnamet
targetnametxmlnamet
exportnameR)tsettingstsourcefilenamestsourcefiledirstfilenametdirnametkeytvaluetexportfilenametfptprefixfilenametnamet xmlfilenameRDt
xmlbuildertxmldatatprojectfilename((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pytlinkNs°



 









 







*



* 



*
cCs«tii|�}tii|�p%ti�}tii||�}nti |d�}x<t
dt |��D]%}||djod||<qrqrWti|d�S(Nt:is..R ( R8tutilt convert_pathR2R4tisabsR>R5tstringR6trangeR/(RRZR3t
componentsti((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pyR1Ís cCsdS(skReturn the compiler option to add 'dir' to the list of
directories searched for libraries.
N((Rtdir((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pytlibrary_dir_optionÞscCsdS(ssReturn the compiler option to add 'dir' to the list of
directories searched for runtime libraries.
N((RRo((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pytruntime_library_dir_optionäscCsdS(sReturn the compiler option to add 'dir' to the list of libraries
linked into the shared library or executable.
N((Rtlib((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pytlibrary_optionëscCsdS(sHSearch the specified list of directories for a static or shared
library file 'lib' and return the full path to that file. If
'debug' true, look for a debugging version (if that makes sense on
the current platform). Return None if 'lib' wasn't found in any of
the specified directories.
i((RtdirsRrR((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pytfind_library_fileñsN(t__name__t
__module__t__doc__t
compiler_typet executablest
_c_extensionst_cpp_extensionst_rc_extensionst_exp_extensiontsrc_extensionst
res_extensiont
obj_extensiontstatic_lib_extensiontshared_lib_extensiontstatic_lib_formattshared_lib_formatt
exe_extensionR
RCRRfR1RpRqRsRu(((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pyR
sP  
 
 r    (Rxt __revision__R;R2Rkttypestdistutils.errorsRRRRRtdistutils.ccompilerRRRtdistutils.utilR8tdistutils.dir_utilR R
(((s0/usr/lib64/python2.6/distutils/mwerkscompiler.pyt<module>s$
(