1# Copyright 2018 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/features.gni") 6import("//printing/buildflags/buildflags.gni") 7 8enable_service = use_cups && is_chromeos 9 10source_set("ipp_parser") { 11 sources = [ 12 "ipp_parser.h", 13 "ipp_parser_service.cc", 14 "ipp_parser_service.h", 15 ] 16 17 deps = [ 18 "//base", 19 "//chrome:strings", 20 "//mojo/public/cpp/bindings", 21 "//net", 22 ] 23 24 public_deps = [ 25 "//chrome/services/ipp_parser/public/mojom", 26 "//mojo/public/mojom/base", 27 "//printing", 28 ] 29 30 # We stub the implementation if libCUPS is not present. 31 if (enable_service) { 32 configs += [ "//printing:cups" ] 33 sources += [ "ipp_parser.cc" ] 34 deps += [ 35 "//chrome/services/cups_proxy/public/cpp", 36 "//chrome/services/ipp_parser/public/cpp", 37 ] 38 } else { 39 sources += [ "fake_ipp_parser.cc" ] 40 } 41} 42