diff --git a/BUILD.gn b/BUILD.gn index 16a57df3aca1f474b7804701697a3354241dec2e..126135760716b6a3af36118124d63d907a437019 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" + } + + + }