diff options
Diffstat (limited to 'chromium/chrome/services/cups_proxy/public/cpp/BUILD.gn')
-rw-r--r-- | chromium/chrome/services/cups_proxy/public/cpp/BUILD.gn | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/chromium/chrome/services/cups_proxy/public/cpp/BUILD.gn b/chromium/chrome/services/cups_proxy/public/cpp/BUILD.gn index 9394f64227a..d51cbc32104 100644 --- a/chromium/chrome/services/cups_proxy/public/cpp/BUILD.gn +++ b/chromium/chrome/services/cups_proxy/public/cpp/BUILD.gn @@ -6,9 +6,14 @@ import("//build/config/features.gni") import("//printing/buildflags/buildflags.gni") assert(is_chromeos, "Non-Chrome-OS builds must not depend on this") +assert(use_cups, "Non-CUPS builds must not depend on this") source_set("cpp") { sources = [ + "cups_util.cc", + "cups_util.h", + "ipp_messages.cc", + "ipp_messages.h", "type_conversions.cc", "type_conversions.h", ] @@ -17,33 +22,23 @@ source_set("cpp") { "//base", ] - if (use_cups) { - configs += [ "//printing:cups" ] - sources += [ - "cups_util.cc", - "cups_util.h", - "ipp_messages.cc", - "ipp_messages.h", - ] - public_deps = [ - "//chrome/services/ipp_parser/public/cpp", - "//printing", - ] - } + public_deps = [ + "//chrome/services/ipp_parser/public/cpp", + "//printing", + ] + + configs += [ "//printing:cups" ] } source_set("unit_tests") { testonly = true - - if (use_cups) { - sources = [ - "cups_util_unittest.cc", - ] - deps = [ - ":cpp", - "//base", - "//testing/gmock", - "//testing/gtest", - ] - } + sources = [ + "cups_util_unittest.cc", + ] + deps = [ + ":cpp", + "//base", + "//testing/gmock", + "//testing/gtest", + ] } |