|
|
|
# Copyright 2018 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.
|
|
|
|
|
|
|
|
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
|
|
|
|
|
|
|
|
DEPS = [
|
[windows_sdk] allow env json to not be relative
SetEnv json entries in cipd packages for more recent Windows SDKs are
changed from:
[
"..",
"..",
"win_sdk",
"Include",
"10.0.17134.0",
"um"
],
to
[
"Windows Kits",
"10",
"Include",
"10.0.19041.0",
"um"
],
so we should accept these paths now.
R=iannucci@chromium.org
Bug: 1250098
Change-Id: I56c84bc5ed46dda354e018b0abac2fae0bad8199
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3296663
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
4 years ago
|
|
|
'windows_sdk',
|
|
|
|
'recipe_engine/json',
|
|
|
|
'recipe_engine/platform',
|
|
|
|
'recipe_engine/properties',
|
|
|
|
'recipe_engine/step',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def RunSteps(api):
|
|
|
|
with api.windows_sdk(enabled=api.platform.is_win):
|
|
|
|
api.step('gn', ['gn', 'gen', 'out/Release'])
|
|
|
|
api.step('ninja', ['ninja', '-C', 'out/Release'])
|
|
|
|
|
|
|
|
# bad arch
|
|
|
|
try:
|
|
|
|
with api.windows_sdk(target_arch='lolnope'):
|
|
|
|
assert False, "never here" # pragma: no cover
|
|
|
|
except ValueError:
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
def GenTests(api):
|
|
|
|
for platform in ('linux', 'mac', 'win'):
|
|
|
|
yield api.test(platform) + api.platform.name(platform)
|
[windows_sdk] allow env json to not be relative
SetEnv json entries in cipd packages for more recent Windows SDKs are
changed from:
[
"..",
"..",
"win_sdk",
"Include",
"10.0.17134.0",
"um"
],
to
[
"Windows Kits",
"10",
"Include",
"10.0.19041.0",
"um"
],
so we should accept these paths now.
R=iannucci@chromium.org
Bug: 1250098
Change-Id: I56c84bc5ed46dda354e018b0abac2fae0bad8199
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3296663
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
4 years ago
|
|
|
yield api.test('new_sdk') + api.platform.name('win') + api.override_step_data(
|
|
|
|
"read SetEnv json",
|
|
|
|
api.json.output({
|
|
|
|
'env': {
|
|
|
|
'PATH': [['Windows Kits', '10', 'bin', 'x64']],
|
|
|
|
'INCLUDE':
|
|
|
|
[['Windows Kits', '10', 'Include', '10.0.19041.0', 'um']],
|
|
|
|
},
|
|
|
|
}))
|