--- third_party/angle/BUILD.gn.orig 2023-02-08 09:03:45 UTC +++ third_party/angle/BUILD.gn @@ -279,7 +279,6 @@ config("extra_warnings") { "-Wtautological-type-limit-compare", "-Wundefined-reinterpret-cast", "-Wunneeded-internal-declaration", - "-Wunused-but-set-variable", "-Wsuggest-destructor-override", "-Wsuggest-override", @@ -465,7 +464,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" ] } @@ -607,6 +606,9 @@ angle_static_library("angle_gpu_info_util") { "Xi", "Xext", ] + if (is_bsd) { + libs += [ "GL" ] + } } if (angle_use_wayland && angle_has_build) { @@ -1092,12 +1094,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") {