summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_angle_BUILD.gn
blob: 3ac8d680911a9f25f82f364b73c0bbe254a3496a (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
--- third_party/angle/BUILD.gn.orig	2022-09-24 10:57:32 UTC
+++ third_party/angle/BUILD.gn
@@ -261,7 +261,6 @@ config("extra_warnings") {
       "-Wtautological-type-limit-compare",
       "-Wundefined-reinterpret-cast",
       "-Wunneeded-internal-declaration",
-      "-Wunused-but-set-variable",
       "-Wsuggest-destructor-override",
       "-Wsuggest-override",
 
@@ -439,7 +438,7 @@ angle_static_library("angle_common") {
     all_dependent_configs = [ ":angle_disable_pool_alloc" ]
   }
 
-  if (is_linux || is_chromeos) {
+  if ((is_linux || is_chromeos) && !is_bsd) {
     libs = [ "dl" ]
   }
 
@@ -569,6 +568,9 @@ angle_static_library("angle_gpu_info_util") {
         "Xi",
         "Xext",
       ]
+      if (is_bsd) {
+        libs += [ "GL" ]
+      }
     }
 
     if (angle_use_wayland && angle_has_build) {
@@ -1089,12 +1091,12 @@ if (angle_use_wayland) {
         "wayland-client",
         "wayland-egl",
       ]
+    } else {
+      include_dirs = [
+        "$wayland_dir/egl",
+        "$wayland_dir/src",
+      ]
     }
-
-    include_dirs = [
-      "$wayland_dir/egl",
-      "$wayland_dir/src",
-    ]
   }
 
   group("angle_wayland") {