!4485 Fix: Compilation Dependency of Adapter BLE in Mini System

Merge pull request !4485 from 朱思远/master
This commit is contained in:
openharmony_ci 2023-11-26 10:12:15 +00:00 committed by Gitee
commit 722608301c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 8 additions and 3 deletions

View File

@ -1157,7 +1157,7 @@ int32_t SoftBusDeregisterScanCallbacks(int32_t scannerId)
return BleDeregisterScanCallbacks(scannerId);
}
int32_t SoftBusSetScanReportChannelToLpDevice(int scannerId, bool enable)
int32_t SoftBusSetScanReportChannelToLpDevice(int32_t scannerId, bool enable)
{
return SetScanReportChannelToLpDevice(scannerId, enable);
}
@ -1166,4 +1166,4 @@ int32_t SoftBusSetLpDeviceParam(int duration, int maxExtAdvEvents, int window,
int interval, int advHandle)
{
return SetLpDeviceAdvParam(duration, maxExtAdvEvents, window, interval, advHandle);
}
}

View File

@ -1,4 +1,4 @@
# Copyright (c) 2021 Huawei Device Co., Ltd.
# 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
@ -28,3 +28,8 @@ adapter_ble_src = [
]
adapter_net_br_src = [ "$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c" ]
adapter_ble_external_deps = [ "bluetooth:btframework" ]
if (defined(ohos_lite)) {
if (ohos_kernel_type == "liteos_m") {
adapter_ble_external_deps = []
}
}