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
50
51
52
53
54
55
56
57
|
# Copyright 2015 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("//mojo/public/tools/bindings/mojom.gni")
import("//printing/buildflags/buildflags.gni")
source_set("common") {
sources = [
"cloud_print_cdd_conversion.cc",
"cloud_print_cdd_conversion.h",
]
deps = [
":mojo_interfaces",
"//base",
"//build:chromeos_buildflags",
"//components/cloud_devices/common:common",
"//printing",
"//printing/backend",
"//printing/common",
"//printing/mojom",
]
if (use_qt) {
sources -= [
"cloud_print_cdd_conversion.cc",
"cloud_print_cdd_conversion.h",
]
deps -= [
"//components/cloud_devices/common:common",
]
}
}
mojom("mojo_interfaces") {
sources = [ "print.mojom" ]
public_deps = [
"//mojo/public/mojom/base",
"//printing/mojom",
"//ui/gfx/geometry/mojom",
]
enabled_features = []
if (enable_print_preview) {
enabled_features += [ "enable_print_preview" ]
}
if (enable_tagged_pdf) {
assert(enable_print_preview)
public_deps += [ "//ui/accessibility/mojom" ]
enabled_features += [ "enable_tagged_pdf" ]
}
if (enable_print_content_analysis) {
enabled_features += [ "enable_print_content_analysis" ]
}
}
|