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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
# Copyright 2014 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("//build/config/ui.gni")
import("//components/nacl/nacl_defines.gni")
import("//media/media_options.gni")
import("//third_party/protobuf/proto_library.gni")
gypi_values = exec_script("//build/gypi_to_gn.py",
[ rebase_path("../../chrome_browser_chromeos.gypi") ],
"scope",
[ "chrome_browser_chromeos.gypi" ])
source_set("chromeos") {
assert(enable_extensions, "ChromeOS Chrome has to be built with extensions")
configs += [
"//build/config/compiler:wexit_time_destructors",
"//build/config/linux:fontconfig",
]
public_deps = [
"//ash/resources",
"//ash/strings",
"//chrome/app/resources:platform_locale_settings",
"//chrome/app/theme:theme_resources",
"//chrome:extra_resources",
"//chrome:resources",
"//chrome:strings",
"//content/app/resources",
"//ui/chromeos/resources",
"//ui/chromeos/strings",
"//ui/resources",
"//ui/strings",
]
deps = [
# TODO(tbarzic): Cleanup this list.
"//ash",
"//ash:ash_with_content",
"//breakpad:client",
"//components/login",
"//components/session_manager/core",
"//components/user_manager",
"//components/wallpaper",
"//components/wifi_sync",
"//chrome/browser/devtools",
"//chrome/browser/extensions",
"//chrome/browser/net:cert_logger_proto",
"//chrome/browser/safe_browsing:chunk_proto",
"//chrome/browser/safe_browsing:metadata_proto",
"//chrome/browser/safe_browsing:report_proto",
"//chrome/common",
"//chrome/common/extensions/api",
"//chrome/common/extensions/api:api_registration",
"//chrome/common/net",
"//chrome/installer/util",
"//chromeos",
"//chromeos/ime:gencode",
"//chromeos:cryptohome_proto",
"//chromeos:cryptohome_signkey_proto",
"//chromeos:power_manager_proto",
"//components/history/core/browser:proto",
"//components/onc",
"//components/ownership",
"//components/pairing",
"//components/policy",
# This depends directly on the variations target, rather than just
# transitively via the common target because the proto sources need to
# be generated before code in this target can start building.
"//components/strings",
"//components/variations",
"//content/public/browser",
"//content/public/common",
"//crypto",
"//dbus",
"//device/bluetooth",
"//device/hid",
"//media",
"//net",
"//ppapi:ppapi_ipc", # For PpapiMsg_LoadPlugin
# TODO: care about enable_basic_printing and enable_print_preview.
"//printing",
"//skia",
"//storage/browser",
"//storage/common",
"//sync",
"//third_party/adobe/flash:flapper_version_h",
"//third_party/cacheinvalidation",
"//third_party/expat",
"//third_party/hunspell",
"//third_party/icu",
"//third_party/leveldatabase",
"//third_party/libevent",
"//third_party/libjingle",
"//third_party/libusb",
"//third_party/libxml",
"//third_party/npapi",
"//third_party/protobuf:protobuf_lite",
"//third_party/protobuf:protoc($host_toolchain)",
"//third_party/re2",
"//third_party/zlib",
"//ui/app_list",
"//ui/aura",
"//ui/base",
"//ui/chromeos:ui_chromeos",
"//ui/compositor",
"//ui/display",
"//ui/events/platform",
"//ui/events:dom4_keycode_converter",
"//ui/file_manager",
"//ui/message_center",
"//ui/surface",
"//ui/views",
"//ui/views/controls/webview",
"//ui/web_dialogs",
"//url",
"//v8",
":attestation_proto",
":device_policy_proto",
":drive_proto",
]
defines = nacl_defines
sources = rebase_path(gypi_values.browser_chromeos_sources, ".", "//chrome") +
rebase_path(gypi_values.browser_chromeos_extension_sources,
".",
"//chrome")
if (use_athena) {
defines += [ "USE_ATHENA=1" ]
} else {
sources +=
rebase_path(gypi_values.browser_chromeos_non_athena_sources,
".",
"//chrome") +
rebase_path(gypi_values.browser_chromeos_extension_non_athena_sources,
".",
"//chrome")
}
if (use_x11) {
configs += [ "//build/config/linux:x11" ]
deps += [ "//ui/events/devices" ]
sources -= [
"system/input_device_settings_impl_ozone.cc",
"system_logs/touch_log_source_ozone.cc",
]
} else {
assert(use_ozone, "Either use_x11 or use_ozone has to be specified.")
deps += [ "//ui/ozone" ]
sources -= [
"device_uma.cc",
"device_uma.h",
"events/system_key_event_listener.cc",
"events/system_key_event_listener.h",
"events/xinput_hierarchy_changed_event_listener.cc",
"events/xinput_hierarchy_changed_event_listener.h",
"system/input_device_settings_impl_x11.cc",
"system_logs/touch_log_source_x11.cc",
]
}
if (use_cras) {
defines += [ "USE_CRAS" ]
}
if (ui_compositor_image_transport) {
deps += [ "//ui/gl" ]
}
}
proto_library("drive_proto") {
sources = [
"drive/drive.proto",
]
}
proto_library("device_policy_proto") {
sources = [
"policy/proto/chrome_device_policy.proto",
"policy/proto/install_attributes.proto",
]
}
proto_library("attestation_proto") {
sources = [
"attestation/attestation_key_payload.proto",
"attestation/attestation_signed_data.proto",
]
}
|