11e934351Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 21e934351Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 31e934351Sopenharmony_ci# you may not use this file except in compliance with the License. 41e934351Sopenharmony_ci# You may obtain a copy of the License at 51e934351Sopenharmony_ci# 61e934351Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 71e934351Sopenharmony_ci# 81e934351Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 91e934351Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 101e934351Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 111e934351Sopenharmony_ci# See the License for the specific language governing permissions and 121e934351Sopenharmony_ci# limitations under the License. 131e934351Sopenharmony_ci 141e934351Sopenharmony_ciimport("//build/ohos.gni") 151e934351Sopenharmony_ci 161e934351Sopenharmony_ciif (!defined(global_parts_info) || 171e934351Sopenharmony_ci defined(global_parts_info.commonlibrary_ylong_http)) { 181e934351Sopenharmony_ci has_commonlibrary_ylong_http = true 191e934351Sopenharmony_ci} else { 201e934351Sopenharmony_ci has_commonlibrary_ylong_http = false 211e934351Sopenharmony_ci} 221e934351Sopenharmony_ci 231e934351Sopenharmony_ciohos_rust_shared_library("ylong_http_client") { 241e934351Sopenharmony_ci crate_name = "ylong_http_client" 251e934351Sopenharmony_ci crate_type = "dylib" 261e934351Sopenharmony_ci crate_root = "src/lib.rs" 271e934351Sopenharmony_ci 281e934351Sopenharmony_ci install_images = [ system_base_dir ] 291e934351Sopenharmony_ci subsystem_name = "communication" 301e934351Sopenharmony_ci part_name = "netstack" 311e934351Sopenharmony_ci 321e934351Sopenharmony_ci sources = [ "src/lib.rs" ] 331e934351Sopenharmony_ci edition = "2021" 341e934351Sopenharmony_ci clippy_lints = "none" 351e934351Sopenharmony_ci if (has_commonlibrary_ylong_http) { 361e934351Sopenharmony_ci external_deps = [ "ylong_http:ylong_http_client_inner" ] 371e934351Sopenharmony_ci } 381e934351Sopenharmony_ci features = [ 391e934351Sopenharmony_ci "default", 401e934351Sopenharmony_ci "ylong_impl", 411e934351Sopenharmony_ci ] 421e934351Sopenharmony_ci} 43