From 6b2e396ca4a2123882ea793be3c9ec38cc85838f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=9F=AF=E6=B5=A9?= Date: Tue, 23 Apr 2024 07:51:47 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=84=E4=BB=B6example?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E7=BC=96=E8=AF=91libcoap=E7=9A=84ex?= =?UTF-8?q?ample?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BUILD.gn | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 16a57df..1261357 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -145,4 +145,35 @@ if (defined(ohos_lite)) { part_name = "dsoftbus" } } + + ohos_executable("coap-client") { + sources = [ + "examples/coap-client.c", + ] + include_dirs = [ + "include", + ] + deps = [ # 依赖部件内模块 + "//third_party/libcoap:libcoap", + ] + subsystem_name = "my_subsystem" + part_name = "example" + } + + ohos_executable("coap-server") { + sources = [ + "examples/coap-server.c", + ] + include_dirs = [ + "include", + ] + deps = [ # 依赖部件内模块 + "//third_party/libcoap:libcoap", + ] + subsystem_name = "my_subsystem" + part_name = "example" + } + + + } -- Gitee