2025-04-26 10:14:41 +00:00
|
|
|
From 3fb3bab213348955edc18a051f9c3f86241309e8 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: LN Liberda <lauren@selfisekai.rocks>
|
|
|
|
|
Date: Thu, 13 Mar 2025 20:01:32 -0700
|
|
|
|
|
Subject: [PATCH] unbundle: add simdutf
|
|
|
|
|
|
|
|
|
|
Bug: none
|
|
|
|
|
Change-Id: Idae290112561e5658c614f5eae8895abfe996124
|
|
|
|
|
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6333513
|
|
|
|
|
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
|
|
|
|
|
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
|
|
|
|
|
Reviewed-by: Lei Zhang <thestig@chromium.org>
|
|
|
|
|
Cr-Commit-Position: refs/heads/main@{#1432518}
|
|
|
|
|
---
|
|
|
|
|
build/linux/unbundle/replace_gn_files.py | 1 +
|
|
|
|
|
build/linux/unbundle/simdutf.gn | 20 ++++++++++++++++++++
|
|
|
|
|
2 files changed, 21 insertions(+)
|
|
|
|
|
create mode 100644 build/linux/unbundle/simdutf.gn
|
|
|
|
|
|
|
|
|
|
diff --git a/build/linux/unbundle/replace_gn_files.py b/build/linux/unbundle/replace_gn_files.py
|
|
|
|
|
index 9ee6fda6547d90..f5db9d23c886b7 100755
|
|
|
|
|
--- a/build/linux/unbundle/replace_gn_files.py
|
|
|
|
|
+++ b/build/linux/unbundle/replace_gn_files.py
|
|
|
|
|
@@ -67,6 +67,7 @@
|
|
|
|
|
'openh264': 'third_party/openh264/BUILD.gn',
|
|
|
|
|
'opus': 'third_party/opus/BUILD.gn',
|
|
|
|
|
're2': 'third_party/re2/BUILD.gn',
|
|
|
|
|
+ 'simdutf': 'third_party/simdutf/BUILD.gn',
|
|
|
|
|
'snappy': 'third_party/snappy/BUILD.gn',
|
|
|
|
|
# Use system libSPIRV-Tools in Swiftshader.
|
|
|
|
|
# These two shims MUST be used together.
|
|
|
|
|
diff --git a/build/linux/unbundle/simdutf.gn b/build/linux/unbundle/simdutf.gn
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 00000000000000..67d86cb3b3e5f9
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/build/linux/unbundle/simdutf.gn
|
|
|
|
|
@@ -0,0 +1,20 @@
|
|
|
|
|
+# Copyright 2025 The Chromium Authors
|
|
|
|
|
+# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
|
+# found in the LICENSE file.
|
|
|
|
|
+
|
|
|
|
|
+import("//build/config/linux/pkg_config.gni")
|
|
|
|
|
+import("//build/shim_headers.gni")
|
|
|
|
|
+
|
|
|
|
|
+shim_headers("header") {
|
|
|
|
|
+ root_path = "."
|
|
|
|
|
+ headers = [ "simdutf.h" ]
|
2023-10-19 17:09:42 +00:00
|
|
|
+}
|
|
|
|
|
+
|
2025-04-26 10:14:41 +00:00
|
|
|
+pkg_config("system_simdutf") {
|
|
|
|
|
+ packages = [ "simdutf" ]
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+source_set("simdutf") {
|
|
|
|
|
+ public_configs = [ ":system_simdutf" ]
|
|
|
|
|
+ public_deps = [ ":header" ]
|
|
|
|
|
+}
|