summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/services/cups_proxy/public/cpp/BUILD.gn
blob: 9394f64227a4abdc1b0f305116e1d04f7a51bfd8 (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
40
41
42
43
44
45
46
47
48
49
# Copyright 2019 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")

assert(is_chromeos, "Non-Chrome-OS builds must not depend on this")

source_set("cpp") {
  sources = [
    "type_conversions.cc",
    "type_conversions.h",
  ]

  deps = [
    "//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",
    ]
  }
}

source_set("unit_tests") {
  testonly = true

  if (use_cups) {
    sources = [
      "cups_util_unittest.cc",
    ]
    deps = [
      ":cpp",
      "//base",
      "//testing/gmock",
      "//testing/gtest",
    ]
  }
}