From f63bc3d1f030220cbe9b682ebec577adbfeab163 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 12 Feb 2020 15:48:31 -0800 Subject: [PATCH] Add uvwasi to deps https://github.com/nodejs/node/pull/30258 --- patches/node/build_add_gn_build_files.patch | 51 ++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/patches/node/build_add_gn_build_files.patch b/patches/node/build_add_gn_build_files.patch index e8cf6d682d53e..bd7bb64e91882 100644 --- a/patches/node/build_add_gn_build_files.patch +++ b/patches/node/build_add_gn_build_files.patch @@ -10,7 +10,7 @@ new file mode 100644 index 0000000000000000000000000000000000000000..ec06e14dd327cdf89dc6fd584b6972ae64311ea0 --- /dev/null +++ b/BUILD.gn -@@ -0,0 +1,357 @@ +@@ -0,0 +1,358 @@ +import("//electron/build/asar.gni") +import("//v8/gni/v8.gni") + @@ -208,6 +208,7 @@ index 0000000000000000000000000000000000000000..ec06e14dd327cdf89dc6fd584b6972ae + "deps/http_parser", + "deps/llhttp", + "deps/nghttp2", ++ "deps/uvwasi", + "deps/zlib", + "//third_party/brotli:dec", + "//third_party/brotli:enc", @@ -368,6 +369,54 @@ index 0000000000000000000000000000000000000000..ec06e14dd327cdf89dc6fd584b6972ae + ":tar_headers", + ] +} +diff --git a/deps/uvwasi/BUILD.gn b/deps/uvwasi/BUILD.gn +new file mode 100644 +index 0000000000000000000000000000000000000000..cb4f4d4fa196da7513d7b43b44a0dd0e77a3d1c0 +--- /dev/null ++++ b/deps/uvwasi/BUILD.gn +@@ -0,0 +1,42 @@ ++config("uvwasi_config") { ++ include_dirs = [ "include" ] ++} ++ ++static_library("uvwasi") { ++ include_dirs = [ ++ "include", ++ "src", ++ ] ++ ++ defines = [] ++ if (is_linux) { ++ defines += [ ++ "_GNU_SOURCE", ++ "_POSIX_C_SOURCE=200112" ++ ] ++ } ++ ++ deps = [ "../../deps/uv" ] ++ ++ public_configs = [ ":uvwasi_config" ] ++ cflags_c = [ ++ "-Wall", ++ "-Wsign-compare", ++ "-Wextra", ++ "-Wstrict-prototypes", ++ "-Wno-unused-parameter" ++ ] ++ ++ if (is_linux) { ++ cflags_c += [ ++ "-fvisibility=hidden", ++ "--std=gnu89", ++ ] ++ ++ sources = [ ++ "src/clocks.c", ++ "src/fd_table.c", ++ "src/uv_mapping.c", ++ "src/uvwasi.c", ++ ] ++} diff --git a/deps/cares/BUILD.gn b/deps/cares/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..0b7737ca061ae6a12647f5d7bf0c2d1bc7d5bdd9