1b12ac153Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2b12ac153Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3b12ac153Sopenharmony_ci# you may not use this file except in compliance with the License.
4b12ac153Sopenharmony_ci# You may obtain a copy of the License at
5b12ac153Sopenharmony_ci#
6b12ac153Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7b12ac153Sopenharmony_ci#
8b12ac153Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9b12ac153Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10b12ac153Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11b12ac153Sopenharmony_ci# See the License for the specific language governing permissions and
12b12ac153Sopenharmony_ci# limitations under the License.
13b12ac153Sopenharmony_ci
14b12ac153Sopenharmony_ciimport("//build/ohos.gni")
15b12ac153Sopenharmony_ci
16b12ac153Sopenharmony_ciohos_cargo_crate("lib") {
17b12ac153Sopenharmony_ci    crate_name = "cfg_if"
18b12ac153Sopenharmony_ci    crate_type = "rlib"
19b12ac153Sopenharmony_ci    crate_root = "src/lib.rs"
20b12ac153Sopenharmony_ci
21b12ac153Sopenharmony_ci    sources = ["src/lib.rs"]
22b12ac153Sopenharmony_ci    edition = "2018"
23b12ac153Sopenharmony_ci    cargo_pkg_version = "1.0.0"
24b12ac153Sopenharmony_ci    cargo_pkg_authors = "Alex Crichton <alex@alexcrichton.com>"
25b12ac153Sopenharmony_ci    cargo_pkg_name = "cfg-if"
26b12ac153Sopenharmony_ci    cargo_pkg_description = "A macro to ergonomically define an item depending on a large number of #[cfg]parameters. Structured like an if-else chain, the first matching branch is theitem that gets emitted."
27b12ac153Sopenharmony_ci}
28