forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.gn
61 lines (55 loc) · 1.55 KB
/
BUILD.gn
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
58
59
60
61
# Copyright 2020 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("//mojo/public/tools/bindings/mojom.gni")
import("//printing/buildflags/buildflags.gni")
mojom("mojom") {
sources = [ "print.mojom" ]
}
if (enable_oop_printing) {
mojom("printing_context") {
if (is_linux || is_chromeos) {
enabled_features = [ "is_linux_or_chromeos" ]
}
sources = [ "printing_context.mojom" ]
public_deps = [
":mojom",
"//mojo/public/mojom/base",
"//ui/gfx/geometry/mojom",
]
cpp_typemaps = [
{
types = [
{
mojom = "printing.mojom.PageMargins"
cpp = "::printing::PageMargins"
},
{
mojom = "printing.mojom.PageSetup"
cpp = "::printing::PageSetup"
},
{
mojom = "printing.mojom.PageRange"
cpp = "::printing::PageRange"
},
{
mojom = "printing.mojom.RequestedMedia"
cpp = "::printing::PrintSettings::RequestedMedia"
},
{
mojom = "printing.mojom.PrintSettings"
cpp = "::printing::PrintSettings"
},
]
traits_sources = [ "printing_context_mojom_traits.cc" ]
traits_headers = [ "printing_context_mojom_traits.h" ]
traits_deps = [
"//mojo/public/mojom/base",
"//printing",
"//ui/gfx/geometry",
"//ui/gfx/geometry/mojom",
]
},
]
}
}