Debian Codegraph @

third_party/icu4x/BUILD.gn

raw
1 # Copyright 2023 Google LLC
2 #
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import("../../gn/skia.gni")
7 import("../third_party.gni")
8
9 bazel_args = []
10
11 action("compile_icu4x_rust") {
12 script = "../../gn/bazel_build.py"
13 sources = [
14 "//bazel/external/icu4x/BUILD.bazel",
15 "//bazel/external/icu4x/src/lib.rs",
16 ]
17 outputs = [ "$root_out_dir/libicu4x_rust.a" ]
18 args = [
19 "//bazel/external/icu4x:icu4x_rust",
20 rebase_path("//bazel-bin/bazel/external/icu4x/libicu4x_rust.a",
21 root_build_dir),
22 ] + bazel_args
23 }
24
25 third_party("icu4x") {
26 public_include_dirs = [
27 "../externals/icu4x/ffi/capi/cpp/include",
28 "../externals/icu4x/ffi/capi/c/include",
29 ]
30
31 libs = [
32 "$root_out_dir/libicu4x_rust.a",
33 "c++",
34 ]
35 deps = [ ":compile_icu4x_rust" ]
36 }