1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# -*- bazel-starlark -*-
# Copyright 2023 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.
load("@builtin//struct.star", "module")
load("./simple.star", "simple")
__filegroups = {}
__handlers = {}
def __step_config(ctx, step_config):
step_config["platforms"] = {
"default": {
"OSFamily": "Linux",
"container-image": "docker://gcr.io/chops-private-images-prod/rbe/siso-chromium/linux@sha256:d4fcda628ebcdb3dd79b166619c56da08d5d7bd43d1a7b1f69734904cc7a1bb2",
},
}
step_config["input_deps"] = {
"third_party/llvm-build/Release+Asserts/bin/clang++": [
"third_party/llvm-build/Release+Asserts/bin/clang",
],
}
step_config["rules"] = [
{
"name": "clang/cxx",
"action": "cxx",
"command_prefix": "../../third_party/llvm-build/Release+Asserts/bin/clang++ ",
"inputs": [
"third_party/llvm-build/Release+Asserts/bin/clang++",
],
"remote": True,
},
{
"name": "clang/cc",
"action": "cc",
"command_prefix": "../../third_party/llvm-build/Release+Asserts/bin/clang ",
"inputs": [
"third_party/llvm-build/Release+Asserts/bin/clang",
],
"remote": True,
},
]
return step_config
chromium = module(
"chromium",
step_config = __step_config,
filegroups = __filegroups,
handlers = __handlers,
)
|