mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 08:49:59 +00:00
fix:add compilation rule
Signed-off-by: y30033032 <yuanmeng36@huawei.com>
This commit is contained in:
parent
f4ed93a4bd
commit
73d622e713
38
core/adapter/bus_center/src/lnn_ohos_account_virtual.cpp
Normal file
38
core/adapter/bus_center/src/lnn_ohos_account_virtual.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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.
|
||||
*/
|
||||
#include "lnn_ohos_account.h"
|
||||
|
||||
#include "softbus_errcode.h"
|
||||
|
||||
int32_t LnnGetOhosAccountInfo(uint8_t *accountHash, uint32_t len)
|
||||
{
|
||||
(void)accountHash;
|
||||
(void)len;
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
|
||||
int32_t LnnInitOhosAccount(void)
|
||||
{
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
|
||||
void LnnOnOhosAccountChanged(void)
|
||||
{
|
||||
}
|
||||
|
||||
bool LnnIsDefaultOhosAccount(void)
|
||||
{
|
||||
return false;
|
||||
}
|
@ -30,27 +30,6 @@ int32_t LnnInitGetDeviceName(LnnDeviceNameHandler handler)
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
|
||||
int32_t LnnGetOhosAccountInfo(uint8_t *accountHash, uint32_t len)
|
||||
{
|
||||
(void)accountHash;
|
||||
(void)len;
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
|
||||
int32_t LnnInitOhosAccount(void)
|
||||
{
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
|
||||
void LnnOnOhosAccountChanged(void)
|
||||
{
|
||||
}
|
||||
|
||||
bool LnnIsDefaultOhosAccount(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int32_t LnnInitDeviceNameMonitorImpl(void)
|
||||
{
|
||||
return SOFTBUS_OK;
|
||||
|
@ -49,10 +49,7 @@ if (defined(ohos_lite)) {
|
||||
|
||||
bus_center_core_adapter_deps += []
|
||||
} else {
|
||||
bus_center_core_adapter_src += [
|
||||
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor.cpp",
|
||||
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account.cpp",
|
||||
]
|
||||
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",
|
||||
@ -67,12 +64,21 @@ if (defined(ohos_lite)) {
|
||||
"${ability_base_path}:zuri",
|
||||
"${ability_runtime_inner_api_path}/dataobs_manager:dataobs_manager",
|
||||
"${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native",
|
||||
"//base/account/os_account/frameworks/ohosaccount/native:libaccountkits",
|
||||
"//base/account/os_account/frameworks/osaccount/native:os_account_innerkits",
|
||||
"//foundation/distributeddatamgr/data_share/interfaces/inner_api:datashare_consumer",
|
||||
"//foundation/distributeddatamgr/data_share/interfaces/inner_api/common:datashare_common",
|
||||
"//foundation/distributeddatamgr/relational_store/interfaces/inner_api/dataability:native_dataability",
|
||||
"//foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb:native_rdb",
|
||||
]
|
||||
}
|
||||
if (softbus_os_account == true) {
|
||||
bus_center_core_adapter_src += [
|
||||
"$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account.cpp",
|
||||
]
|
||||
bus_center_core_adapter_deps += [
|
||||
"//base/account/os_account/frameworks/ohosaccount/native:libaccountkits",
|
||||
"//base/account/os_account/frameworks/osaccount/native:os_account_innerkits",
|
||||
]
|
||||
} else {
|
||||
bus_center_core_adapter_src += [ "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_virtual.cpp" ]
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ declare_args() {
|
||||
declare_args() {
|
||||
dsoftbus_get_devicename = true
|
||||
softbus_communication_wifi_feature = true
|
||||
softbus_os_account = true
|
||||
}
|
||||
|
||||
if (defined(global_parts_info) &&
|
||||
@ -45,6 +46,11 @@ if (defined(global_parts_info) &&
|
||||
dsoftbus_get_devicename = false
|
||||
}
|
||||
|
||||
if (defined(global_parts_info) &&
|
||||
!defined(global_parts_info.account_os_account)) {
|
||||
softbus_os_account = false
|
||||
}
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
import("//build/lite/config/component/lite_component.gni")
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
|
Loading…
Reference in New Issue
Block a user