blob: 76256d562ed985d39f05101ca2d241de5b55352b [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//printing/buildflags/buildflags.gni")
enable_service = use_cups && is_chromeos
source_set("cups_ipp_parser") {
sources = [
"ipp_parser.h",
]
deps = [
"//base",
"//chrome/services/cups_proxy/public/cpp",
"//mojo/public/cpp/bindings",
"//net",
]
public_deps = [
"//chrome/services/cups_ipp_parser/public/mojom",
"//mojo/public/mojom/base",
"//printing",
]
# We stub the implementation if libCUPS is not present.
if (enable_service) {
configs += [ "//printing:cups" ]
sources += [ "ipp_parser.cc" ]
deps += [ "//chrome/services/cups_ipp_parser/public/cpp" ]
} else {
sources += [ "fake_ipp_parser.cc" ]
}
}