blob: c5c4f127c64e5b9800e35fd4b2a4bed3009ad1a7 [file] [log] [blame]
# 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',
'flutter/goma',
'recipe_engine/context',
'recipe_engine/path',
'recipe_engine/platform',
'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('profile', checkout, ['mytarget'])
with api.context(env=env, env_prefixes=env_prefixes):
api.build_util.run_gn(['--no-goma'], checkout)
api.build_util.build('release', checkout, ['mytarget'])
def GenTests(api):
yield api.test('basic', api.properties(no_lto=True))
yield api.test('win', api.properties(no_lto=True),
api.platform('win', 64))
yield api.test('mac', api.properties(no_lto=True),
api.platform('mac', 64))