Skip to content

Commit 9f01bb2

Browse files
committed
Add uvwasi to deps
nodejs/node#30258
1 parent 58d3a9d commit 9f01bb2

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

patches/node/build_add_gn_build_files.patch

+51-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ new file mode 100644
1010
index 0000000000000000000000000000000000000000..ec06e14dd327cdf89dc6fd584b6972ae64311ea0
1111
--- /dev/null
1212
+++ b/BUILD.gn
13-
@@ -0,0 +1,357 @@
13+
@@ -0,0 +1,358 @@
1414
+import("//electron/build/asar.gni")
1515
+import("//v8/gni/v8.gni")
1616
+
@@ -208,6 +208,7 @@ index 0000000000000000000000000000000000000000..ec06e14dd327cdf89dc6fd584b6972ae
208208
+ "deps/http_parser",
209209
+ "deps/llhttp",
210210
+ "deps/nghttp2",
211+
+ "deps/uvwasi",
211212
+ "deps/zlib",
212213
+ "//third_party/brotli:dec",
213214
+ "//third_party/brotli:enc",
@@ -368,6 +369,55 @@ index 0000000000000000000000000000000000000000..ec06e14dd327cdf89dc6fd584b6972ae
368369
+ ":tar_headers",
369370
+ ]
370371
+}
372+
diff --git a/deps/uvwasi/BUILD.gn b/deps/uvwasi/BUILD.gn
373+
new file mode 100644
374+
index 0000000000000000000000000000000000000000..cb4f4d4fa196da7513d7b43b44a0dd0e77a3d1c0
375+
--- /dev/null
376+
+++ b/deps/uvwasi/BUILD.gn
377+
@@ -0,0 +1,43 @@
378+
+config("uvwasi_config") {
379+
+ include_dirs = [ "include" ]
380+
+}
381+
+
382+
+static_library("uvwasi") {
383+
+ include_dirs = [
384+
+ "include",
385+
+ "src",
386+
+ ]
387+
+
388+
+ defines = []
389+
+ if (is_linux) {
390+
+ defines += [
391+
+ "_GNU_SOURCE",
392+
+ "_POSIX_C_SOURCE=200112"
393+
+ ]
394+
+ }
395+
+
396+
+ deps = [ "../../deps/uv" ]
397+
+
398+
+ public_configs = [ ":uvwasi_config" ]
399+
+ cflags_c = [
400+
+ "-Wall",
401+
+ "-Wsign-compare",
402+
+ "-Wextra",
403+
+ "-Wstrict-prototypes",
404+
+ "-Wno-unused-parameter"
405+
+ ]
406+
+
407+
+ if (is_linux) {
408+
+ cflags_c += [
409+
+ "-fvisibility=hidden",
410+
+ "--std=gnu89",
411+
+ ]
412+
+ }
413+
+
414+
+ sources = [
415+
+ "src/clocks.c",
416+
+ "src/fd_table.c",
417+
+ "src/uv_mapping.c",
418+
+ "src/uvwasi.c",
419+
+ ]
420+
+}
371421
diff --git a/deps/cares/BUILD.gn b/deps/cares/BUILD.gn
372422
new file mode 100644
373423
index 0000000000000000000000000000000000000000..0b7737ca061ae6a12647f5d7bf0c2d1bc7d5bdd9

0 commit comments

Comments
 (0)