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("//build/gypi_to_gn.py",
12 [ rebase_path("../../chrome_browser_chromeos.gypi") ],
14 [ "chrome_browser_chromeos.gypi" ])
16 source_set("chromeos") {
17 assert(enable_extensions, "ChromeOS Chrome has to be built with extensions")
20 "//build/config/compiler:wexit_time_destructors",
21 "//build/config/linux:fontconfig",
27 "//chrome/app/resources:platform_locale_settings",
28 "//chrome/app/theme:theme_resources",
29 "//chrome:extra_resources",
32 "//content/app/resources",
33 "//ui/chromeos/resources",
34 "//ui/chromeos/strings",
40 # TODO(tbarzic): Cleanup this list.
42 "//ash:ash_with_content",
45 "//components/session_manager/core",
46 "//components/user_manager",
47 "//components/wallpaper",
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",
70 # This depends directly on the variations target, rather than just
71 # transitively via the common target because the proto sources need to
72 # be generated before code in this target can start building.
73 "//components/strings",
74 "//components/variations",
75 "//content/public/browser",
76 "//content/public/common",
83 "//ppapi:ppapi_ipc", # For PpapiMsg_LoadPlugin
85 # TODO: care about enable_basic_printing and enable_print_preview.
91 "//third_party/adobe/flash:flapper_version_h",
92 "//third_party/cacheinvalidation",
93 "//third_party/expat",
94 "//third_party/hunspell",
96 "//third_party/leveldatabase",
97 "//third_party/libevent",
98 "//third_party/libjingle",
99 "//third_party/libusb",
100 "//third_party/libxml",
101 "//third_party/npapi",
102 "//third_party/protobuf:protobuf_lite",
103 "//third_party/protobuf:protoc($host_toolchain)",
105 "//third_party/zlib",
109 "//ui/chromeos:ui_chromeos",
112 "//ui/events/platform",
113 "//ui/events:dom4_keycode_converter",
115 "//ui/message_center",
118 "//ui/views/controls/webview",
122 ":attestation_proto",
123 ":device_policy_proto",
127 defines = nacl_defines
129 sources = rebase_path(gypi_values.browser_chromeos_sources, ".", "//chrome") +
130 rebase_path(gypi_values.browser_chromeos_extension_sources,
134 defines += [ "USE_ATHENA=1" ]
137 rebase_path(gypi_values.browser_chromeos_non_athena_sources,
140 rebase_path(gypi_values.browser_chromeos_extension_non_athena_sources,
146 configs += [ "//build/config/linux:x11" ]
147 deps += [ "//ui/events/devices" ]
148 sources -= [ "system/input_device_settings_impl_ozone.cc" ]
150 assert(use_ozone, "Either use_x11 or use_ozone has to be specified.")
151 deps += [ "//ui/ozone" ]
155 "events/system_key_event_listener.cc",
156 "events/system_key_event_listener.h",
157 "events/xinput_hierarchy_changed_event_listener.cc",
158 "events/xinput_hierarchy_changed_event_listener.h",
159 "system/input_device_settings_impl_x11.cc",
164 defines += [ "USE_CRAS" ]
167 if (ui_compositor_image_transport) {
168 deps += [ "//ui/gl" ]
172 proto_library("drive_proto") {
178 proto_library("device_policy_proto") {
180 "policy/proto/chrome_device_policy.proto",
181 "policy/proto/install_attributes.proto",
185 proto_library("attestation_proto") {
187 "attestation/attestation_key_payload.proto",
188 "attestation/attestation_signed_data.proto",