1# Copyright 2018 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5DEPS = [ 6 'macos_sdk', 7 'recipe_engine/platform', 8 'recipe_engine/properties', 9 'recipe_engine/step', 10] 11 12 13def RunSteps(api): 14 with api.macos_sdk(): 15 sdk_dir = api.macos_sdk.sdk_dir if api.platform.is_mac else None 16 api.step('gn', ['gn', 'gen', 'out/Release']) 17 api.step('ninja', ['ninja', '-C', 'out/Release']) 18 19 20def GenTests(api): 21 for platform in ('linux', 'mac', 'win'): 22 yield (api.test(platform) + api.platform.name(platform) + 23 api.properties.generic(buildername='test_builder')) 24