2022-01-27 22:16:50 +00:00
|
|
|
Index: electron-16.0.6/build/linux/unbundle/libusb.gn
|
2021-06-29 20:42:56 +00:00
|
|
|
===================================================================
|
2022-01-27 22:16:50 +00:00
|
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ electron-16.0.6/build/linux/unbundle/libusb.gn 2022-01-13 16:02:37.237389046 +0100
|
2021-06-29 20:42:56 +00:00
|
|
|
@@ -0,0 +1,24 @@
|
|
|
|
|
+# Copyright 2016 The Chromium Authors. All rights reserved.
|
|
|
|
|
+# 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")
|
|
|
|
|
+
|
|
|
|
|
+pkg_config("system_libusb") {
|
|
|
|
|
+ packages = [ "libusb-1.0" ]
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+shim_headers("libusb_shim") {
|
|
|
|
|
+ root_path = "src/libusb"
|
|
|
|
|
+ headers = [
|
|
|
|
|
+ "libusb.h",
|
|
|
|
|
+ ]
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+source_set("libusb") {
|
|
|
|
|
+ deps = [
|
|
|
|
|
+ ":libusb_shim",
|
|
|
|
|
+ ]
|
|
|
|
|
+ public_configs = [ ":system_libusb" ]
|
|
|
|
|
+}
|
2022-01-27 22:16:50 +00:00
|
|
|
Index: electron-16.0.6/build/linux/unbundle/replace_gn_files.py
|
2021-06-29 20:42:56 +00:00
|
|
|
===================================================================
|
2022-01-27 22:16:50 +00:00
|
|
|
--- electron-16.0.6.orig/build/linux/unbundle/replace_gn_files.py 2022-01-10 16:06:45.861270275 +0100
|
|
|
|
|
+++ electron-16.0.6/build/linux/unbundle/replace_gn_files.py 2022-01-13 16:02:37.237389046 +0100
|
|
|
|
|
@@ -25,6 +25,7 @@ REPLACEMENTS = {
|
2021-06-29 20:42:56 +00:00
|
|
|
'libjpeg': 'third_party/libjpeg.gni',
|
2022-10-04 19:13:55 +00:00
|
|
|
'libjxl' : 'third_party/libjxl/BUILD.gn',
|
2021-06-29 20:42:56 +00:00
|
|
|
'libpng': 'third_party/libpng/BUILD.gn',
|
|
|
|
|
+ 'libusb': 'third_party/libusb/BUILD.gn',
|
|
|
|
|
'libvpx': 'third_party/libvpx/BUILD.gn',
|
|
|
|
|
'libwebp': 'third_party/libwebp/BUILD.gn',
|
|
|
|
|
'libxml': 'third_party/libxml/BUILD.gn',
|