2021-06-01 16:05:35 +00:00
|
|
|
# Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2022-05-19 02:29:31 +00:00
|
|
|
hispark_pegasus_sdk_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos"
|
2023-10-13 08:28:42 +00:00
|
|
|
dsoftbus_root_path = rebase_path(".")
|
2023-05-05 12:39:13 +00:00
|
|
|
dsoftbus_sdk_path = "${dsoftbus_root_path}/sdk"
|
|
|
|
dsoftbus_core_path = "${dsoftbus_root_path}/core"
|
|
|
|
dsoftbus_test_path = "${dsoftbus_root_path}/tests"
|
2023-09-13 02:47:40 +00:00
|
|
|
dsoftbus_fuzz_out_path = "dsoftbus/soft_bus"
|
2021-07-13 07:10:49 +00:00
|
|
|
|
2021-09-02 12:10:50 +00:00
|
|
|
declare_args() {
|
2023-05-05 12:39:13 +00:00
|
|
|
softbus_adapter_common = "${dsoftbus_root_path}/adapter/common"
|
|
|
|
softbus_adapter_config = "${dsoftbus_root_path}/adapter/default_config"
|
2022-06-01 09:26:07 +00:00
|
|
|
dsoftbus_feature_product_config_path =
|
2023-05-05 12:39:13 +00:00
|
|
|
"${dsoftbus_root_path}/adapter/default_config"
|
2021-07-23 06:15:53 +00:00
|
|
|
}
|
|
|
|
|
2022-10-21 09:25:40 +00:00
|
|
|
declare_args() {
|
|
|
|
dsoftbus_get_devicename = true
|
|
|
|
softbus_communication_wifi_feature = true
|
2023-02-13 10:17:43 +00:00
|
|
|
softbus_os_account = true
|
2024-05-05 16:47:21 +00:00
|
|
|
dsoftbus_feature_lnn_cloud_sync = true
|
2024-05-10 03:37:13 +00:00
|
|
|
softbus_lnn_lp_feature = true
|
2024-06-21 06:21:55 +00:00
|
|
|
dsoftbus_build_eng = false
|
2022-10-21 09:25:40 +00:00
|
|
|
}
|
|
|
|
|
2022-10-21 09:26:31 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.communication_wifi)) {
|
|
|
|
softbus_communication_wifi_feature = false
|
2022-10-21 09:25:40 +00:00
|
|
|
}
|
|
|
|
|
2022-10-21 09:26:31 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.ability_ability_runtime)) {
|
|
|
|
dsoftbus_get_devicename = false
|
2022-10-21 09:25:40 +00:00
|
|
|
}
|
|
|
|
|
2023-02-13 10:17:43 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.account_os_account)) {
|
|
|
|
softbus_os_account = false
|
|
|
|
}
|
|
|
|
|
2023-07-19 13:44:00 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.communication_bluetooth)) {
|
|
|
|
support_bluetooth = false
|
|
|
|
} else {
|
|
|
|
support_bluetooth = true
|
|
|
|
}
|
|
|
|
|
2024-05-10 03:37:13 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.resourceschedule_device_standby_ext)) {
|
|
|
|
softbus_lnn_lp_feature = false
|
|
|
|
}
|
|
|
|
|
2021-07-13 07:10:49 +00:00
|
|
|
if (defined(ohos_lite)) {
|
2021-11-01 13:36:35 +00:00
|
|
|
import("//build/lite/config/component/lite_component.gni")
|
2021-07-13 07:10:49 +00:00
|
|
|
if (ohos_kernel_type == "liteos_m") {
|
2024-01-15 08:55:13 +00:00
|
|
|
defines = [ "SOFTBUS_LITEOS_M" ]
|
2021-07-23 06:15:53 +00:00
|
|
|
import("$softbus_adapter_config/feature_config/mini/config.gni")
|
2021-07-13 07:10:49 +00:00
|
|
|
} else {
|
2024-01-15 08:55:13 +00:00
|
|
|
defines = [ "SOFTBUS_LITEOS_A" ]
|
2021-07-23 06:15:53 +00:00
|
|
|
import("$softbus_adapter_config/feature_config/small/config.gni")
|
2021-07-13 07:10:49 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-03-30 09:10:41 +00:00
|
|
|
if (defined(os_win)) {
|
|
|
|
os_type = "windows"
|
|
|
|
} else {
|
|
|
|
os_type = "standard"
|
|
|
|
}
|
2024-01-15 08:55:13 +00:00
|
|
|
defines = [ "SOFTBUS_LINUX" ]
|
2021-11-01 13:36:35 +00:00
|
|
|
import("//build/ohos.gni")
|
2022-03-17 13:26:10 +00:00
|
|
|
import(
|
2022-06-01 09:26:07 +00:00
|
|
|
"$dsoftbus_feature_product_config_path/feature_config/standard/config.gni")
|
2024-06-21 06:21:55 +00:00
|
|
|
|
|
|
|
if (build_variant == "root") {
|
|
|
|
defines += [ "BUILD_VARIANT_ENG" ]
|
|
|
|
dsoftbus_build_eng = true
|
|
|
|
} else {
|
|
|
|
dsoftbus_build_eng = false
|
|
|
|
}
|
2021-07-13 07:10:49 +00:00
|
|
|
}
|
2024-05-05 16:47:21 +00:00
|
|
|
|
2024-08-28 01:16:01 +00:00
|
|
|
defines += [ "OPENSSL_NO_FILENAMES" ]
|
|
|
|
|
2024-05-05 16:47:21 +00:00
|
|
|
if (defined(global_parts_info) &&
|
|
|
|
!defined(global_parts_info.distributeddatamgr_kv_store)) {
|
|
|
|
dsoftbus_feature_lnn_cloud_sync = false
|
|
|
|
} else {
|
|
|
|
dsoftbus_feature_lnn_cloud_sync = true
|
2024-05-05 18:33:36 +00:00
|
|
|
}
|