summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chromium/components/proxy_config/BUILD.gn12
-rw-r--r--chromium/ui/gl/BUILD.gn2
2 files changed, 13 insertions, 1 deletions
diff --git a/chromium/components/proxy_config/BUILD.gn b/chromium/components/proxy_config/BUILD.gn
index 4e09932830b..cc0966c786e 100644
--- a/chromium/components/proxy_config/BUILD.gn
+++ b/chromium/components/proxy_config/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
+import("//build/config/features.gni")
component("proxy_config") {
sources = [
@@ -33,6 +34,17 @@ component("proxy_config") {
"//net",
"//url",
]
+ if (use_qt) {
+ sources -= [
+ "proxy_policy_handler.cc",
+ "proxy_policy_handler.h",
+ ]
+ deps -= [
+ "//components/policy:generated",
+ "//components/policy/core/browser",
+ "//components/policy/core/common",
+ ]
+ }
# TODO(https://crbug.com/562773): Break a header include cycle on ChromeOS
# and disable include checking so GN doesn't complain about the missing
diff --git a/chromium/ui/gl/BUILD.gn b/chromium/ui/gl/BUILD.gn
index c0283a8b1e4..18cd6996034 100644
--- a/chromium/ui/gl/BUILD.gn
+++ b/chromium/ui/gl/BUILD.gn
@@ -476,7 +476,7 @@ jumbo_component("gl") {
"gl_surface_egl.h",
]
}
- if (is_linux) {
+ if (is_linux && ozone_platform_x11) {
sources += [
"gl_image_egl_pixmap.cc",
"gl_image_egl_pixmap.h",