diff options
author | Daniel Playfair Cal | 2020-01-13 03:12:22 +1100 |
---|---|---|
committer | Daniel Playfair Cal | 2020-01-13 03:12:22 +1100 |
commit | 5d5bfbcbb761c80ee7a5c891ef40ef2aa7aec0ec (patch) | |
tree | f6f8f9af0faf4b9d5bcfbbbd36dd968c8f66da72 /use-system-libraries-in-node.patch | |
download | aur-5d5bfbcbb761c80ee7a5c891ef40ef2aa7aec0ec.tar.gz |
electron-ozone 7.1.8-1
Diffstat (limited to 'use-system-libraries-in-node.patch')
-rw-r--r-- | use-system-libraries-in-node.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/use-system-libraries-in-node.patch b/use-system-libraries-in-node.patch new file mode 100644 index 000000000000..660c89ea2390 --- /dev/null +++ b/use-system-libraries-in-node.patch @@ -0,0 +1,56 @@ +--- a/third_party/electron_node/BUILD.gn ++++ b/third_party/electron_node/BUILD.gn +@@ -42,6 +42,18 @@ + node_module_version = "" + } + ++if (is_linux) { ++ import("//build/config/linux/pkg_config.gni") ++ ++ pkg_config("cares") { ++ packages = [ "libcares" ] ++ } ++ ++ pkg_config("nghttp2") { ++ packages = [ "libnghttp2" ] ++ } ++} ++ + assert(!node_use_dtrace, "node_use_dtrace not supported in GN") + assert(!node_use_etw, "node_use_etw not supported in GN") + +@@ -203,12 +215,8 @@ + component("node_lib") { + deps = [ + ":node_js2c", +- "deps/cares", + "deps/histogram", +- "deps/http_parser", + "deps/llhttp", +- "deps/nghttp2", +- "deps/zlib", + "//third_party/brotli:dec", + "//third_party/brotli:enc", + "//v8:v8_libplatform", +@@ -222,6 +230,21 @@ + public_configs = [ ":node_lib_config" ] + include_dirs = [ "src" ] + libs = [] ++ if (is_linux) { ++ configs += [ ++ ":cares", ++ ":nghttp2", ++ ] ++ deps += [ "//third_party/zlib" ] ++ libs += [ "http_parser" ] ++ } else { ++ deps += [ ++ "deps/cares", ++ "deps/http_parser", ++ "deps/nghttp2", ++ "deps/zlib", ++ ] ++ } + cflags_cc = [ + "-Wno-deprecated-declarations", + "-Wno-implicit-fallthrough", |