File system-absl_algorithm.patch of Package nodejs-signal-ringrtc

Add absl_algorithm to shims
This library is not used in chrome (only in signal fork) therefore it does not make sense to submit this upstream

--- webrtc-5845d/build/linux/unbundle/absl_algorithm.gn.orig	2023-09-21 19:43:13.163148940 +0200
+++ webrtc-5845d/build/linux/unbundle/absl_algorithm.gn	2023-09-21 21:24:11.594506276 +0200
@@ -1,6 +1,21 @@
 import("//build/config/linux/pkg_config.gni")
 import("//build/shim_headers.gni")
 
+pkg_config("system_absl_algorithm") {
+  packages = [ "absl_algorithm" ]
+}
+
+shim_headers("algorithm_shim") {
+  root_path = "."
+  prefix = "absl/algorithm/"
+  headers = [ "algorithm.h" ]
+}
+
+source_set("algorithm") {
+  deps = [ ":algorithm_shim" ]
+  public_configs = [ ":system_absl_algorithm" ]
+}
+
 pkg_config("system_absl_algorithm_container") {
   packages = [ "absl_algorithm_container" ]
 }
openSUSE Build Service is sponsored by