blob: 2060b6b092552799bd7245d04b8e08b3e114b2a5 [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/chromeos/ui_mode.gni")
import("//build/config/features.gni")
import("//printing/buildflags/buildflags.gni")
enable_service = use_cups && is_chromeos_ash
source_set("ipp_parser") {
sources = [ "ipp_parser.h" ]
deps = [
"//base",
"//net",
]
public_deps = [
"//chrome/services/ipp_parser/public/mojom",
"//mojo/public/mojom/base",
]
# We stub the implementation if libCUPS is not present.
if (enable_service) {
configs += [ "//printing:cups" ]
sources += [ "ipp_parser.cc" ]
deps += [
"//chrome/services/cups_proxy/public/cpp",
"//chrome/services/ipp_parser/public/cpp",
]
} else {
sources += [ "fake_ipp_parser.cc" ]
}
}