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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
[\¬Qc@s·dZdZddlZddlZddlZddlmZmZmZm    Z    m
Z
ddl m Z ddl mZddlmZddlmZdd    lmZmZdd
lmZdd lmZd fd „ƒYZddfddfddfddffZeed„Zidddfd6dddfd6dddfd6dd d!fd"6d#d$d%fd&6d'd(d)fd6Zd*„Zeed+d+d+d,„Z d-„Z!d.„Z"dS(/sˆdistutils.ccompiler
 
Contains CCompiler, an abstract base class that defines the interface
for the Distutils compiler abstraction model.s$Id$iÿÿÿÿN(t CompileErrort    LinkErrortUnknownFileErrortDistutilsPlatformErrortDistutilsModuleError(tspawn(t    move_file(tmkpath(t newer_group(t split_quotedtexecute(tlog(tcustomize_compilert    CCompilerc BseZdZdAZdAZdAZdAZdAZdAZ    dAZ
dAZ idd6dd6dd6dd6dd6Z dddgZ d    d    d    d
„Zd „Zd „Zd „Zd„ZdAd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d „Z$d!„Z%dAdAdAdAdAd"„Z&dAdAdAd    dAdAdAd#„Z'd$„Z(dAd    dAd%„Z)d&Z*d'Z+d(Z,dAdAdAdAdAd    dAdAdAdAd)„
Z-dAdAdAdAdAd    dAdAdAdAd*„
Z.dAdAdAdAdAd    dAdAdAdAd+„
Z/dAdAdAdAd    dAdAdAd,„Z0d-„Z1d.„Z2d/„Z3dAdAdAdAd0„Z4d    d1„Z5d    d2d3„Z6d    d2d4„Z7d    d2d5„Z8d6d    d2d7„Z9d8d9„Z:d:„Z;d;„Z<dAd8d<„Z=d=„Z>d>„Z?d?d@„Z@RS(BsŸAbstract base class to define the interface that must be implemented
    by real compiler classes.  Also has some utility methods used by
    several compiler classes.
 
    The basic idea behind a compiler abstraction class is that each
    instance can be used for all the compile/link steps in building a
    single project.  Thus, attributes common to all of those compile and
    link steps -- include directories, macros to define, libraries to link
    against, etc. -- are attributes of the compiler instance.  To allow for
    variability in how individual files are treated, most of those
    attributes may be varied on a per-compilation or per-link basis.
    tcs.csc++s.ccs.cpps.cxxtobjcs.micCs||_||_||_d|_g|_g|_g|_g|_g|_    g|_
x.|j j ƒD]}|j ||j |ƒqjWdS(N(tdry_runtforcetverbosetNonet
output_dirtmacrost include_dirst    librariest library_dirstruntime_library_dirstobjectst executablestkeystset_executable(tselfRRRtkey((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt__init__]s                                        cKsZxS|jƒD]E}||jkr>td||jjf‚n|j|||ƒq WdS(s‹Define the executables (and options for them) that will be run
        to perform the various stages of compilation.  The exact set of
        executables that may be specified here depends on the compiler
        class (via the 'executables' class attribute), but most will have:
          compiler      the C/C++ compiler
          linker_so     linker used to create shared objects and libraries
          linker_exe    linker used to create binary executables
          archiver      static library creator
 
        On platforms with a command-line (Unix, DOS/Windows), each of these
        is a string that will be split into executable name and (optional)
        list of arguments.  (Splitting the string is done similarly to how
        Unix shells operate: words are delimited by spaces, but quotes and
        backslashes can override this.  See
        'distutils.util.split_quoted()'.)
        s$unknown executable '%s' for class %sN(RRt
ValueErrort    __class__t__name__R(RtargsR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytset_executabless cCs<t|tƒr(t||t|ƒƒnt|||ƒdS(N(t
isinstancetstrtsetattrR    (RRtvalue((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyR¢scCs<d}x/|jD]$}|d|kr*|S|d}qWdS(Nii(RR(Rtnametitdefn((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt _find_macro¨s c    Cs–x|D]‡}t|tƒost|ƒdksct|ƒdkost|dtƒsc|ddkost|dtƒstd|dd‚qqWdS(s×Ensures that every element of 'definitions' is a valid macro
        definition, ie. either (name,value) 2-tuple or a (name,) tuple.  Do
        nothing if all definitions are OK, raise TypeError otherwise.
        iiisinvalid macro definition '%s': s.must be tuple (string,), (string, string), or s(string, None)N(R&ttupletlenR'Rt    TypeError(Rt definitionsR,((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt_check_macro_definitions°s # cCsH|j|ƒ}|dk    r(|j|=n||f}|jj|ƒdS(s_Define a preprocessor macro for all compilations driven by this
        compiler object.  The optional parameter 'value' should be a
        string; if it is not supplied, then the macro will be defined
        without an explicit value and the exact outcome depends on the
        compiler used (XXX true? does ANSI say anything about this?)
        N(R-RRtappend(RR*R)R+R,((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt define_macroÃs
      cCsE|j|ƒ}|dk    r(|j|=n|f}|jj|ƒdS(s³Undefine a preprocessor macro for all compilations driven by
        this compiler object.  If the same macro is defined by
        'define_macro()' and undefined by 'undefine_macro()' the last call
        takes precedence (including multiple redefinitions or
        undefinitions).  If the macro is redefined/undefined on a
        per-compilation basis (ie. in the call to 'compile()'), then that
        takes precedence.
        N(R-RRR3(RR*R+tundefn((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytundefine_macroÓs
      cCs|jj|ƒdS(sóAdd 'dir' to the list of directories that will be searched for
        header files.  The compiler is instructed to search directories in
        the order in which they are supplied by successive calls to
        'add_include_dir()'.
        N(RR3(Rtdir((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytadd_include_diråscCs||_dS(sySet the list of directories that will be searched to 'dirs' (a
        list of strings).  Overrides any preceding calls to
        'add_include_dir()'; subsequence calls to 'add_include_dir()' add
        to the list passed to 'set_include_dirs()'.  This does not affect
        any list of standard include directories that the compiler may
        search by default.
        N(R(Rtdirs((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytset_include_dirsíscCs|jj|ƒdS(s¿Add 'libname' to the list of libraries that will be included in
        all links driven by this compiler object.  Note that 'libname'
        should *not* be the name of a file containing a library, but the
        name of the library itself: the actual filename will be inferred by
        the linker, the compiler, or the compiler class (depending on the
        platform).
 
        The linker will be instructed to link against libraries in the
        order they were supplied to 'add_library()' and/or
        'set_libraries()'.  It is perfectly valid to duplicate library
        names; the linker will be instructed to link against libraries as
        many times as they are mentioned.
        N(RR3(Rtlibname((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt add_library÷scCs||_dS(sôSet the list of libraries to be included in all links driven by
        this compiler object to 'libnames' (a list of strings).  This does
        not affect any standard system libraries that the linker may
        include by default.
        N(R(Rtlibnames((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt set_librariesscCs|jj|ƒdS(s'Add 'dir' to the list of directories that will be searched for
        libraries specified to 'add_library()' and 'set_libraries()'.  The
        linker will be instructed to search for libraries in the order they
        are supplied to 'add_library_dir()' and/or 'set_library_dirs()'.
        N(RR3(RR7((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytadd_library_dirscCs||_dS(sÀSet the list of library search directories to 'dirs' (a list of
        strings).  This does not affect any standard library search path
        that the linker may search by default.
        N(R(RR9((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytset_library_dirsscCs|jj|ƒdS(slAdd 'dir' to the list of directories that will be searched for
        shared libraries at runtime.
        N(RR3(RR7((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytadd_runtime_library_dirscCs||_dS(sãSet the list of directories to search for shared libraries at
        runtime to 'dirs' (a list of strings).  This does not affect any
        standard search path that the runtime linker may search by
        default.
        N(R(RR9((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytset_runtime_library_dirs%scCs|jj|ƒdS(sãAdd 'object' to the list of object files (or analogues, such as
        explicitly named library files or the output of "resource
        compilers") to be included in every link driven by this compiler
        object.
        N(RR3(Rtobject((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytadd_link_object-scCs||_dS(sêSet the list of object files (or analogues) to be included in
        every link to 'objects'.  This does not affect any standard object
        files that the linker may include by default (such as system
        libraries).
        N(R(RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytset_link_objects5scCs±|dkr|j}nt|tƒs3td‚n|dkrK|j}n.t|tƒrp||jpig}n    td‚|dkr‘|j}n:t|ttfƒrÂt|ƒ|jp»g}n    td‚|dkràg}n|j    |ddd|ƒ}t
|ƒt
|ƒkst ‚t ||ƒ}i}    xmt t
|ƒƒD]Y}
||
} ||
} tjj| ƒd} |jtjj| ƒƒ| | f|    | <qAW|||||    fS(    s;Process arguments and decide which source files to compile.s%'output_dir' must be a string or Nones/'macros' (if supplied) must be a list of tupless6'include_dirs' (if supplied) must be a list of stringst    strip_diriRiN(RRR&R'R0RtlistRR.tobject_filenamesR/tAssertionErrortgen_preprocess_optionstrangetostpathtsplitextRtdirname(RtoutdirRtincdirstsourcestdependstextraRtpp_optstbuildR+tsrctobjtext((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt_setup_compileCs<                     
 
cCs:|dg}|r#dg|d*n|r6||d*n|S(Ns-cs-gi((RRUtdebugtbeforetcc_args((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt _get_cc_argsos   cCsØ|dkr|j}nt|tƒs3td‚n|dkrK|j}n.t|tƒrp||jpig}n    td‚|dkr‘|j}n:t|ttfƒrÂt|ƒ|jp»g}n    td‚|||fS(s'Typecheck and fix-up some of the arguments to the 'compile()'
        method, and return fixed-up values.  Specifically: if 'output_dir'
        is None, replaces it with 'self.output_dir'; ensures that 'macros'
        is a list, and augments it with 'self.macros'; ensures that
        'include_dirs' is a list, and augments it with 'self.include_dirs'.
        Guarantees that the returned values are of the correct type,
        i.e. for 'output_dir' either string or None, and for 'macros' and
        'include_dirs' either list or None.
        s%'output_dir' must be a string or Nones/'macros' (if supplied) must be a list of tupless6'include_dirs' (if supplied) must be a list of stringsN(    RRR&R'R0RRGRR.(RRRR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt_fix_compile_argsxs 
          cCsjt|ttfƒs!td‚nt|ƒ}|dkrE|j}nt|tƒs`td‚n||fS(sûTypecheck and fix up some arguments supplied to various methods.
        Specifically: ensure that 'objects' is a list; if output_dir is
        None, replace with self.output_dir.  Return fixed versions of
        'objects' and 'output_dir'.
        s,'objects' must be a list or tuple of stringss%'output_dir' must be a string or NoneN(R&RGR.R0RRR'(RRR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt_fix_object_args˜s        cCs|dkr|j}n:t|ttfƒrIt|ƒ|jpBg}n    td‚|dkrj|j}n:t|ttfƒr›t|ƒ|jp”g}n    td‚|dkr¼|j}n>t|ttfƒrít|ƒ|jpæg}n tdd‚|||fS(s;Typecheck and fix up some of the arguments supplied to the
        'link_*' methods.  Specifically: ensure that all arguments are
        lists, and augment them with their permanent versions
        (eg. 'self.libraries' augments 'libraries').  Return a tuple with
        fixed versions of all arguments.
        s3'libraries' (if supplied) must be a list of stringss6'library_dirs' (if supplied) must be a list of stringss%'runtime_library_dirs' (if supplied) smust be a list of stringsN(RRR&RGR.R0RR(RRRR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt _fix_lib_argsªs*          cCsE|jr dS|jr.t||ddƒ}nt||ƒ}|SdS(sjReturn true if we need to relink the files listed in 'objects'
        to recreate 'output_file'.
        itmissingtnewerN(RRR(RRt output_fileRc((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt
_need_linkÍs         c    Cs´t|tƒs|g}nd}t|jƒ}x}|D]u}tjj|ƒ\}}|jj    |ƒ}y1|jj
|ƒ}||kr—|}|}nWq7t k
r«q7Xq7W|S(s|Detect the language of a given file, or list of files. Uses
        language_map, and language_order to do the job.
        N( R&RGRR/tlanguage_orderRLRMRNt language_maptgettindexR!(    RRRtlangRitsourcetbaseRYtextlangtextindex((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytdetect_languageÚs     cCsdS(sÕPreprocess a single C/C++ source file, named in 'source'.
        Output will be written to file named 'output_file', or stdout if
        'output_file' not supplied.  'macros' is a list of macro
        definitions as for 'compile()', which will augment the macros set
        with 'define_macro()' and 'undefine_macro()'.  'include_dirs' is a
        list of directory names that will be added to the default list.
 
        Raises PreprocessError on failure.
        N((RRkRdRRt extra_preargstextra_postargs((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt
preprocessñs c    Csž|j||||||ƒ\}}    }}
} |j|
||ƒ} xU|    D]M} y| | \}}Wntk
ryqInX|j| ||| ||
ƒqIW|    S(sK    Compile one or more source files.
 
        'sources' must be a list of filenames, most likely C/C++
        files, but in reality anything that can be handled by a
        particular compiler and compiler class (eg. MSVCCompiler can
        handle resource files in 'sources').  Return a list of object
        filenames, one per source filename in 'sources'.  Depending on
        the implementation, not all source files will necessarily be
        compiled, but all corresponding object filenames will be
        returned.
 
        If 'output_dir' is given, object files will be put under it, while
        retaining their original path component.  That is, "foo/bar.c"
        normally compiles to "foo/bar.o" (for a Unix implementation); if
        'output_dir' is "build", then it would compile to
        "build/foo/bar.o".
 
        'macros', if given, must be a list of macro definitions.  A macro
        definition is either a (name, value) 2-tuple or a (name,) 1-tuple.
        The former defines a macro; if the value is None, the macro is
        defined without an explicit value.  The 1-tuple case undefines a
        macro.  Later definitions/redefinitions/ undefinitions take
        precedence.
 
        'include_dirs', if given, must be a list of strings, the
        directories to add to the default include file search path for this
        compilation only.
 
        'debug' is a boolean; if true, the compiler will be instructed to
        output debug symbols in (or alongside) the object file(s).
 
        'extra_preargs' and 'extra_postargs' are implementation- dependent.
        On platforms that have the notion of a command-line (e.g. Unix,
        DOS/Windows), they are most likely lists of strings: extra
        command-line arguments to prepand/append to the compiler command
        line.  On other platforms, consult the implementation class
        documentation.  In any event, they are intended as an escape hatch
        for those occasions when the abstract compiler framework doesn't
        cut the mustard.
 
        'depends', if given, is a list of filenames that all targets
        depend on.  If a source file is older than any file in
        depends, then the source file will be recompiled.  This
        supports dependency tracking, but only at a coarse
        granularity.
 
        Raises CompileError on failure.
        (RZR^tKeyErrort_compile(RRRRRRR[RpRqRSRRURVR]RXRWRY((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytcompileþs7   cCsdS(sCompile 'src' to product 'obj'.N((RRXRWRYR]RqRU((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyRtCscCsdS(s&Link a bunch of stuff together to create a static library file.
        The "bunch of stuff" consists of the list of object files supplied
        as 'objects', the extra object files supplied to
        'add_link_object()' and/or 'set_link_objects()', the libraries
        supplied to 'add_library()' and/or 'set_libraries()', and the
        libraries supplied as 'libraries' (if any).
 
        'output_libname' should be a library name, not a filename; the
        filename will be inferred from the library name.  'output_dir' is
        the directory where the library file will be put.
 
        'debug' is a boolean; if true, debugging information will be
        included in the library (note that on most platforms, it is the
        compile step where this matters: the 'debug' flag is included here
        just for consistency).
 
        'target_lang' is the target language for which the given objects
        are being compiled. This allows specific linkage time treatment of
        certain languages.
 
        Raises LibError on failure.
        N((RRtoutput_libnameRR[t target_lang((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytcreate_static_libJst shared_objecttshared_libraryt
executablecCs
t‚dS(suLink a bunch of stuff together to create an executable or
        shared library file.
 
        The "bunch of stuff" consists of the list of object files supplied
        as 'objects'.  'output_filename' should be a filename.  If
        'output_dir' is supplied, 'output_filename' is relative to it
        (i.e. 'output_filename' can provide directory components if
        needed).
 
        'libraries' is a list of libraries to link against.  These are
        library names, not filenames, since they're translated into
        filenames in a platform-specific way (eg. "foo" becomes "libfoo.a"
        on Unix and "foo.lib" on DOS/Windows).  However, they can include a
        directory component, which means the linker will look in that
        specific directory rather than searching all the normal locations.
 
        'library_dirs', if supplied, should be a list of directories to
        search for libraries that were specified as bare library names
        (ie. no directory component).  These are on top of the system
        default and those supplied to 'add_library_dir()' and/or
        'set_library_dirs()'.  'runtime_library_dirs' is a list of
        directories that will be embedded into the shared library and used
        to search for other shared libraries that *it* depends on at
        run-time.  (This may only be relevant on Unix.)
 
        'export_symbols' is a list of symbols that the shared library will
        export.  (This appears to be relevant only on Windows.)
 
        'debug' is as for 'compile()' and 'create_static_lib()', with the
        slight distinction that it actually matters on most platforms (as
        opposed to 'create_static_lib()', which includes a 'debug' flag
        mostly for form's sake).
 
        'extra_preargs' and 'extra_postargs' are as for 'compile()' (except
        of course that they supply command-line arguments for the
        particular linker being used).
 
        'target_lang' is the target language for which the given objects
        are being compiled. This allows specific linkage time treatment of
        certain languages.
 
        Raises LinkError on failure.
        N(tNotImplementedError(Rt target_descRtoutput_filenameRRRRtexport_symbolsR[RpRqt
build_tempRw((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytlinkis/c CsG|jtj||j|ddƒ|||||||    |
| | ƒ dS(Ntlib_typetshared(RR tSHARED_LIBRARYtlibrary_filename( RRRvRRRRRR[RpRqR€Rw((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytlink_shared_libs     c Cs8|jtj|||||||||    |
| | ƒ dS(N(RR t SHARED_OBJECT( RRR~RRRRRR[RpRqR€Rw((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytlink_shared_objectªs
    c CsA|jtj||j|ƒ||||d|||    d|
ƒ dS(N(RR t
EXECUTABLEtexecutable_filenameR( RRtoutput_prognameRRRRR[RpRqRw((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytlink_executableµs cCs
t‚dS(skReturn the compiler option to add 'dir' to the list of
        directories searched for libraries.
        N(R|(RR7((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytlibrary_dir_optionÄscCs
t‚dS(ssReturn the compiler option to add 'dir' to the list of
        directories searched for runtime libraries.
        N(R|(RR7((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytruntime_library_dir_optionÊscCs
t‚dS(sReturn the compiler option to add 'dir' to the list of libraries
        linked into the shared library or executable.
        N(R|(Rtlib((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytlibrary_optionÐsc CsEddl}|dkr!g}n|dkr6g}n|dkrKg}n|dkr`g}n|jd|dtƒ\}}tj|dƒ}    z7x|D]}
|    jd|
ƒqšW|    jd|ƒWd|    jƒXy|j|gd|ƒ} Wnt    k
rt
SXy |j | d    d
|d |ƒWnt t fk
r@t
SXtS( s·Return a boolean indicating whether funcname is supported on
        the current platform.  The optional arguments can be used to
        augment the compilation environment.
        iÿÿÿÿNs.cttexttws#include "%s"
s+main (int argc, char **argv) {
    %s();
}
Rsa.outRR(ttempfileRtmkstemptTrueRLtfdopentwritetcloseRuRtFalseRŒRR0( RtfuncnametincludesRRRR“tfdtfnametftinclR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt has_functionÖs8
                        cCs
t‚dS(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.
        N(R|(RR9RR[((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytfind_library_filestcCs×|dkrd}ng}xµ|D]­}tjj|ƒ\}}tjj|ƒd}|tjj|ƒ}||jkr‘td||f‚n|r¬tjj|ƒ}n|j    tjj
|||j ƒƒq"W|S(NR¢is"unknown file type '%s' (from '%s')( RRLRMRNt
splitdrivetisabstsrc_extensionsRtbasenameR3tjoint obj_extension(Rtsource_filenamesRFRt    obj_namestsrc_nameRlRY((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyRH-s      cCsG|dk    st‚|r-tjj|ƒ}ntjj|||jƒS(N(RRIRLRMR¦R§tshared_lib_extension(RR¦RFR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytshared_object_filename>scCsM|dk    st‚|r-tjj|ƒ}ntjj|||jpHdƒS(NR¢(RRIRLRMR¦R§t exe_extension(RR¦RFR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyRŠDststaticc
Cs|dk    st‚|dkr*td‚nt||dƒ}t||dƒ}tjj|ƒ\}}|||f}    |r‡d}ntjj|||    ƒS(    NR¯Rƒtdylibs0'lib_type' must be "static", "shared" or "dylib"t _lib_formatt_lib_extensionR¢(R¯ssharedR°(RRIR!tgetattrRLRMtsplitR§(
RR;R‚RFRtfmtRYR7Rltfilename((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyR…Js      icCstj|ƒdS(N(R R[(Rtmsgtlevel((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytannounce\scCs"ddlm}|r|GHndS(Niÿÿÿÿ(tDEBUG(tdistutils.debugRº(RR·Rº((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt debug_print_scCstjjd|ƒdS(Ns warning: %s
(tsyststderrR—(RR·((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytwarndscCst||||jƒdS(N(R
R(RtfuncR$R·R¸((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyR
gscCst|d|jƒdS(NR(RR(Rtcmd((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyRjscCst||d|jƒS(NR(RR(RRWtdst((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyRmsiÿcCst||d|jƒdS(NR(RR(RR*tmode((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyRpsN(AR#t
__module__t__doc__Rt compiler_typeR¥R¨tstatic_lib_extensionR¬tstatic_lib_formattshared_lib_formatR®RgRfR R%RR-R2R4R6R8R:R<R>R?R@RARBRDRERZR^R_R`RaReRoRrRuRtRxR‡R„R‰RR†RˆRŒRRŽRR R¡RHR­RŠR…R¹R¼R¿R
RRR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyR s¬ 
 
 
$    !                         
                                       ,                     #             C            1                            + +                 scygwin.*tunixtos2emxtemxtposixtnttmsvccCs§|dkrtj}n|dkr0tj}n|dkrXtjjdƒdkrXdSxHtD]@\}}tj    ||ƒdk    s›tj    ||ƒdk    r_|Sq_WdS(sr Determine the default compiler to use for the given platform.
 
        osname should be one of the standard Python OS names (i.e. the
        ones returned by os.name) and platform the common value
        returned by sys.platform for the platform in question.
 
        The default values are os.name and sys.platform in case the
        parameters are not given.
 
    RÎtGCCitmingw32RÊN(
RRLR*R½tplatformtversiontfindt_default_compilerstretmatch(tosnameRÒtpatterntcompiler((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytget_default_compilerŠs    $t unixccompilert UnixCCompilersstandard UNIX-style compilert msvccompilert MSVCCompilersMicrosoft Visual C++tcygwinccompilertCygwinCCompilers'Cygwin port of GNU C Compiler for Win32tcygwintMingw32CCompilers(Mingw32 port of GNU C Compiler for Win32RÑt bcppcompilert BCPPCompilersBorland C++ Compilertbcppt emxccompilert EMXCCompilers#EMX port of GNU C Compiler for OS/2cCsvddlm}g}x6tjƒD](}|jd|dt|dfƒq#W|jƒ||ƒ}|jdƒdS(syPrint list of available compilers (used by the "--help-compiler"
    options to "build", "build_ext", "build_clib").
    iÿÿÿÿ(t FancyGetopts    compiler=isList of available compilers:N(tdistutils.fancy_getoptRétcompiler_classRR3Rtsortt
print_help(Rét    compilersRÚtpretty_printer((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytshow_compilers³s
 ic Cs|dkrtj}ny2|dkr6t|ƒ}nt|\}}}WnAtk
rd|}|dk    r|d|}nt|‚nXy5d|}t|ƒtj    |}    t
|    ƒ|}
WnEt k
rãt d|‚n(tk
r
t dd||f‚nX|
d||ƒS(s[Generate an instance of some CCompiler subclass for the supplied
    platform/compiler combination.  'plat' defaults to 'os.name'
    (eg. 'posix', 'nt'), and 'compiler' defaults to the default compiler
    for that platform.  Currently only 'posix' and 'nt' are supported, and
    the default compilers are "traditional Unix interface" (UnixCCompiler
    class) and Visual C++ (MSVCCompiler class).  Note that it's perfectly
    possible to ask for a Unix compiler object under Windows, and a
    Microsoft compiler object under Unix -- if you supply a value for
    'compiler', 'plat' is ignored.
    s5don't know how to compile C/C++ code on platform '%s's with '%s' compilers
distutils.s4can't compile C/C++ code: unable to load module '%s's4can't compile C/C++ code: unable to find class '%s' sin module '%s'N( RRLR*RÛRëRsRt
__import__R½tmodulestvarst ImportErrorR( tplatRÚRRRt module_namet
class_nametlong_descriptionR·tmoduletklass((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt new_compilerÄs2    
 
 
 
 cCsúg}xË|D]Ã}t|tƒoAdt|ƒko?dknsXtdd|‚nt|ƒdkr‚|jd|dƒq t|ƒdkr |dd
kr¼|jd|dƒqÐ|jd|ƒq q Wx|D]}|jd    |ƒqÛW|S( sGenerate C pre-processor options (-D, -U, -I) as used by at least
    two types of compilers: the typical Unix compiler and Visual C++.
    'macros' is the usual thing, a list of 1- or 2-tuples, where (name,)
    means undefine (-U) macro 'name', and (name,value) means define (-D)
    macro 'name' to 'value'.  'include_dirs' is just a list of directory
    names to be added to the header file search path (-I).  Returns a list
    of command-line options suitable for either Unix compilers or Visual
    C++.
    iisbad macro definition '%s': s5each element of 'macros' list must be a 1- or 2-tuples-U%sis-D%ss-D%s=%ss-I%sN(R&R.R/R0R3R(RRRUtmacroR7((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyRJñs" "
 c Cs g}x$|D]}|j|j|ƒƒq WxI|D]A}|j|ƒ}t|tƒrh|j|ƒq4|j|ƒq4Wx|D]…}tjj|ƒ\}}    |dkrï|j    |g|    ƒ}
|
dk    rÛ|j|
ƒq|j d|ƒq€|j|j |ƒƒq€W|S(sgGenerate linker options for searching library directories and
    linking with specific libraries.
 
    'libraries' and 'library_dirs' are, respectively, lists of library names
    (not filenames!) and search directories.  Returns a list of command-line
    options suitable for use with some compiler (depending on the two format
    strings passed in).
    R¢s6no library file corresponding to '%s' found (skipping)N( R3RRŽR&RGtextendRLRMR´R¡RR¿R( RÚRRRtlib_optsR7toptRtlib_dirtlib_nametlib_file((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pytgen_lib_options"s$              (#RÅt __revision__R½RLRÖtdistutils.errorsRRRRRtdistutils.spawnRtdistutils.file_utilRtdistutils.dir_utilRtdistutils.dep_utilRtdistutils.utilR    R
t    distutilsR tdistutils.sysconfigR R RÕRRÛRëRðRûRJR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/ccompiler.pyt<module>sJ   (ÿÿÿm                
 
 
 
 
     -    1