| # Copyright 2020 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from recipe_engine.post_process import DoesNotRun, Filter, StatusFailure |
| |
| DEPS = [ |
| 'flutter/build_util', |
| 'fuchsia/goma', |
| 'recipe_engine/context', |
| 'recipe_engine/path', |
| 'recipe_engine/properties', |
| ] |
| |
| |
| def RunSteps(api): |
| checkout = api.path['start_dir'] |
| api.goma.ensure() |
| env = {'GOMA_DIR': api.goma.goma_dir} |
| env_prefixes = {} |
| with api.context(env=env, env_prefixes=env_prefixes): |
| api.build_util.run_gn([], checkout) |
| api.build_util.build('release', checkout, ['mytarget']) |
| |
| |
| def GenTests(api): |
| yield api.test('goma', api.properties(no_lto=True, goma_jobs=100)) |
| yield api.test('no_goma', api.properties(no_lto=True, goma_jobs=100, no_goma=True)) |