Index: ui/gfx/BUILD.gn |
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn |
index 02d2e776c3ee4947a8168851ec3c73fb6b4edfec..20997aa4968d032b9f2432924223bcf370cc4f05 100644 |
--- a/ui/gfx/BUILD.gn |
+++ b/ui/gfx/BUILD.gn |
@@ -347,13 +347,20 @@ component("gfx") { |
sources -= [ |
"nine_image_painter.cc", |
"nine_image_painter.h", |
+ "path_aura.cc", |
] |
} |
+ |
if (use_x11) { |
deps += [ |
":gfx_x11", |
] |
+ } else { |
+ sources -= [ |
+ "path_x11.cc", |
+ ] |
} |
+ |
if (use_pango) { |
sources -= [ |
"platform_font_ozone.cc", |