File angle-system-xxhash.patch of Package nodejs-electron

--- a/third_party/angle/BUILD.gn	2022-06-21 21:57:49.019991551 +0200
+++ b/third_party/angle/BUILD.gn	2022-06-25 16:54:47.267968400 +0200
@@ -1,3 +1,4 @@
+import("//build/config/linux/pkg_config.gni")
 # Copyright 2019 The ANGLE Project Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
@@ -406,7 +406,6 @@
 config("angle_common_config") {
   include_dirs = [
     "src/common/base",
-    "src/common/third_party/xxhash",
   ]
   if (is_android) {
     libs = [ "log" ]
@@ -431,18 +432,12 @@
   }
 }
 
-angle_source_set("xxhash") {
-  sources = xxhash_sources
-  if (is_clang) {
-    cflags_c = [ "-Wno-implicit-fallthrough" ]
-  }
+pkg_config("system_xxhash") {
+  packages = [ "libxxhash" ]
 }
 
-if (angle_has_build) {
-  fuzzer_test("xxhash_fuzzer") {
-    sources = [ "src/common/third_party/xxhash/xxhash_fuzzer.cpp" ]
-    deps = [ ":xxhash" ]
-  }
+source_set("xxhash") {
+  public_configs = [ ":system_xxhash" ]
 }
 
 template("angle_common_lib") {
--- a/third_party/angle/src/common/hash_utils.h
+++ b/third_party/angle/src/common/hash_utils.h
@@ -9,7 +9,7 @@
 #define COMMON_HASHUTILS_H_
 
 #include "common/debug.h"
-#include "xxhash.h"
+#include <xxhash.h>
 
 namespace angle
 {
openSUSE Build Service is sponsored by