Lines Matching refs:self
85 def preprocess(self, source, output_file=None, macros=None,
87 fixed_args = self._fix_compile_args(None, macros, include_dirs)
90 pp_args = self.preprocessor + pp_opts
103 if self.force or output_file is None or newer(source, output_file):
105 self.mkpath(os.path.dirname(output_file))
107 self.spawn(pp_args)
111 def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
112 compiler_so = self.compiler_so
117 self.spawn(compiler_so + cc_args + [src, '-o', obj] +
122 def create_static_lib(self, objects, output_libname,
124 objects, output_dir = self._fix_object_args(objects, output_dir)
127 self.library_filename(output_libname, output_dir=output_dir)
129 if self._need_link(objects, output_filename):
130 self.mkpath(os.path.dirname(output_filename))
131 self.spawn(self.archiver +
133 objects + self.objects)
140 if self.ranlib:
142 self.spawn(self.ranlib + [output_filename])
148 def link(self, target_desc, objects,
153 objects, output_dir = self._fix_object_args(objects, output_dir)
154 fixed_args = self._fix_lib_args(libraries, library_dirs,
158 lib_opts = gen_lib_options(self, library_dirs, runtime_library_dirs,
165 if self._need_link(objects, output_filename):
166 ld_args = (objects + self.objects +
174 self.mkpath(os.path.dirname(output_filename))
177 linker = self.linker_exe[:]
179 linker = self.linker_so[:]
180 if target_lang == "c++" and self.compiler_cxx:
199 linker[i+offset] = self.compiler_cxx[i]
204 self.spawn(linker + ld_args)
214 def library_dir_option(self, dir):
217 def _is_gcc(self, compiler_name):
221 def runtime_library_dir_option(self, dir):
242 if self._is_gcc(compiler):
246 if self._is_gcc(compiler):
263 def library_option(self, lib):
266 def find_library_file(self, dirs, lib, debug=0):
267 shared_f = self.library_filename(lib, lib_type='shared')
268 dylib_f = self.library_filename(lib, lib_type='dylib')
269 xcode_stub_f = self.library_filename(lib, lib_type='xcode_stub')
270 static_f = self.library_filename(lib, lib_type='static')