tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[\¬Qc@sìdZdZddlZddlZddlZddlmZmZddlm    Z    ddl
m Z ddl m Z mZmZddlmZmZmZmZdd    lmZejd
krÒddlZnd e fd „ƒYZdS( s9distutils.unixccompiler
 
Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
  * macros defined with -Dname[=value]
  * macros undefined with -Uname
  * include search directories specified with -Idir
  * libraries specified with -lllib
  * library search directories specified with -Ldir
  * compile handled by 'cc' (or similar) executable with -c option:
    compiles .c to .o
  * link static library handled by 'ar' command (possibly with 'ranlib')
  * link shared library handled by 'cc -shared'
s$Id$iÿÿÿÿN(t
StringTypetNoneType(t    sysconfig(tnewer(t    CCompilertgen_preprocess_optionstgen_lib_options(tDistutilsExecErrort CompileErrortLibErrort    LinkError(tlogtdarwint UnixCCompilerc BsgeZdZid&d6dgd6dgd6dgd6ddgd6dgd6d    d
gd 6d&d 6Zejd  dkr…d ged <nddddddgZdZdZ    dZ
dZ dZ Z ZejdkrÛdZnd&d&d&d&d&d„Zd„Zd&dd&d„Zd&d&d&d&d&dd&d&d&d&d „
Zd!„Zd"„Zd#„Zd$„Zdd%„ZRS('tunixt preprocessortcctcompilert compiler_sot compiler_cxxs-sharedt    linker_sot
linker_exetars-crtarchivertranlibiR s.cs.Cs.ccs.cxxs.cpps.ms.os.as.sos.dylibslib%s%stcygwins.exec Cs    |jd||ƒ\}}}t||ƒ}|j|}    |rV|    jd|gƒn|ri||    d*n|r|    j|ƒn|    j|ƒ|js°|dks°t||ƒr|rÒ|jt    j
j |ƒƒny|j |    ƒWqt k
r}
t|
‚qXndS(Ns-oi(t_fix_compile_argstNoneRRtextendtappendtforceRtmkpathtostpathtdirnametspawnRR( tselftsourcet output_filetmacrost include_dirst extra_preargstextra_postargstignoretpp_optstpp_argstmsg((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pyt
preprocessVs"   $c    Csz|j}tjdkr1tj|||ƒ}ny&|j|||d|g|ƒWntk
ru}t|‚nXdS(NR s-o(Rtsystplatformt _osx_supporttcompiler_fixupR#RR(    R$tobjtsrctexttcc_argsR*R,RR.((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pyt_compileqs         icCs×|j||ƒ\}}|j|d|ƒ}|j||ƒrÃ|jtjj|ƒƒ|j|j|g||j    ƒ|j
rÓy|j|j
|gƒWqÀt k
r¼}t |‚qÀXqÓnt jd|ƒdS(Nt
output_dirsskipping %s (up-to-date)(t_fix_object_argstlibrary_filenamet
_need_linkRR R!R"R#RtobjectsRRR    R tdebug(R$R=toutput_libnameR9R>t target_langtoutput_filenameR.((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pytcreate_static_lib|s    cCs"|j||ƒ\}}|j|||ƒ\}}}t||||ƒ}t|ƒttfkrotd‚n|dk    r“tj    j
||ƒ}n|j ||ƒr||j |d|g}|    rÖdg|d*n|
ré|
|d*n| rÿ|j | ƒn|jtj    j|ƒƒyÔ|tjkr7|j}n
|j}| dkr¶|jr¶d}tj    j|dƒdkr¢d}x!d||krž|d}qWn|j|||<ntjd    krÚtj||ƒ}n|j||ƒWqtk
r
}t|‚qXntjd
|ƒdS( Ns%'output_dir' must be a string or Nones-os-gisc++tenvit=R sskipping %s (up-to-date)(R:t _fix_lib_argsRttypeRRt    TypeErrorRR R!tjoinR<R=RRR"Rt
EXECUTABLERRRtbasenameR0R1R2R3R#RR
R R>(R$t target_descR=RAR9t    librariest library_dirstruntime_library_dirstexport_symbolsR>R)R*t
build_tempR@tlib_optstld_argstlinkertiR.((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pytlink–sD         
cCsd|S(Ns-L((R$tdir((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pytlibrary_dir_optionÐscCsd|kpd|kS(Ntgccsg++((R$t compiler_name((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pyt_is_gccÓscCsâtjjtjdƒƒ}tjd dkr6d|Stjd dkrt|j|ƒrfdd|gSdd|gStjd     d
ksštjd d kr¤d |gStjd  dkr¿d|S|j|ƒrÖd|Sd|SdS(NtCCiR s-Lishp-uxs-Wl,+ss+sitirix646tosf1V5s-rpathitaixs
-blibpath:s-Wl,-Rs-R(R R!RJRtget_config_varR0R1RZ(R$RVR((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pytruntime_library_dir_optionÖs &
cCsd|S(Ns-l((R$tlib((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pytlibrary_optionôscCsÀ|j|ddƒ}|j|ddƒ}|j|ddƒ}tjdkr–tjdƒ}tjd|ƒ}|dkr„d}    q–|jd    ƒ}    nx#|D]}
t    j
j |
|ƒ} t    j
j |
|ƒ} t    j
j |
|ƒ} tjdkrv|
j d
ƒs|
j d ƒrv|
j d ƒ rvt    j
j |    |
d    |ƒ} t    j
j |    |
d    |ƒ} t    j
j |    |
d    |ƒ} nt    j
j | ƒrŒ| St    j
j | ƒr¢| St    j
j | ƒr| SqWdS( Ntlib_typetsharedtdylibtstaticR tCFLAGSs-isysroot\s+(\S+)t/is/System/s/usr/s /usr/local/(R;R0R1RR_tretsearchRtgroupR R!RHt
startswithtexists(R$tdirsRaR>tshared_ftdylib_ftstatic_ftcflagstmtsysrootRVRdReRf((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pytfind_library_file÷s4      N(t__name__t
__module__t compiler_typeRt executablesR0R1tsrc_extensionst obj_extensiontstatic_lib_extensiontshared_lib_extensiontdylib_lib_extensiontstatic_lib_formattshared_lib_formattdylib_lib_formatt exe_extensionR/R8RBRURWRZR`RbRu(((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pyR 0s@
 
 
 
 
 
                 6                (t__doc__t __revision__R R0RittypesRRt    distutilsRtdistutils.dep_utilRtdistutils.ccompilerRRRtdistutils.errorsRRR    R
R R1R2R (((s_/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/unixccompiler.pyt<module>s$"