#
# Copyright (c) 2024 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.
iotc_root_path = rebase_path(".")
iotc_sdk_path = "${iotc_root_path}/sdk"
iotc_core_path = "${iotc_root_path}/core"
iotc_adapter_path = "${iotc_root_path}/adapter"
iotc_interface_path = "${iotc_root_path}/interfaces"
declare_args() {
iot_connect_ble_support = true
iot_connect_ble_adv_update_support = true #是否支持OH靠近发现广播数据更新
iot_connect_sle_support = false
iot_connect_wifi_support = true
iot_connect_ailife_support = false #控制发出OH名称广播还是Hilink广播
iot_connect_kv_support = true #是否支持iotc数据保存
iot_connect_mbedtls_v2_support = false
iot_connect_mbedtls_psk_support = false
iot_connect_mbedtls_ccm_support = false
iot_connect_oh_nearlink_support = true #控制发OH靠近发现广播的发出
}
if(build_xts) {
iot_connect_wifi_support = true
}
if (defined(ohos_lite)) {
if (ohos_kernel_type == "liteos_m") {
declare_args() {
iotc_device_level = "mini"
board_hi3863 = true
iotc_hilog_support = false
}
iot_connect_ble_support = true
iot_connect_sle_support = false
} else {
declare_args() {
iotc_device_level = "small"
iotc_hilog_support = false
}
}
} else {
declare_args() {
board_hi3863 = false
board_name = "l2"
ohos_kernel_type = "linux"
iotc_device_level = "standard"
iotc_hilog_support = true
}
}