1a2e6e8b4Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2a2e6e8b4Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3a2e6e8b4Sopenharmony_ci# you may not use this file except in compliance with the License.
4a2e6e8b4Sopenharmony_ci# You may obtain a copy of the License at
5a2e6e8b4Sopenharmony_ci#
6a2e6e8b4Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7a2e6e8b4Sopenharmony_ci#
8a2e6e8b4Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9a2e6e8b4Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10a2e6e8b4Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11a2e6e8b4Sopenharmony_ci# See the License for the specific language governing permissions and
12a2e6e8b4Sopenharmony_ci# limitations under the License.
13a2e6e8b4Sopenharmony_ci
14a2e6e8b4Sopenharmony_ciimport("//build/ohos.gni")
15a2e6e8b4Sopenharmony_ci
16a2e6e8b4Sopenharmony_ciohos_cargo_crate("lib") {
17a2e6e8b4Sopenharmony_ci  crate_name = "link_cplusplus"
18a2e6e8b4Sopenharmony_ci  crate_type = "rlib"
19a2e6e8b4Sopenharmony_ci  visibility = [ "//third_party/rust/crates/*" ]
20a2e6e8b4Sopenharmony_ci  crate_root = "src/lib.rs"
21a2e6e8b4Sopenharmony_ci
22a2e6e8b4Sopenharmony_ci  sources = [ "src/lib.rs" ]
23a2e6e8b4Sopenharmony_ci  edition = "2018"
24a2e6e8b4Sopenharmony_ci  cargo_pkg_version = "1.0.8"
25a2e6e8b4Sopenharmony_ci  cargo_pkg_authors = "David Tolnay <dtolnay@gmail.com>"
26a2e6e8b4Sopenharmony_ci  cargo_pkg_name = "link-cplusplus"
27a2e6e8b4Sopenharmony_ci  cargo_pkg_description = "Link libstdc++ or libc++ automatically or manually"
28a2e6e8b4Sopenharmony_ci  build_root = "build.rs"
29a2e6e8b4Sopenharmony_ci  build_sources = [ "build.rs" ]
30a2e6e8b4Sopenharmony_ci}
31