Skip to content

Commit

Permalink
Add uvwasi to deps
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 21, 2020
1 parent 58d3a9d commit 9f01bb2
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion patches/node/build_add_gn_build_files.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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")
+
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -368,6 +369,55 @@ 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,43 @@
+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
Expand Down

0 comments on commit 9f01bb2

Please sign in to comment.