-
Notifications
You must be signed in to change notification settings - Fork 212
/
uncategorized_rules.bzl
58 lines (52 loc) · 2.1 KB
/
uncategorized_rules.bzl
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
53
54
55
56
57
58
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.
# TODO(cjhopman): This was generated by scripts/hacks/rules_shim_with_docs.py,
# but should be manually edited going forward. There may be some errors in
# the generated docs, and so those should be verified to be accurate and
# well-formatted (and then delete this TODO)
load(":common.bzl", "prelude_rule")
NdkCxxRuntime = ["system", "gabixx", "stlport", "gnustl", "libcxx"]
legacy_toolchain = prelude_rule(
name = "legacy_toolchain",
docs = "",
examples = None,
further = None,
attrs = (
# @unsorted-dict-items
{
"contacts": attrs.list(attrs.string(), default = []),
"default_host_platform": attrs.option(attrs.configuration_label(), default = None),
"labels": attrs.list(attrs.string(), default = []),
"licenses": attrs.list(attrs.source(), default = []),
"toolchain_name": attrs.string(default = ""),
}
),
)
ndk_toolchain = prelude_rule(
name = "ndk_toolchain",
docs = "",
examples = None,
further = None,
attrs = (
# @unsorted-dict-items
{
"contacts": attrs.list(attrs.string(), default = []),
"cxx_runtime": attrs.option(attrs.enum(NdkCxxRuntime), default = None),
"cxx_toolchain": attrs.dep(),
"default_host_platform": attrs.option(attrs.configuration_label(), default = None),
"labels": attrs.list(attrs.string(), default = []),
"licenses": attrs.list(attrs.source(), default = []),
"objdump": attrs.source(),
"shared_runtime_path": attrs.option(attrs.source(), default = None),
"strip_apk_libs_flags": attrs.option(attrs.list(attrs.arg()), default = None),
}
),
)
uncategorized_rules = struct(
legacy_toolchain = legacy_toolchain,
ndk_toolchain = ndk_toolchain,
)