From 53348962cc749cc4a667e37109f2eabec29ff1c3 Mon Sep 17 00:00:00 2001 From: fangdong7 Date: Sat, 29 Jul 2023 10:21:21 +0000 Subject: [PATCH] fix:modify build.gn Signed-off-by: fangdong7 --- BUILD.gn | 6 +++--- bundle.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 bundle.json diff --git a/BUILD.gn b/BUILD.gn index 592ac88..6bfaa3a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -137,13 +137,13 @@ if (defined(ohos_lite)) { "//third_party/bounds_checking_function:libsec_shared", ] public_configs = [ ":libcoap_config" ] - subsystem_name = "communication" + subsystem_name = "thirdparty" innerapi_tags = [ "platformsdk_indirect" ] if (defined(oem_commercial_build) && oem_commercial_build) { - part_name = "softbus" + part_name = "libcoap" } else { defines = [ "STANDARD_SYSTEM_ENABLE" ] - part_name = "dsoftbus" + part_name = "libcoap" } } } diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..682ea5e --- /dev/null +++ b/bundle.json @@ -0,0 +1,28 @@ +{ + "name": "@ohos/libcoap", + "description": "The libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwidth, or network packet sizes.", + "version": "3.1", + "license": "libcoap license", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/libcoap" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "libcoap", + "subsystem": "thirdparty", + "syscap": [], + "features": [], + "adapted_system_type": [ "mini", "small", "standard" ], + "deps": { + "components": [], + "third_party": [] + }, + "build": { + "sub_component": [], + "inner_kits": [], + "test": [] + } + } +} \ No newline at end of file