xref: /third_party/gn/infra/recipe_modules/macos_sdk/examples/full.py
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/gn/infra/recipe_modules/macos_sdk/examples/
16d528ed9Sopenharmony_ci# Copyright 2018 The Chromium Authors. All rights reserved.
26d528ed9Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
36d528ed9Sopenharmony_ci# found in the LICENSE file.
46d528ed9Sopenharmony_ci
56d528ed9Sopenharmony_ciDEPS = [
66d528ed9Sopenharmony_ci    'macos_sdk',
76d528ed9Sopenharmony_ci    'recipe_engine/platform',
86d528ed9Sopenharmony_ci    'recipe_engine/properties',
96d528ed9Sopenharmony_ci    'recipe_engine/step',
106d528ed9Sopenharmony_ci]
116d528ed9Sopenharmony_ci
126d528ed9Sopenharmony_ci
136d528ed9Sopenharmony_cidef RunSteps(api):
146d528ed9Sopenharmony_ci  with api.macos_sdk():
156d528ed9Sopenharmony_ci    sdk_dir = api.macos_sdk.sdk_dir if api.platform.is_mac else None
166d528ed9Sopenharmony_ci    api.step('gn', ['gn', 'gen', 'out/Release'])
176d528ed9Sopenharmony_ci    api.step('ninja', ['ninja', '-C', 'out/Release'])
186d528ed9Sopenharmony_ci
196d528ed9Sopenharmony_ci
206d528ed9Sopenharmony_cidef GenTests(api):
216d528ed9Sopenharmony_ci  for platform in ('linux', 'mac', 'win'):
226d528ed9Sopenharmony_ci    yield (api.test(platform) + api.platform.name(platform) +
236d528ed9Sopenharmony_ci           api.properties.generic(buildername='test_builder'))
24

Indexes created Thu Nov 07 10:32:03 CST 2024