summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/services/ipp_parser/BUILD.gn
blob: fa304ecbf3571f73231f8e464181b8595e1ef65a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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("ipp_parser") {
  sources = [
    "ipp_parser.h",
    "ipp_parser_service.cc",
    "ipp_parser_service.h",
  ]

  deps = [
    "//base",
    "//chrome:strings",
    "//chrome/services/cups_proxy/public/cpp",
    "//mojo/public/cpp/bindings",
    "//net",
  ]

  public_deps = [
    "//chrome/services/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/ipp_parser/public/cpp" ]
  } else {
    sources += [ "fake_ipp_parser.cc" ]
  }
}