From 746098bc89a2e2414a1800d9e750b39d487a5b82 Mon Sep 17 00:00:00 2001 From: zhanghaibo Date: Sun, 30 Jan 2022 11:00:18 +0800 Subject: [PATCH] change uv path and postfix Signed-off-by: zhanghaibo Change-Id: I57e1ef753a36de844e8f826565e3c56d809183ba --- BUILD.gn | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 5b334c1..ee0dc81 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -290,6 +290,9 @@ if (defined(ohos_lite)) { public_configs = [ ":libuv_config" ] subsystem_name = "ace" part_name = "napi" + if (is_ohos) { + output_extension = "so" + } } } @@ -297,15 +300,16 @@ ohos_ndk_library("libuv_ndk") { ndk_description_file = "./libuv.ndk.json" min_compact_version = "1" output_name = "uv" + output_extension = "so" } ohos_ndk_headers("libuv_header") { - dest_dir = "$ndk_headers_out_dir/libuv" + dest_dir = "$ndk_headers_out_dir" sources = [ "include/uv.h" ] } ohos_ndk_headers("libuv_uv_header") { - dest_dir = "$ndk_headers_out_dir/libuv/uv" + dest_dir = "$ndk_headers_out_dir/uv" sources = [ "include/uv/aix.h", "include/uv/android-ifaddrs.h",