communication_dsoftbus/core/adapter/core_adapter.gni
koujiaxin 47331785ab fix:modify gni file
Signed-off-by: koujiaxin <koujiaxin1@huawei.com>
2023-11-23 17:14:38 +08:00

115 lines
4.9 KiB
Plaintext

# Copyright (c) 2021-2023 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.
import("../../adapter/common/net/bluetooth/net_bluetooth.gni")
import("../../core/common/dfx/dsoftbus_dfx.gni")
import("../../dsoftbus.gni")
br_adapter_src =
[ "$dsoftbus_root_path/core/adapter/br/mock/wrapper_br_interface.c" ]
br_adapter_inc = [ "$dsoftbus_root_path/core/adapter/br/include" ]
bus_center_core_adapter_src = [
"$dsoftbus_root_path/core/adapter/bus_center/src/bus_center_adapter.c",
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_deviceinfo_to_profile_virtual.c",
"$dsoftbus_root_path/core/adapter/transmission/src/data_bus_native_virtual.c",
"$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c",
]
bus_center_core_adapter_inc = [ "$dsoftbus_root_path/adapter/common/include" ]
bus_center_core_adapter_deps = [ "$dsoftbus_dfx_path/log:softbus_dfx_log" ]
bus_center_core_adapter_external_deps = [ "init:libbegetutil" ]
if (defined(ohos_lite)) {
bus_center_core_adapter_src += [
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp",
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_virtual.cpp",
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_adapter_virtual.cpp",
]
bus_center_core_adapter_inc += [
"$dsoftbus_root_path/core/adapter/bus_center/include",
"$dsoftbus_root_path/core/bus_center/utils/include",
"//base/startup/init/interfaces/innerkits/include/syspara",
]
bus_center_core_adapter_deps +=
[ "//base/startup/init/interfaces/innerkits:libbegetutil" ]
if (dsoftbus_feature_encrypt == 0) {
bus_center_core_adapter_src += [
"$dsoftbus_root_path/core/adapter/huks/src/softbus_rsa_encrypt_virtual.c",
]
bus_center_core_adapter_inc +=
[ "$dsoftbus_root_path/core/adapter/huks/include" ]
} else if (dsoftbus_feature_encrypt == 1) {
bus_center_core_adapter_src +=
[ "$dsoftbus_root_path/core/adapter/huks/src/softbus_rsa_encrypt.c" ]
bus_center_core_adapter_inc +=
[ "$dsoftbus_root_path/core/adapter/huks/include" ]
bus_center_core_adapter_deps += [ "//third_party/openssl:libcrypto_shared" ]
bus_center_core_adapter_external_deps += [ "huks:libhukssdk" ]
}
} else {
if (!dsoftbus_get_devicename) {
bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp" ]
bus_center_core_adapter_inc +=
[ "$dsoftbus_root_path/core/adapter/bus_center/include" ]
} else {
bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor.cpp" ]
bus_center_core_adapter_inc += [
"$dsoftbus_root_path/adapter/common/bus_center/include",
"$dsoftbus_root_path/core/adapter/bus_center/include",
]
bus_center_core_adapter_external_deps += [
"ability_base:want",
"ability_base:zuri",
"ability_runtime:abilitykit_native",
"ability_runtime:dataobs_manager",
"data_share:datashare_common",
"data_share:datashare_consumer",
"relational_store:native_dataability",
"relational_store:native_rdb",
]
}
if (softbus_os_account) {
bus_center_core_adapter_src += [
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account.cpp",
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_adapter.cpp",
]
bus_center_core_adapter_external_deps += [
"os_account:libaccountkits",
"os_account:os_account_innerkits",
]
} else {
bus_center_core_adapter_src += [
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_virtual.cpp",
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_adapter_virtual.cpp",
]
}
if (dsoftbus_feature_encrypt == 0) {
bus_center_core_adapter_src += [
"$dsoftbus_root_path/core/adapter/huks/src/softbus_rsa_encrypt_virtual.c",
]
bus_center_core_adapter_inc +=
[ "$dsoftbus_root_path/core/adapter/huks/include" ]
} else if (dsoftbus_feature_encrypt == 1) {
bus_center_core_adapter_src +=
[ "$dsoftbus_root_path/core/adapter/huks/src/softbus_rsa_encrypt.c" ]
bus_center_core_adapter_inc +=
[ "$dsoftbus_root_path/core/adapter/huks/include" ]
bus_center_core_adapter_deps += [ "//third_party/openssl:libcrypto_shared" ]
bus_center_core_adapter_external_deps += [ "huks:libhukssdk" ]
}
}