forked from pool/nodejs-electron
- ANGLE: Link libvulkan.so and libGL.so instead of dlopening it * angle_link_glx.patch OBS-URL: https://build.opensuse.org/request/show/1073031 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=67
39 lines
1.0 KiB
Diff
39 lines
1.0 KiB
Diff
Do not try to build a private copy of a DLL which is already available on every modern linux system.
|
|
|
|
--- a/chrome/BUILD.gn
|
|
+++ b/chrome/BUILD.gn
|
|
@@ -1789,8 +1790,9 @@
|
|
|
|
deps = [ "//third_party/angle:libGLESv2" ]
|
|
}
|
|
- if (!is_chromeos) {
|
|
+ source_set("angle_libvulkan_symbols") {}
|
|
+ if (false) {
|
|
extract_symbols("angle_libvulkan_symbols") {
|
|
binary = "$root_out_dir/libvulkan.so.1"
|
|
|
|
if (current_cpu == "x86") {
|
|
--- a/third_party/vulkan-deps/vulkan-loader/src/BUILD.gn
|
|
+++ b/third_party/vulkan-deps/vulkan-loader/src/BUILD.gn
|
|
@@ -99,7 +99,18 @@
|
|
library_type = "static_library"
|
|
}
|
|
|
|
- target(library_type, "libvulkan") {
|
|
+if (!angle_shared_libvulkan) {
|
|
+ import("//build/config/linux/pkg_config.gni")
|
|
+ pkg_config("system_libvulkan") {
|
|
+ packages = [ "vulkan" ]
|
|
+ }
|
|
+}
|
|
+source_set("libvulkan") {
|
|
+ if (!angle_shared_libvulkan) {
|
|
+ public_configs = [ ":system_libvulkan" ]
|
|
+ }
|
|
+}
|
|
+ target(library_type, "xlibvulkan") {
|
|
sources = [
|
|
"loader/adapters.h",
|
|
"loader/allocation.c",
|
|
|