-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathBUILD
More file actions
107 lines (96 loc) · 2.66 KB
/
Copy pathBUILD
File metadata and controls
107 lines (96 loc) · 2.66 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#
# Copyright 2024 The Project Oak Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
package(
default_visibility = ["//:default_visibility"],
licenses = ["notice"],
)
cc_library(
name = "cxx_string_test_foreign",
srcs = ["cxx_string_test_foreign.cc"],
hdrs = ["cxx_string_test_foreign.h"],
target_compatible_with = ["@platforms//os:linux"],
deps = [
"//cc/ffi:bytes_bindings",
"//cc/ffi:bytes_view",
"//cc/ffi:cxx_string",
"@com_google_absl//absl/strings",
],
)
rust_library(
name = "oak_ffi_bytes",
srcs = ["bytes.rs"],
target_compatible_with = ["@platforms//os:linux"],
)
rust_test(
name = "oak_ffi_bytes_test",
crate = ":oak_ffi_bytes",
target_compatible_with = ["@platforms//os:linux"],
)
rust_library(
name = "oak_ffi_error",
srcs = ["error.rs"],
target_compatible_with = ["@platforms//os:linux"],
deps = [":oak_ffi_bytes"],
)
rust_library(
name = "cxx_string",
srcs = ["cxx_string.rs"],
target_compatible_with = ["@platforms//os:linux"],
deps = [
"//cc/ffi:cxx_string",
],
)
rust_test(
name = "cxx_string_test",
crate = ":cxx_string",
target_compatible_with = ["@platforms//os:linux"],
deps = [
":cxx_string_test_foreign",
":oak_ffi_bytes",
"//cc/ffi:cxx_string",
],
)
rust_library(
name = "absl_status",
srcs = ["absl_status.rs"],
target_compatible_with = ["@platforms//os:linux"],
deps = [
":oak_ffi_bytes",
"//cc/ffi:absl_status",
],
)
cc_library(
name = "absl_status_test_foreign",
srcs = ["absl_status_test_foreign.cc"],
target_compatible_with = ["@platforms//os:linux"],
deps = [
"//cc/ffi:absl_status",
"//cc/ffi:bytes_view",
"@com_google_absl//absl/log:die_if_null",
"@com_google_absl//absl/status",
],
)
rust_test(
name = "absl_status_test",
crate = ":absl_status",
target_compatible_with = ["@platforms//os:linux"],
deps = [
":absl_status_test_foreign",
":oak_ffi_bytes",
],
)