Index: ui/surface/BUILD.gn |
diff --git a/ui/surface/BUILD.gn b/ui/surface/BUILD.gn |
index 6e262a4fc2f4b757d20d5400158901b268cb60b5..3b25e0eae064b28bcc09c6257c84c35bad6704e3 100644 |
--- a/ui/surface/BUILD.gn |
+++ b/ui/surface/BUILD.gn |
@@ -15,8 +15,6 @@ |
"transport_dib_win.cc", |
] |
- configs += [ "//third_party/khronos:khronos_headers" ] |
- |
defines = [ "SURFACE_IMPLEMENTATION" ] |
deps = [ |
@@ -27,4 +25,8 @@ |
"//ui/gfx/geometry", |
"//ui/gl", |
] |
+ |
+ if (use_x11) { |
+ include_dirs = [ "//third_party/khronos" ] |
+ } |
} |