1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7 import("//components/nacl/nacl_defines.gni")
8 import("//media/media_options.gni")
9 import("//third_party/protobuf/proto_library.gni")
11 gypi_values = exec_script(
12 "//build/gypi_to_gn.py",
13 [ rebase_path("../../chrome_browser_chromeos.gypi") ],
15 [ "chrome_browser_chromeos.gypi" ])
17 source_set("chromeos") {
18 assert(enable_extensions, "ChromeOS Chrome has to be built with extensions")
21 "//build/config/compiler:wexit_time_destructors",
22 "//build/config/linux:fontconfig",
28 "//chrome/app/resources:platform_locale_settings",
29 "//chrome/app/theme:theme_resources",
30 "//chrome:extra_resources",
33 "//content/app/resources",
34 "//ui/chromeos/resources",
35 "//ui/chromeos/strings",
41 # TODO(tbarzic): Cleanup this list.
43 "//ash:ash_with_content",
46 "//components/session_manager/core",
47 "//components/user_manager",
48 "//chrome/browser/devtools",
49 "//chrome/browser/extensions",
50 "//chrome/browser/history:in_memory_url_index_cache_proto",
51 "//chrome/browser/net:cert_logger_proto",
52 "//chrome/browser/safe_browsing:chunk_proto",
53 "//chrome/browser/safe_browsing:metadata_proto",
54 "//chrome/browser/safe_browsing:report_proto",
56 "//chrome/common/extensions/api",
57 "//chrome/common/extensions/api:api_registration",
58 "//chrome/common/net",
59 "//chrome/installer/util",
61 "//chromeos/ime:gencode",
62 "//chromeos:cryptohome_proto",
63 "//chromeos:cryptohome_signkey_proto",
64 "//chromeos:power_manager_proto",
66 "//components/ownership",
67 "//components/pairing",
68 "//components/policy",
69 # This depends directly on the variations target, rather than just
70 # transitively via the common target because the proto sources need to
71 # be generated before code in this target can start building.
72 "//components/strings",
73 "//components/variations",
74 "//content/public/browser",
75 "//content/public/common",
82 "//ppapi:ppapi_ipc", # For PpapiMsg_LoadPlugin
83 # TODO: care about enable_basic_printing and enable_print_preview.
89 "//third_party/adobe/flash:flapper_version_h",
90 "//third_party/cacheinvalidation",
91 "//third_party/expat",
92 "//third_party/hunspell",
94 "//third_party/leveldatabase",
95 "//third_party/libevent",
96 "//third_party/libjingle",
97 "//third_party/libusb",
98 "//third_party/libxml",
99 "//third_party/npapi",
100 "//third_party/protobuf:protobuf_lite",
101 "//third_party/protobuf:protoc($host_toolchain)",
103 "//third_party/zlib",
107 "//ui/chromeos:ui_chromeos",
110 "//ui/events/platform",
111 "//ui/events:dom4_keycode_converter",
113 "//ui/message_center",
116 "//ui/views/controls/webview",
120 ":attestation_proto",
121 ":device_policy_proto",
125 defines = nacl_defines
127 sources = rebase_path(gypi_values.browser_chromeos_sources,
129 rebase_path(gypi_values.browser_chromeos_extension_sources,
132 defines += ["USE_ATHENA=1"]
134 sources += rebase_path(
135 gypi_values.browser_chromeos_non_athena_sources,
137 rebase_path(gypi_values.browser_chromeos_extension_non_athena_sources,
142 configs += [ "//build/config/linux:x11" ]
143 deps += [ "//ui/events/devices" ]
145 assert(use_ozone, "Either use_x11 or use_ozone has to be specified.")
146 deps += [ "//ui/ozone" ]
150 "events/system_key_event_listener.cc",
151 "events/system_key_event_listener.h",
152 "events/xinput_hierarchy_changed_event_listener.cc",
153 "events/xinput_hierarchy_changed_event_listener.h",
158 defines += [ "USE_CRAS" ]
161 if (ui_compositor_image_transport) {
162 deps += [ "//ui/gl" ]
166 proto_library("drive_proto") {
167 sources = [ "drive/drive.proto" ]
170 proto_library("device_policy_proto") {
172 "policy/proto/chrome_device_policy.proto",
173 "policy/proto/install_attributes.proto",
177 proto_library("attestation_proto") {
179 "attestation/attestation_key_payload.proto",
180 "attestation/attestation_signed_data.proto",