From 9d97c636e73394b25e7c6302197c9639e0c98254 Mon Sep 17 00:00:00 2001 From: zhanghaibo Date: Fri, 28 Jan 2022 09:49:14 +0800 Subject: [PATCH] use uv shared library Signed-off-by: zhanghaibo Change-Id: I44d5cc81a7bfd3ae9f14024817f12920f7cf3044 --- BUILD.gn | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index de0d29e..9b55b82 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -288,6 +288,8 @@ if (defined(ohos_lite)) { ohos_shared_library("uv") { deps = [ ":libuv_source" ] public_configs = [ ":libuv_config" ] + subsystem_name = "ace" + part_name = "napi" } } @@ -299,5 +301,26 @@ ohos_ndk_library("libuv_ndk") { ohos_ndk_headers("libuv_header") { dest_dir = "$ndk_headers_out_dir/libuv" - sources = [ "./include/uv.h" ] + sources = [ "include/uv.h" ] +} + +ohos_ndk_headers("libuv_uv_header") { + dest_dir = "$ndk_headers_out_dir/libuv/uv" + sources = [ + "include/uv/aix.h", + "include/uv/android-ifaddrs.h", + "include/uv/bsd.h", + "include/uv/darwin.h", + "include/uv/errno.h", + "include/uv/linux.h", + "include/uv/os390.h", + "include/uv/posix.h", + "include/uv/stdint-msvc2008.h", + "include/uv/sunos.h", + "include/uv/threadpool.h", + "include/uv/tree.h", + "include/uv/unix.h", + "include/uv/version.h", + "include/uv/win.h", + ] } -- Gitee