summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-swiftshader-77.patch
blob: 34d5032df5a6dc009864cf8f4e3a1ac258cd7eaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff --git a/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn b/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn
index f4c826d..993ca6a 100644
--- a/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn
+++ b/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn
@@ -78,6 +78,9 @@
     if (use_x11) {
       sources += [ "../../Main/libX11.cpp" ]
     }
+    inputs = [
+      "libEGL.lds",
+    ]
     ldflags =
         [ "-Wl,--version-script=" + rebase_path("libEGL.lds", root_build_dir) ]
   }
diff --git a/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn b/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn
index 571b08a..d7037ca 100644
--- a/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn
+++ b/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn
@@ -127,6 +127,9 @@
   if (is_mac) {
     ldflags = [ "-Wl,-install_name,@rpath/libswiftshader_libGLESv2.dylib" ]
   } else if (is_linux) {
+    inputs = [
+      "libGLESv2.lds",
+    ]
     ldflags = [ "-Wl,--version-script=" +
                 rebase_path("libGLESv2.lds", root_build_dir) ]
   }
diff --git a/third_party/swiftshader/src/Vulkan/BUILD.gn b/third_party/swiftshader/src/Vulkan/BUILD.gn
index 2627f03..6aeaec8 100644
--- a/third_party/swiftshader/src/Vulkan/BUILD.gn
+++ b/third_party/swiftshader/src/Vulkan/BUILD.gn
@@ -99,7 +99,6 @@
     "VulkanPlatform.h",
     "libVulkan.cpp",
     "libvk_swiftshader.def",
-    "libvk_swiftshader.lds",
     "main.cpp",
     "resource.h",
   ]
@@ -109,8 +108,10 @@
   output_name = "libvulkan"
   output_dir = "$root_out_dir/swiftshader"
 
-  if (is_linux)
-  {
+  if (is_linux) {
+    inputs = [
+      "libvk_swiftshader.lds",
+    ]
     ldflags = [ "-Wl,--version-script=" +
                 rebase_path("libvk_swiftshader.lds", root_build_dir) ]
   }