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 'windows_sdk', 9 'recipe_engine/platform', 10 'recipe_engine/properties', 11 'recipe_engine/step', 12] 13 14 15def RunSteps(api): 16 with api.windows_sdk(): 17 api.step('gn', ['gn', 'gen', 'out/Release']) 18 api.step('ninja', ['ninja', '-C', 'out/Release']) 19 20 21def GenTests(api): 22 for platform in ('linux', 'mac', 'win'): 23 properties = { 24 'buildername': 'test_builder', 25 } 26 yield (api.test(platform) + api.platform.name(platform) + 27 api.properties.generic(**properties)) 28