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 5PYTHON_VERSION_COMPATIBILITY = 'PY3' 6 7DEPS = [ 8 'macos_sdk', 9 'recipe_engine/platform', 10 'recipe_engine/properties', 11 'recipe_engine/step', 12] 13 14 15def RunSteps(api): 16 with api.macos_sdk(): 17 sdk_dir = api.macos_sdk.sdk_dir if api.platform.is_mac else None 18 api.step('gn', ['gn', 'gen', 'out/Release']) 19 api.step('ninja', ['ninja', '-C', 'out/Release']) 20 21 22def GenTests(api): 23 for platform in ('linux', 'mac', 'win'): 24 yield (api.test(platform) + api.platform.name(platform) + 25 api.properties.generic(buildername='test_builder')) 26