Index: ui/gfx/BUILD.gn |
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn |
index c6e91e90f7aeff6312b9f8602c6e3ebb104d18c1..467c420db5964ec73f11f4678c4813c6f9cbe642 100644 |
--- a/ui/gfx/BUILD.gn |
+++ b/ui/gfx/BUILD.gn |
@@ -327,11 +327,15 @@ component("gfx") { |
if (!use_aura) { |
sources -= [ |
- "nine_image_painter.cc", |
- "nine_image_painter.h", |
"path_aura.cc", |
"screen_aura.cc", |
] |
+ if (!toolkit_views) { |
+ sources -= [ |
+ "nine_image_painter.cc", |
+ "nine_image_painter.h", |
+ ] |
+ } |
} |
if (use_x11) { |