代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_libcoap 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni")
cflags = [
"-Wall",
"-fPIC",
"-std=c99",
]
cflags_cc = cflags
ldflags = [ "-fPIC" ]
config("libcoap_config") {
include_dirs = [ "include/coap2" ]
defines = [ "_GNU_SOURCE" ]
}
source_set("libcoap_src") {
sources = [
"src/address.c",
"src/async.c",
"src/block.c",
"src/coap_debug.c",
"src/coap_event.c",
"src/coap_hashkey.c",
"src/coap_io.c",
"src/coap_notls.c",
"src/coap_openssl.c",
"src/coap_session.c",
"src/coap_time.c",
"src/encode.c",
"src/mem.c",
"src/net.c",
"src/option.c",
"src/pdu.c",
"src/resource.c",
"src/str.c",
"src/subscribe.c",
"src/uri.c",
]
configs += [ ":libcoap_config" ]
}
static_library("libcoap_static") {
deps = [ ":libcoap_src" ]
public_configs = [ ":libcoap_config" ]
}
shared_library("libcoap") {
deps = [ ":libcoap_src" ]
public_configs = [ ":libcoap_config" ]
}
} else {
import("//build/ohos.gni")
config("libcoap_config") {
include_dirs = [ "include/coap2" ]
}
ohos_source_set("libcoap_src") {
sources = [
"src/address.c",
"src/async.c",
"src/block.c",
"src/coap_debug.c",
"src/coap_event.c",
"src/coap_hashkey.c",
"src/coap_io.c",
"src/coap_notls.c",
"src/coap_openssl.c",
"src/coap_session.c",
"src/coap_time.c",
"src/encode.c",
"src/mem.c",
"src/net.c",
"src/option.c",
"src/pdu.c",
"src/resource.c",
"src/str.c",
"src/subscribe.c",
"src/uri.c",
]
configs = [ ":libcoap_config" ]
}
ohos_static_library("libcoap_static") {
deps = [ ":libcoap_src" ]
public_configs = [ ":libcoap_config" ]
}
ohos_shared_library("libcoap") {
deps = [ ":libcoap_src" ]
public_configs = [ ":libcoap_config" ]
subsystem_name = "communication"
if (defined(oem_commercial_build) && oem_commercial_build) {
part_name = "softbus"
} else {
defines = [ "STANDARD_SYSTEM_ENABLE" ]
part_name = "dsoftbus_standard"
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。