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 14hispark_pegasus_sdk_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos" 15dsoftbus_root_path = "//foundation/communication/dsoftbus" 16dsoftbus_sdk_path = "${dsoftbus_root_path}/sdk" 17dsoftbus_core_path = "${dsoftbus_root_path}/core" 18dsoftbus_test_path = "${dsoftbus_root_path}/tests" 19 20declare_args() { 21 softbus_adapter_common = "${dsoftbus_root_path}/adapter/common" 22 softbus_adapter_config = "${dsoftbus_root_path}/adapter/default_config" 23 dsoftbus_feature_product_config_path = 24 "${dsoftbus_root_path}/adapter/default_config" 25} 26 27declare_args() { 28 dsoftbus_get_devicename = true 29 softbus_communication_wifi_feature = true 30 softbus_os_account = true 31} 32 33if (defined(global_parts_info) && 34 !defined(global_parts_info.communication_wifi)) { 35 softbus_communication_wifi_feature = false 36} 37 38if (defined(global_parts_info) && 39 !defined(global_parts_info.ability_ability_runtime)) { 40 dsoftbus_get_devicename = false 41} 42 43if (defined(global_parts_info) && 44 !defined(global_parts_info.account_os_account)) { 45 softbus_os_account = false 46} 47 48if (defined(global_parts_info) && 49 !defined(global_parts_info.communication_bluetooth)) { 50 support_bluetooth = false 51} else { 52 support_bluetooth = true 53} 54 55if (defined(ohos_lite)) { 56 import("//build/lite/config/component/lite_component.gni") 57 if (ohos_kernel_type == "liteos_m") { 58 import("$softbus_adapter_config/feature_config/mini/config.gni") 59 hilog_lite_include_path = 60 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite" 61 hilog_lite_deps_path = 62 "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" 63 } else { 64 import("$softbus_adapter_config/feature_config/small/config.gni") 65 hilog_lite_include_path = 66 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits" 67 hilog_lite_deps_path = 68 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" 69 } 70} else { 71 if (defined(os_win)) { 72 os_type = "windows" 73 } else { 74 os_type = "standard" 75 } 76 import("//build/ohos.gni") 77 import( 78 "$dsoftbus_feature_product_config_path/feature_config/standard/config.gni") 79} 80