Index: printing/BUILD.gn |
diff --git a/printing/BUILD.gn b/printing/BUILD.gn |
index 0f7f56433730f44e3c57c4f07fe3f7e14042bdc7..0c88889f3755a989d867fde63bffd62781421e39 100644 |
--- a/printing/BUILD.gn |
+++ b/printing/BUILD.gn |
@@ -125,12 +125,12 @@ component("printing") { |
} |
if (use_cups) { |
- cups_version = exec_script("cups_config_helper.py", [ "--api-version" ], |
- "trim string") |
- |
configs += [ ":cups" ] |
if (is_linux) { |
+ cups_version = exec_script("cups_config_helper.py", [ "--api-version" ], |
+ "trim string") |
+ |
if (cups_version == "1.6" || cups_version == "1.7") { |
cflags += [ |
# CUPS 1.6 deprecated the PPD APIs, but we will stay with this |