Index: chrome/browser/ui/libgtk2ui/BUILD.gn |
diff --git a/chrome/browser/ui/libgtk2ui/BUILD.gn b/chrome/browser/ui/libgtk2ui/BUILD.gn |
index b85f67d988321d338ec7b8ed986d1b573c21e7e0..595d381887ca2f77ead3fc8e6b84e1bd22e27198 100644 |
--- a/chrome/browser/ui/libgtk2ui/BUILD.gn |
+++ b/chrome/browser/ui/libgtk2ui/BUILD.gn |
@@ -65,9 +65,14 @@ component("libgtk2ui") { |
configs += [ |
"//build/config/linux:gconf", |
- "//printing:cups", |
] |
+ if (use_cups) { |
+ configs += [ |
+ "//printing:cups", |
+ ] |
+ } |
+ |
# GTK2 pulls pangoft2 as dependency, and pangoft2 depends on harfbuzz. |
# To avoid missing indirectly referenced harfbuzz symbols from pango, |
# some hack is required when bundled harfbuzz is used and component build is |