diff options
author | tensor5 | 2021-09-27 06:08:25 +0000 |
---|---|---|
committer | tensor5 | 2021-09-27 06:08:25 +0000 |
commit | 08d1f2f5701e8f31e0c359007aa25efeb3c74254 (patch) | |
tree | fffe60aa576f4b9c1406a228bb5ba063fd20b5ea /use-system-libraries-in-node.patch | |
download | aur-08d1f2f5701e8f31e0c359007aa25efeb3c74254.tar.gz |
addpkg: electron14 14.0.1
git-svn-id: file:///srv/repos/svn-community/svn@1025724 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Diffstat (limited to 'use-system-libraries-in-node.patch')
-rw-r--r-- | use-system-libraries-in-node.patch | 52 |
1 files changed, 52 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..6e1181997d79 --- /dev/null +++ b/use-system-libraries-in-node.patch @@ -0,0 +1,52 @@ +--- 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") + +@@ -190,10 +202,8 @@ + component("node_lib") { + deps = [ + ":node_js2c", +- "deps/cares", + "deps/histogram", + "deps/llhttp", +- "deps/nghttp2", + "deps/uvwasi", + "//third_party/zlib", + "//third_party/brotli:dec", +@@ -209,6 +219,19 @@ + public_configs = [ ":node_lib_config" ] + include_dirs = [ "src" ] + libs = [] ++ if (is_linux) { ++ configs += [ ++ ":cares", ++ ":nghttp2", ++ ] ++ libs += [ "http_parser" ] ++ } else { ++ deps += [ ++ "deps/cares", ++ "deps/http_parser", ++ "deps/nghttp2", ++ ] ++ } + frameworks = [] + cflags_cc = [ + "-Wno-deprecated-declarations", |