xref: /third_party/rust/crates/which-rs/BUILD.gn (revision b3ba51a1)
1b3ba51a1Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2b3ba51a1Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3b3ba51a1Sopenharmony_ci# you may not use this file except in compliance with the License.
4b3ba51a1Sopenharmony_ci# You may obtain a copy of the License at
5b3ba51a1Sopenharmony_ci#
6b3ba51a1Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7b3ba51a1Sopenharmony_ci#
8b3ba51a1Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9b3ba51a1Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10b3ba51a1Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11b3ba51a1Sopenharmony_ci# See the License for the specific language governing permissions and
12b3ba51a1Sopenharmony_ci# limitations under the License.
13b3ba51a1Sopenharmony_ci
14b3ba51a1Sopenharmony_ciimport("//build/ohos.gni")
15b3ba51a1Sopenharmony_ci
16b3ba51a1Sopenharmony_ciohos_cargo_crate("lib") {
17b3ba51a1Sopenharmony_ci    crate_name = "which"
18b3ba51a1Sopenharmony_ci    crate_type = "rlib"
19b3ba51a1Sopenharmony_ci    crate_root = "src/lib.rs"
20b3ba51a1Sopenharmony_ci
21b3ba51a1Sopenharmony_ci    sources = ["src/lib.rs"]
22b3ba51a1Sopenharmony_ci    edition = "2018"
23b3ba51a1Sopenharmony_ci    cargo_pkg_version = "4.4.0"
24b3ba51a1Sopenharmony_ci    cargo_pkg_authors = "Harry Fei <tiziyuanfang@gmail.com>"
25b3ba51a1Sopenharmony_ci    cargo_pkg_name = "which"
26b3ba51a1Sopenharmony_ci    cargo_pkg_description = "A Rust equivalent of Unix command \which\. Locate installed executable in cross platforms."
27b3ba51a1Sopenharmony_ci    deps = [
28b3ba51a1Sopenharmony_ci        "//third_party/rust/crates/either:lib",
29b3ba51a1Sopenharmony_ci        "//third_party/rust/crates/libc:lib",
30b3ba51a1Sopenharmony_ci    ]
31b3ba51a1Sopenharmony_ci}
32