112a9d9c8Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
212a9d9c8Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
312a9d9c8Sopenharmony_ci# you may not use this file except in compliance with the License.
412a9d9c8Sopenharmony_ci# You may obtain a copy of the License at
512a9d9c8Sopenharmony_ci#
612a9d9c8Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
712a9d9c8Sopenharmony_ci#
812a9d9c8Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
912a9d9c8Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1012a9d9c8Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112a9d9c8Sopenharmony_ci# See the License for the specific language governing permissions and
1212a9d9c8Sopenharmony_ci# limitations under the License.
1312a9d9c8Sopenharmony_ci
1412a9d9c8Sopenharmony_ciimport("//build/ohos.gni")
1512a9d9c8Sopenharmony_ci
1612a9d9c8Sopenharmony_ciohos_cargo_crate("bindgen") {
1712a9d9c8Sopenharmony_ci  crate_type = "bin"
1812a9d9c8Sopenharmony_ci  crate_root = "main.rs"
1912a9d9c8Sopenharmony_ci
2012a9d9c8Sopenharmony_ci  sources = [ "main.rs" ]
2112a9d9c8Sopenharmony_ci  edition = "2018"
2212a9d9c8Sopenharmony_ci  cargo_pkg_version = "0.64.0"
2312a9d9c8Sopenharmony_ci  cargo_pkg_authors = "The rust-bindgen project contributors"
2412a9d9c8Sopenharmony_ci  cargo_pkg_name = "bindgen-cli"
2512a9d9c8Sopenharmony_ci  cargo_pkg_description =
2612a9d9c8Sopenharmony_ci      "Automatically generates Rust FFI bindings to C and C++ libraries."
2712a9d9c8Sopenharmony_ci  deps = [
2812a9d9c8Sopenharmony_ci    "//third_party/rust/crates/bindgen/bindgen:lib",
2912a9d9c8Sopenharmony_ci    "//third_party/rust/crates/clap:lib",
3012a9d9c8Sopenharmony_ci    "//third_party/rust/crates/env_logger:lib",
3112a9d9c8Sopenharmony_ci    "//third_party/rust/crates/log:lib",
3212a9d9c8Sopenharmony_ci    "//third_party/rust/crates/shlex:lib",
3312a9d9c8Sopenharmony_ci  ]
3412a9d9c8Sopenharmony_ci  features = [
3512a9d9c8Sopenharmony_ci    "env_logger",
3612a9d9c8Sopenharmony_ci    "log",
3712a9d9c8Sopenharmony_ci    "logging",
3812a9d9c8Sopenharmony_ci    "static",
3912a9d9c8Sopenharmony_ci    "which-rustfmt",
4012a9d9c8Sopenharmony_ci  ]
4112a9d9c8Sopenharmony_ci}
42