summarylogtreecommitdiffstats
path: root/use-system-libraries-in-node.patch
diff options
context:
space:
mode:
authortensor52019-06-22 08:38:39 +0000
committerMartin Kröning2020-06-12 10:09:44 +0200
commit47363510f64f42dbe1a4a2e71532b4e9972f580b (patch)
treed0d3057fe6d6703df0fb1032b04721a448cfdabb /use-system-libraries-in-node.patch
downloadaur-47363510f64f42dbe1a4a2e71532b4e9972f580b.tar.gz
addpkg: electron4 4.2.5-1
git-svn-id: file:///srv/repos/svn-community/svn@482701 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Diffstat (limited to 'use-system-libraries-in-node.patch')
-rw-r--r--use-system-libraries-in-node.patch54
1 files changed, 54 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..7e32a4e65a0f
--- /dev/null
+++ b/use-system-libraries-in-node.patch
@@ -0,0 +1,54 @@
+--- a/third_party/electron_node/BUILD.gn
++++ b/third_party/electron_node/BUILD.gn
+@@ -42,6 +42,18 @@
+ node_release_urlbase = ""
+ }
+
++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")
+ assert(!node_use_perfctr, "node_use_perfctr not supported in GN")
+@@ -128,10 +140,6 @@
+ component("node_lib") {
+ deps = [
+ ":node_js2c",
+- "deps/cares",
+- "deps/http_parser",
+- "deps/nghttp2",
+- "deps/zlib",
+ "//v8:v8_libplatform",
+ ]
+ public_deps = [
+@@ -141,6 +149,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",