1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14ability_runtime_path = "//foundation/ability/ability_runtime" 15ability_runtime_inner_api_path = "${ability_runtime_path}/interfaces/inner_api" 16ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits" 17ability_runtime_services_path = "${ability_runtime_path}/services" 18hispark_pegasus_sdk_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos" 19dsoftbus_root_path = "//foundation/communication/dsoftbus" 20dsoftbus_sdk_path = "//foundation/communication/dsoftbus/sdk" 21dsoftbus_core_path = "//foundation/communication/dsoftbus/core" 22ability_base_path = "//foundation/ability/ability_base" 23dsoftbus_test_path = "//foundation/communication/dsoftbus/tests" 24 25declare_args() { 26 softbus_adapter_common = "//foundation/communication/dsoftbus/adapter/common" 27 softbus_adapter_config = 28 "//foundation/communication/dsoftbus/adapter/default_config" 29 dsoftbus_feature_product_config_path = 30 "//foundation/communication/dsoftbus/adapter/default_config" 31} 32 33declare_args() { 34 dsoftbus_get_devicename = true 35 softbus_communication_wifi_feature = true 36} 37 38if (defined(global_parts_info) && 39 !defined(global_parts_info.communication_wifi)) { 40 softbus_communication_wifi_feature = false 41} 42 43if (defined(global_parts_info) && 44 !defined(global_parts_info.ability_ability_runtime)) { 45 dsoftbus_get_devicename = false 46} 47 48if (defined(ohos_lite)) { 49 import("//build/lite/config/component/lite_component.gni") 50 if (ohos_kernel_type == "liteos_m") { 51 import("$softbus_adapter_config/feature_config/mini/config.gni") 52 hilog_lite_include_path = 53 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite" 54 hilog_lite_deps_path = 55 "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" 56 } else { 57 import("$softbus_adapter_config/feature_config/small/config.gni") 58 hilog_lite_include_path = 59 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits" 60 hilog_lite_deps_path = 61 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" 62 } 63} else { 64 if (defined(os_win)) { 65 os_type = "windows" 66 } else { 67 os_type = "standard" 68 } 69 import("//build/ohos.gni") 70 import( 71 "$dsoftbus_feature_product_config_path/feature_config/standard/config.gni") 72} 73