Home | History | Annotate | Download | only in auto_bisect

Lines Matching refs:opts

24   def __init__(self, opts):
28 opts: Options parsed from command line.
34 if not opts.build_preference:
35 opts.build_preference = 'msvs'
37 if opts.build_preference == 'msvs':
43 if opts.goma_dir:
44 opts.goma_dir = opts.goma_dir.encode('string_escape')
45 SetBuildSystemDefault(opts.build_preference, opts.use_goma,
46 opts.goma_dir)
48 if not opts.build_preference:
50 opts.build_preference = 'ninja'
52 opts.build_preference = 'make'
54 SetBuildSystemDefault(opts.build_preference, opts.use_goma, opts.goma_dir)
56 if not SetupPlatformBuildEnvironment(opts):
60 def FromOpts(opts):
64 opts: Options parsed from the command-line.
67 if opts.target_platform == 'cros':
68 builder = CrosBuilder(opts)
69 elif opts.target_platform == 'android':
70 builder = AndroidBuilder(opts)
71 elif opts.target_platform == 'android-chrome':
72 builder = AndroidChromeBuilder(opts)
74 builder = DesktopBuilder(opts)
77 def Build(self, depot, opts):
82 def GetBuildOutputDirectory(opts, src_dir=None):
88 opts: Command-line options.
98 if opts.build_preference == 'ninja' or bisect_utils.IsLinuxHost():
110 def __init__(self, opts):
111 super(DesktopBuilder, self).__init__(opts)
113 def Build(self, depot, opts):
118 opts: The options parsed from the command line.
126 if opts.use_goma:
130 if opts.build_preference == 'make':
131 build_success = BuildWithMake(threads, targets, opts.target_build_type)
132 elif opts.build_preference == 'ninja':
133 build_success = BuildWithNinja(threads, targets, opts.target_build_type)
134 elif opts.build_preference == 'msvs':
136 build_success = BuildWithVisualStudio(targets, opts.target_build_type)
145 def __init__(self, opts):
146 super(AndroidBuilder, self).__init__(opts)
155 def Build(self, depot, opts):
160 opts: The options parsed from the command line.
166 if opts.use_goma:
170 if opts.build_preference == 'ninja':
172 threads, self._GetTargets(), opts.target_build_type)
185 def __init__(self, opts):
186 super(AndroidChromeBuilder, self).__init__(opts)
202 def __init__(self, opts):
203 super(CrosBuilder, self).__init__(opts)
206 def ImageToTarget(opts):
207 """Installs latest image to target specified by opts.cros_remote_ip.
210 opts: Program options containing cros_board and cros_remote_ip.
220 '--remote=%s' % opts.cros_remote_ip,
221 '--board=%s' % opts.cros_board, '--test', '--verbose']
229 def BuildPackages(opts, depot):
233 opts: Program options containing cros_board.
250 cmd += ['BUILDTYPE=%s' % opts.target_build_type, './build_packages',
251 '--board=%s' % opts.cros_board]
257 def BuildImage(opts, depot):
261 opts: Program options containing cros_board.
278 cmd += ['BUILDTYPE=%s' % opts.target_build_type, '--', './build_image',
279 '--board=%s' % opts.cros_board, 'test']
285 def Build(self, depot, opts):
290 opts: The options parsed from the command line.
295 if self.BuildPackages(opts, depot):
296 if self.BuildImage(opts, depot):
297 return self.ImageToTarget(opts)
335 def SetupPlatformBuildEnvironment(opts):
339 opts: The options parsed from the command line through parse_args().
344 if 'android' in opts.target_platform:
346 return SetupAndroidBuildEnvironment(opts)
347 elif opts.target_platform == 'cros':
420 def SetupAndroidBuildEnvironment(opts, path_to_src=None):
424 opts: The options parsed from the command line through parse_args().
457 if opts.use_goma: