[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 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. |
| 4 | |
James Cook | 209256f | 2018-12-07 18:40:50 | [diff] [blame] | 5 | import("//build/buildflag_header.gni") |
Ben Pastene | c60bf502 | 2018-05-04 01:10:33 | [diff] [blame] | 6 | import("//build/config/chromeos/rules.gni") |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 7 | import("//build/config/ui.gni") |
Lutz Justen | 09c943a | 2018-04-13 01:49:19 | [diff] [blame] | 8 | import("//testing/libfuzzer/fuzzer_test.gni") |
qsr | fb5251d1 | 2015-01-21 15:57:22 | [diff] [blame] | 9 | import("//testing/test.gni") |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 10 | import("//third_party/protobuf/proto_library.gni") |
| 11 | |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 12 | assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos") |
mukai | 327e5f5 | 2014-10-16 19:10:52 | [diff] [blame] | 13 | |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 14 | # Used by targets that compile into the implementation. |
| 15 | config("chromeos_implementation") { |
| 16 | defines = [ "CHROMEOS_IMPLEMENTATION" ] |
| 17 | } |
| 18 | |
James Cook | 209256f | 2018-12-07 18:40:50 | [diff] [blame] | 19 | buildflag_header("chromeos_buildflags") { |
| 20 | header = "chromeos_buildflags.h" |
| 21 | flags = [ "IS_CROS_CHROME_SDK=$is_cros_chrome_sdk" ] |
| 22 | } |
| 23 | |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 24 | component("chromeos") { |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 25 | configs += [ |
| 26 | ":chromeos_implementation", |
James Cook | c3828a4 | 2018-11-28 23:33:23 | [diff] [blame] | 27 | "//build/config/linux/nss:system_nss_no_ssl_config", |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 28 | ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 29 | public_deps = [ |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 30 | ":chromeos_constants", |
| 31 | ":chromeos_export", |
| 32 | ":login_event_recorder", |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 33 | ":policy_certificate_provider", |
| 34 | ":tools", |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 35 | "//chromeos/cryptohome", |
| 36 | "//chromeos/dbus", |
| 37 | "//chromeos/login", |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 38 | "//chromeos/network", |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 39 | "//chromeos/settings", |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 40 | "//dbus", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 41 | ] |
| 42 | deps = [ |
Kush Sinha | 719fb1b | 2018-03-19 19:29:58 | [diff] [blame] | 43 | ":account_manager_proto", |
drcrash | 7da3d8b | 2016-09-09 05:39:53 | [diff] [blame] | 44 | ":attestation_proto", |
rsorokin | fc75ccee | 2017-02-10 13:16:43 | [diff] [blame] | 45 | ":authpolicy_proto", |
xiaoyinh | 58676cf | 2017-05-08 20:21:31 | [diff] [blame] | 46 | ":biod_proto", |
Jeffrey Kardatzke | a3f86c4c | 2018-05-31 18:34:07 | [diff] [blame] | 47 | ":cicerone_proto", |
Renee Wright | 0e1449f | 2018-03-28 00:21:40 | [diff] [blame] | 48 | ":concierge_proto", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 49 | ":cryptohome_proto", |
xiaohuic | 2f57e3f7 | 2017-05-31 01:29:53 | [diff] [blame] | 50 | ":login_manager_proto", |
lasoren | f933419f | 2017-05-15 19:37:45 | [diff] [blame] | 51 | ":media_perception_proto", |
Luigi Semenzato | a179f27 | 2018-09-07 21:06:41 | [diff] [blame] | 52 | ":metrics_event_proto", |
Denis Kuznetsov | 046a611c | 2018-09-27 11:23:57 | [diff] [blame] | 53 | ":oobe_config_proto", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 54 | ":power_manager_proto", |
Joel Hockey | b797d18 | 2018-09-01 10:48:53 | [diff] [blame] | 55 | ":seneschal_proto", |
Allen Vicencio | 0245710 | 2017-11-28 01:20:20 | [diff] [blame] | 56 | ":smbprovider_proto", |
Timothy Loh | 71d65441 | 2018-04-04 05:30:05 | [diff] [blame] | 57 | ":vm_applications_apps_proto", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 58 | "//base", |
Nico Weber | a3d0a42 | 2015-01-20 21:46:21 | [diff] [blame] | 59 | "//base:i18n", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 60 | "//base/third_party/dynamic_annotations", |
Alexander Alekseev | 3f09a8f | 2018-05-03 02:52:10 | [diff] [blame] | 61 | "//components/account_id", |
reillyg | 4a84927 | 2015-02-20 21:38:43 | [diff] [blame] | 62 | "//components/device_event_log", |
tnagel | 51accc4 | 2016-12-28 12:00:58 | [diff] [blame] | 63 | "//components/policy:cloud_policy_proto_generated_compile", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 64 | "//components/policy/proto", |
stevenjb | 100c620 | 2016-10-28 02:28:00 | [diff] [blame] | 65 | "//components/pref_registry", |
brettw | 9f7802a2 | 2016-01-30 06:40:17 | [diff] [blame] | 66 | "//components/prefs", |
alemate | 627f653 | 2016-03-04 10:39:54 | [diff] [blame] | 67 | "//components/user_manager", |
nkostylev | 8d7d18d | 2015-01-28 11:25:08 | [diff] [blame] | 68 | "//crypto:platform", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 69 | "//google_apis", |
shenghao | 77ec80c | 2017-02-22 20:14:18 | [diff] [blame] | 70 | "//media/base:video_facing", |
Luum Habtemariam | b30c811 | 2018-06-25 21:51:22 | [diff] [blame] | 71 | "//services/network/public/cpp:cpp", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 72 | "//third_party/protobuf:protobuf_lite", |
James Cook | a747825 | 2018-02-23 23:03:11 | [diff] [blame] | 73 | "//ui/gfx/geometry", # For accelerometer. |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 74 | ] |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 75 | sources = [ |
| 76 | "accelerometer/accelerometer_reader.cc", |
| 77 | "accelerometer/accelerometer_reader.h", |
| 78 | "accelerometer/accelerometer_types.cc", |
| 79 | "accelerometer/accelerometer_types.h", |
Kush Sinha | 719fb1b | 2018-03-19 19:29:58 | [diff] [blame] | 80 | "account_manager/account_manager.cc", |
| 81 | "account_manager/account_manager.h", |
Kush Sinha | 74c38a0 | 2018-04-16 23:53:44 | [diff] [blame] | 82 | "account_manager/account_manager_factory.cc", |
| 83 | "account_manager/account_manager_factory.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 84 | "app_mode/kiosk_oem_manifest_parser.cc", |
| 85 | "app_mode/kiosk_oem_manifest_parser.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 86 | "attestation/attestation_flow.cc", |
| 87 | "attestation/attestation_flow.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 88 | "audio/audio_device.cc", |
| 89 | "audio/audio_device.h", |
| 90 | "audio/audio_devices_pref_handler.h", |
| 91 | "audio/audio_devices_pref_handler_impl.cc", |
| 92 | "audio/audio_devices_pref_handler_impl.h", |
| 93 | "audio/audio_devices_pref_handler_stub.cc", |
| 94 | "audio/audio_devices_pref_handler_stub.h", |
| 95 | "audio/audio_pref_observer.h", |
| 96 | "audio/chromeos_sounds.h", |
| 97 | "audio/cras_audio_handler.cc", |
| 98 | "audio/cras_audio_handler.h", |
Anand K. Mistry | 6039ab0 | 2018-08-07 03:21:34 | [diff] [blame] | 99 | "disks/disk.cc", |
| 100 | "disks/disk.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 101 | "disks/disk_mount_manager.cc", |
| 102 | "disks/disk_mount_manager.h", |
| 103 | "disks/suspend_unmount_manager.cc", |
| 104 | "disks/suspend_unmount_manager.h", |
| 105 | "geolocation/geoposition.cc", |
| 106 | "geolocation/geoposition.h", |
| 107 | "geolocation/simple_geolocation_provider.cc", |
| 108 | "geolocation/simple_geolocation_provider.h", |
| 109 | "geolocation/simple_geolocation_request.cc", |
| 110 | "geolocation/simple_geolocation_request.h", |
| 111 | "geolocation/simple_geolocation_request_test_monitor.cc", |
| 112 | "geolocation/simple_geolocation_request_test_monitor.h", |
| 113 | "hugepage_text/hugepage_text.cc", |
| 114 | "hugepage_text/hugepage_text.h", |
A Olsen | d994a4c | 2018-10-02 11:35:30 | [diff] [blame] | 115 | "policy/weekly_time/time_utils.cc", |
| 116 | "policy/weekly_time/time_utils.h", |
| 117 | "policy/weekly_time/weekly_time.cc", |
| 118 | "policy/weekly_time/weekly_time.h", |
| 119 | "policy/weekly_time/weekly_time_interval.cc", |
| 120 | "policy/weekly_time/weekly_time_interval.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 121 | "printing/ppd_cache.cc", |
| 122 | "printing/ppd_cache.h", |
Justin Carlson | 781f77e21 | 2017-11-15 22:32:31 | [diff] [blame] | 123 | "printing/ppd_line_reader.cc", |
| 124 | "printing/ppd_line_reader.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 125 | "printing/ppd_provider.cc", |
| 126 | "printing/ppd_provider.h", |
| 127 | "printing/printer_configuration.cc", |
| 128 | "printing/printer_configuration.h", |
| 129 | "printing/printer_translator.cc", |
| 130 | "printing/printer_translator.h", |
David Valleau | 03e6fa6b | 2018-01-19 02:54:26 | [diff] [blame] | 131 | "printing/uri_components.cc", |
| 132 | "printing/uri_components.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 133 | "process_proxy/process_output_watcher.cc", |
| 134 | "process_proxy/process_output_watcher.h", |
| 135 | "process_proxy/process_proxy.cc", |
| 136 | "process_proxy/process_proxy.h", |
| 137 | "process_proxy/process_proxy_registry.cc", |
| 138 | "process_proxy/process_proxy_registry.h", |
sque | a15eba14 | 2017-04-25 15:41:36 | [diff] [blame] | 139 | "system/cpu_temperature_reader.cc", |
| 140 | "system/cpu_temperature_reader.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 141 | "system/devicemode.cc", |
| 142 | "system/devicemode.h", |
| 143 | "system/devicetype.cc", |
| 144 | "system/devicetype.h", |
Pavol Marko | ac1f561 | 2018-05-19 21:44:59 | [diff] [blame] | 145 | "system/factory_ping_embargo_check.cc", |
| 146 | "system/factory_ping_embargo_check.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 147 | |
| 148 | # Used when running mash, both on Linux and on real devices. |
| 149 | "system/fake_statistics_provider.cc", |
| 150 | "system/fake_statistics_provider.h", |
| 151 | "system/name_value_pairs_parser.cc", |
| 152 | "system/name_value_pairs_parser.h", |
| 153 | "system/statistics_provider.cc", |
| 154 | "system/statistics_provider.h", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 155 | "timezone/timezone_provider.cc", |
| 156 | "timezone/timezone_provider.h", |
| 157 | "timezone/timezone_request.cc", |
| 158 | "timezone/timezone_request.h", |
| 159 | "timezone/timezone_resolver.cc", |
| 160 | "timezone/timezone_resolver.h", |
| 161 | "tpm/tpm_password_fetcher.cc", |
| 162 | "tpm/tpm_password_fetcher.h", |
| 163 | "tpm/tpm_token_info_getter.cc", |
| 164 | "tpm/tpm_token_info_getter.h", |
| 165 | "tpm/tpm_token_loader.cc", |
| 166 | "tpm/tpm_token_loader.h", |
| 167 | ] |
agrieve | c50a654 | 2016-06-09 03:44:09 | [diff] [blame] | 168 | if (current_cpu == "arm" || current_cpu == "x86") { |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 169 | defines = [ "BINDER_IPC_32BIT" ] |
hashimoto | aa1465a | 2015-12-11 06:19:59 | [diff] [blame] | 170 | } |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 171 | } |
| 172 | |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 173 | source_set("chromeos_export") { |
| 174 | deps = [ |
| 175 | "//base", |
| 176 | ] |
| 177 | sources = [ |
| 178 | "chromeos_export.h", |
| 179 | ] |
| 180 | } |
| 181 | |
| 182 | source_set("chromeos_constants") { |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 183 | configs += [ ":chromeos_implementation" ] |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 184 | deps = [ |
| 185 | ":chromeos_export", |
| 186 | "//base", |
| 187 | "//base:i18n", |
| 188 | "//chromeos/dbus:dbus_switches", |
| 189 | "//third_party/icu", |
| 190 | ] |
| 191 | sources = [ |
| 192 | "chromeos_constants.cc", |
| 193 | "chromeos_constants.h", |
| 194 | "chromeos_features.cc", |
| 195 | "chromeos_features.h", |
| 196 | "chromeos_paths.cc", |
| 197 | "chromeos_paths.h", |
| 198 | "chromeos_pref_names.cc", |
| 199 | "chromeos_pref_names.h", |
| 200 | "chromeos_switches.cc", |
| 201 | "chromeos_switches.h", |
| 202 | ] |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 203 | } |
| 204 | |
| 205 | source_set("login_event_recorder") { |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 206 | configs += [ ":chromeos_implementation" ] |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 207 | deps = [ |
| 208 | ":chromeos_export", |
| 209 | "//base", |
| 210 | ] |
| 211 | sources = [ |
| 212 | "login_event_recorder.cc", |
| 213 | "login_event_recorder.h", |
| 214 | ] |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | source_set("policy_certificate_provider") { |
| 218 | configs += [ ":chromeos_implementation" ] |
| 219 | deps = [ |
| 220 | ":chromeos_export", |
| 221 | "//base", |
| 222 | ] |
| 223 | sources = [ |
| 224 | "policy_certificate_provider.h", |
| 225 | ] |
| 226 | } |
| 227 | |
| 228 | source_set("tools") { |
| 229 | configs += [ ":chromeos_implementation" ] |
| 230 | deps = [ |
| 231 | ":chromeos_export", |
| 232 | "//base", |
| 233 | ] |
| 234 | sources = [ |
| 235 | "tools/variable_expander.cc", |
| 236 | "tools/variable_expander.h", |
| 237 | ] |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 238 | } |
| 239 | |
skau | 65455b5a0 | 2016-08-03 20:16:38 | [diff] [blame] | 240 | # This must be a static library instead of a source set because some of the |
brettw | c4e6a0f | 2015-08-27 18:28:32 | [diff] [blame] | 241 | # files pull in things with dependencies that aren't linked in all cases. |
| 242 | # |
| 243 | # TODO this should probably be changed such that it links in all cases and |
| 244 | # can be converted to a source set. |
Brett Wilson | 16eb70c | 2015-08-22 21:08:09 | [diff] [blame] | 245 | static_library("test_support") { |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 246 | testonly = true |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 247 | public_deps = [ |
| 248 | ":test_support_source_set", |
| 249 | ] |
| 250 | } |
| 251 | |
| 252 | source_set("test_support_source_set") { |
| 253 | testonly = true |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 254 | public_deps = [ |
drcrash | 7da3d8b | 2016-09-09 05:39:53 | [diff] [blame] | 255 | ":attestation_proto", |
xiaoyinh | 58676cf | 2017-05-08 20:21:31 | [diff] [blame] | 256 | ":biod_proto", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 257 | ":chromeos", |
| 258 | ":cryptohome_proto", |
| 259 | ":power_manager_proto", |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 260 | "//chromeos/dbus:test_support", |
oshima | 3f959fa8 | 2016-05-02 18:42:57 | [diff] [blame] | 261 | ] |
| 262 | deps = [ |
Alexander Alekseev | 3f09a8f | 2018-05-03 02:52:10 | [diff] [blame] | 263 | "//components/account_id", |
oshima | 3f959fa8 | 2016-05-02 18:42:57 | [diff] [blame] | 264 | "//google_apis", |
| 265 | "//net:test_support", |
Luum Habtemariam | b30c811 | 2018-06-25 21:51:22 | [diff] [blame] | 266 | "//services/network:test_support", |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 267 | "//testing/gmock", |
oshima | 3f959fa8 | 2016-05-02 18:42:57 | [diff] [blame] | 268 | "//testing/gtest", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 269 | ] |
| 270 | sources = [ |
| 271 | "attestation/mock_attestation_flow.cc", |
| 272 | "attestation/mock_attestation_flow.h", |
| 273 | "chromeos_test_utils.cc", |
| 274 | "chromeos_test_utils.h", |
| 275 | "cryptohome/mock_async_method_caller.cc", |
| 276 | "cryptohome/mock_async_method_caller.h", |
| 277 | "cryptohome/mock_homedir_methods.cc", |
| 278 | "cryptohome/mock_homedir_methods.h", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 279 | "disks/mock_disk_mount_manager.cc", |
| 280 | "disks/mock_disk_mount_manager.h", |
brettw | 6c1a772 | 2015-01-06 08:34:24 | [diff] [blame] | 281 | "login/auth/fake_extended_authenticator.cc", |
| 282 | "login/auth/fake_extended_authenticator.h", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 283 | "login/auth/mock_auth_attempt_state_resolver.cc", |
| 284 | "login/auth/mock_auth_attempt_state_resolver.h", |
| 285 | "login/auth/mock_auth_status_consumer.cc", |
| 286 | "login/auth/mock_auth_status_consumer.h", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 287 | "login/auth/mock_url_fetchers.cc", |
| 288 | "login/auth/mock_url_fetchers.h", |
isandrk | 1296202 | 2017-05-04 15:27:33 | [diff] [blame] | 289 | "login/scoped_test_public_session_login_state.cc", |
| 290 | "login/scoped_test_public_session_login_state.h", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 291 | "network/fake_network_device_handler.cc", |
| 292 | "network/fake_network_device_handler.h", |
| 293 | "network/mock_managed_network_configuration_handler.cc", |
| 294 | "network/mock_managed_network_configuration_handler.h", |
malaykeshav | 77a1ea0 | 2016-04-21 18:55:50 | [diff] [blame] | 295 | "network/mock_network_device_handler.cc", |
| 296 | "network/mock_network_device_handler.h", |
Alexander Hendrich | b2429689 | 2018-08-01 08:18:15 | [diff] [blame] | 297 | "network/mock_network_state_handler.cc", |
| 298 | "network/mock_network_state_handler.h", |
khorimoto | 6c378ee | 2017-03-30 23:57:47 | [diff] [blame] | 299 | "network/network_state_test.cc", |
| 300 | "network/network_state_test.h", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 301 | "network/onc/onc_test_utils.cc", |
| 302 | "network/onc/onc_test_utils.h", |
kumarniranjan | f097331 | 2017-05-20 00:00:34 | [diff] [blame] | 303 | "network/portal_detector/mock_network_portal_detector.cc", |
| 304 | "network/portal_detector/mock_network_portal_detector.h", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 305 | ] |
| 306 | } |
| 307 | |
| 308 | static_library("test_support_without_gmock") { |
| 309 | testonly = true |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 310 | public_deps = [ |
| 311 | "//chromeos/dbus", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 312 | ] |
| 313 | } |
| 314 | |
| 315 | test("chromeos_unittests") { |
| 316 | configs += [ |
agrieve | 95ba444 | 2016-04-25 15:47:13 | [diff] [blame] | 317 | "//build/config/linux/dbus", |
Nico Weber | 2023256d | 2018-08-28 17:44:57 | [diff] [blame] | 318 | "//build/config/linux/nss:system_nss_no_ssl_config", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 319 | ] |
| 320 | deps = [ |
drcrash | 7da3d8b | 2016-09-09 05:39:53 | [diff] [blame] | 321 | ":attestation_proto", |
Roman Sorokin | 63c0c216 | 2017-11-28 09:43:04 | [diff] [blame] | 322 | ":authpolicy_proto", |
xiaoyinh | 58676cf | 2017-05-08 20:21:31 | [diff] [blame] | 323 | ":biod_proto", |
James Cook | 209256f | 2018-12-07 18:40:50 | [diff] [blame] | 324 | ":chromeos_buildflags", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 325 | ":cryptohome_proto", |
Denis Kuznetsov | 046a611c | 2018-09-27 11:23:57 | [diff] [blame] | 326 | ":oobe_config_proto", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 327 | ":power_manager_proto", |
| 328 | ":test_support", |
Roman Sorokin | 94a94e3 | 2017-11-29 13:11:21 | [diff] [blame] | 329 | ":test_support_without_gmock", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 330 | "//base/test:test_support", |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 331 | "//chromeos/cryptohome:unit_tests", |
| 332 | "//chromeos/dbus:unit_tests", |
| 333 | "//chromeos/login:unit_tests", |
A Olsen | 37962d2e | 2018-10-12 15:05:18 | [diff] [blame] | 334 | "//chromeos/network:unit_tests", |
Kyle Horimoto | 940d7df | 2018-03-17 01:00:23 | [diff] [blame] | 335 | "//chromeos/services:unit_tests", |
A Olsen | 9457984 | 2018-10-10 19:22:31 | [diff] [blame] | 336 | "//chromeos/settings:unit_tests", |
Alexander Alekseev | 3f09a8f | 2018-05-03 02:52:10 | [diff] [blame] | 337 | "//components/account_id", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 338 | "//components/onc", |
A Olsen | d994a4c | 2018-10-02 11:35:30 | [diff] [blame] | 339 | "//components/policy:generated", |
| 340 | "//components/policy/proto", |
brettw | 9f7802a2 | 2016-01-30 06:40:17 | [diff] [blame] | 341 | "//components/prefs:test_support", |
stevenjb | 8336888 | 2015-07-10 20:51:45 | [diff] [blame] | 342 | "//components/proxy_config", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 343 | "//crypto", |
| 344 | "//crypto:test_support", |
| 345 | "//dbus:test_support", |
| 346 | "//google_apis", |
jennyz | fbaa3e6 | 2017-03-06 20:14:02 | [diff] [blame] | 347 | "//media/base:video_facing", |
Ken Rockot | f03d97c95 | 2018-07-04 22:08:10 | [diff] [blame] | 348 | "//mojo/core/embedder", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 349 | "//net", |
| 350 | "//net:test_support", |
Luum Habtemariam | b30c811 | 2018-06-25 21:51:22 | [diff] [blame] | 351 | "//services/network:test_support", |
Jay Civelli | 1ba11572 | 2018-07-16 17:41:01 | [diff] [blame] | 352 | "//services/network/public/cpp", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 353 | "//testing/gmock", |
| 354 | "//testing/gtest", |
jshin | 77e507b | 2015-04-24 01:13:15 | [diff] [blame] | 355 | "//third_party/icu", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 356 | "//url", |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 357 | ] |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 358 | sources = [ |
Kush Sinha | 719fb1b | 2018-03-19 19:29:58 | [diff] [blame] | 359 | "account_manager/account_manager_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 360 | "app_mode/kiosk_oem_manifest_parser_unittest.cc", |
| 361 | "attestation/attestation_flow_unittest.cc", |
| 362 | "audio/audio_devices_pref_handler_impl_unittest.cc", |
| 363 | "audio/cras_audio_handler_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 364 | "disks/disk_mount_manager_unittest.cc", |
Anand K. Mistry | 3a633db | 2018-08-07 06:52:32 | [diff] [blame] | 365 | "disks/disk_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 366 | "disks/suspend_unmount_manager_unittest.cc", |
| 367 | "geolocation/simple_geolocation_unittest.cc", |
A Olsen | d994a4c | 2018-10-02 11:35:30 | [diff] [blame] | 368 | "policy/weekly_time/time_utils_unittest.cc", |
| 369 | "policy/weekly_time/weekly_time_interval_unittest.cc", |
| 370 | "policy/weekly_time/weekly_time_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 371 | "printing/ppd_cache_unittest.cc", |
Justin Carlson | 781f77e21 | 2017-11-15 22:32:31 | [diff] [blame] | 372 | "printing/ppd_line_reader_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 373 | "printing/ppd_provider_unittest.cc", |
Sean Kau | ff2bbe7 | 2018-05-23 01:05:02 | [diff] [blame] | 374 | "printing/printer_configuration_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 375 | "printing/printer_translator_unittest.cc", |
| 376 | "process_proxy/process_output_watcher_unittest.cc", |
| 377 | "process_proxy/process_proxy_unittest.cc", |
Kyle Horimoto | 940d7df | 2018-03-17 01:00:23 | [diff] [blame] | 378 | "run_all_unittests.cc", |
sque | a15eba14 | 2017-04-25 15:41:36 | [diff] [blame] | 379 | "system/cpu_temperature_reader_unittest.cc", |
Pavol Marko | ac1f561 | 2018-05-19 21:44:59 | [diff] [blame] | 380 | "system/factory_ping_embargo_check_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 381 | "system/name_value_pairs_parser_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 382 | "timezone/timezone_unittest.cc", |
Lutz Justen | 09c943a | 2018-04-13 01:49:19 | [diff] [blame] | 383 | "tools/variable_expander_unittest.cc", |
teravest | 54ee225 | 2017-03-17 14:18:16 | [diff] [blame] | 384 | "tpm/tpm_token_info_getter_unittest.cc", |
| 385 | ] |
dpranke | 94c6fb2 | 2016-06-10 01:55:08 | [diff] [blame] | 386 | |
| 387 | data = [ |
| 388 | "test/data/", |
dpranke | 94c6fb2 | 2016-06-10 01:55:08 | [diff] [blame] | 389 | ] |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 390 | } |
| 391 | |
Ben Pastene | 70ce32d2 | 2018-09-10 22:30:52 | [diff] [blame] | 392 | # The following definitions only apply when building for a CrOS board (ie: not |
| 393 | # linux-chromeos). See the following for reference: |
| 394 | # https://chromium.googlesource.com/chromium/src/+/master/docs/chromeos_build_instructions.md |
| 395 | # https://chromium.googlesource.com/chromiumos/docs/+/master/simple_chrome_workflow.md |
James Cook | 209256f | 2018-12-07 18:40:50 | [diff] [blame] | 396 | if (is_cros_chrome_sdk) { |
Ben Pastene | 4ab9865 | 2018-12-17 18:33:18 | [diff] [blame^] | 397 | generate_runner_script("cros_vm_launcher") { |
Ben Pastene | c1543c2 | 2018-05-04 23:39:43 | [diff] [blame] | 398 | generated_script = "$root_build_dir/bin/launch_cros_vm" |
Ben Pastene | 22d25c8 | 2018-08-06 20:18:34 | [diff] [blame] | 399 | |
| 400 | # Assume every time we build cros_vm_launcher, we also build chrome and |
| 401 | # want to deploy it to the VM. |
| 402 | deploy_chrome = true |
Ben Pastene | c1543c2 | 2018-05-04 23:39:43 | [diff] [blame] | 403 | } |
Ben Pastene | 9ec70f9 | 2018-05-14 21:09:22 | [diff] [blame] | 404 | |
Ben Pastene | 4ab9865 | 2018-12-17 18:33:18 | [diff] [blame^] | 405 | # The sanity test's actual binary is baked into the OS image. All we need to |
Ben Pastene | 9ec70f9 | 2018-05-14 21:09:22 | [diff] [blame] | 406 | # do is build the test wrapper and build our own browser to push to the VM |
| 407 | # before testing it. |
Ben Pastene | 4ab9865 | 2018-12-17 18:33:18 | [diff] [blame^] | 408 | generate_runner_script("cros_vm_sanity_test") { |
Ben Pastene | 1688203 | 2018-09-21 01:16:39 | [diff] [blame] | 409 | testonly = true |
| 410 | test_exe = "cros_vm_sanity_test" |
Ben Pastene | 9ec70f9 | 2018-05-14 21:09:22 | [diff] [blame] | 411 | generated_script = "$root_build_dir/bin/run_cros_vm_sanity_test" |
Ben Pastene | d09dd69 | 2018-09-21 18:58:10 | [diff] [blame] | 412 | runtime_deps_file = "$root_out_dir/cros_vm_sanity_test.runtime_deps" |
Ben Pastene | 9ec70f9 | 2018-05-14 21:09:22 | [diff] [blame] | 413 | |
Ben Pastene | 1688203 | 2018-09-21 01:16:39 | [diff] [blame] | 414 | data_deps = [ |
| 415 | ":cros_chrome_deploy", |
| 416 | "//:chromiumos_preflight", # Builds the browser. |
| 417 | ] |
Ben Pastene | 9ec70f9 | 2018-05-14 21:09:22 | [diff] [blame] | 418 | } |
Ben Pastene | 2bc796b | 2018-08-03 03:02:00 | [diff] [blame] | 419 | |
Ben Pastene | 33015a0 | 2018-09-28 18:59:14 | [diff] [blame] | 420 | tast_test("chrome_login_tast_tests") { |
| 421 | tast_tests = [ |
| 422 | "ui.ChromeLogin", |
| 423 | "ui.ChromeCrashLoggedIn", |
| 424 | "ui.ChromeCrashNotLoggedIn", |
| 425 | ] |
| 426 | } |
| 427 | |
James Cook | c3828a4 | 2018-11-28 23:33:23 | [diff] [blame] | 428 | # Tast test sources live in the Chromium OS repository. |
| 429 | # To diagnose tast failures or disable tests, see go/tast-failures |
Ben Pastene | 09de394 | 2018-10-02 18:06:42 | [diff] [blame] | 430 | tast_test("chrome_all_tast_tests") { |
Ben Pastene | 0f41308 | 2018-12-06 00:12:20 | [diff] [blame] | 431 | disabled_tests = [ |
| 432 | # Disabled due to flake. https://crbug.com/909736 |
| 433 | "ui.MashLogin", |
Ben Pastene | 0f41308 | 2018-12-06 00:12:20 | [diff] [blame] | 434 | ] |
| 435 | tast_conditional = "!disabled && !\"group:*\" && !informational" + |
| 436 | " && (\"dep:chrome\" || \"dep:chrome_login\")" |
| 437 | foreach(test, disabled_tests) { |
| 438 | tast_conditional += " && !\"name:${test}\"" |
| 439 | } |
| 440 | tast_conditional = "( " + tast_conditional + " )" |
Ben Pastene | 09de394 | 2018-10-02 18:06:42 | [diff] [blame] | 441 | } |
| 442 | |
Ben Pastene | 2bc796b | 2018-08-03 03:02:00 | [diff] [blame] | 443 | group("cros_chrome_deploy") { |
| 444 | # The following run-time dependencies are needed to deploy chrome to a |
| 445 | # ChromeOS device. See the link for the full list: |
| 446 | # https://codesearch.chromium.org/chromium/src/third_party/chromite/lib/chrome_util.py?l=341 |
| 447 | # Most of these are copy targets, for which GN doesn't add their outputs |
| 448 | # as runtime-deps. See the link below for more details: |
| 449 | # https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md#actions-and-copies |
| 450 | data_deps = [ |
| 451 | "//chrome:xdg_mime", |
| 452 | "//mojo/core:shared_library_arc32", |
| 453 | "//mojo/core:shared_library_arc64", |
| 454 | ] |
| 455 | |
| 456 | # TODO(bpastene): Figure out what's generating resources/chromeos/ and |
| 457 | # declare it as a dep instead of adding the dir directly. |
| 458 | data = [ |
| 459 | "$root_out_dir/resources/chromeos/", |
| 460 | ] |
| 461 | } |
Ben Pastene | c60bf502 | 2018-05-04 01:10:33 | [diff] [blame] | 462 | } |
| 463 | |
Lutz Justen | 09c943a | 2018-04-13 01:49:19 | [diff] [blame] | 464 | fuzzer_test("variable_expander_fuzzer") { |
| 465 | sources = [ |
| 466 | "tools/variable_expander_fuzzer.cc", |
| 467 | ] |
| 468 | seed_corpus = "//chromeos/test/data/variable_expander/fuzzer_corpus" |
| 469 | dict = "//chromeos/test/data/variable_expander/fuzzer.dict" |
| 470 | deps = [ |
| 471 | ":chromeos", |
| 472 | "//base/test:test_support", |
| 473 | ] |
| 474 | } |
| 475 | |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 476 | proto_library("power_manager_proto") { |
| 477 | sources = [ |
Daniel Erat | 0f6c624 | 2018-03-09 18:24:14 | [diff] [blame] | 478 | "//third_party/cros_system_api/dbus/power_manager/backlight.proto", |
Daniel Erat | 05f8e5c | 2017-10-30 22:41:45 | [diff] [blame] | 479 | "//third_party/cros_system_api/dbus/power_manager/idle.proto", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 480 | "//third_party/cros_system_api/dbus/power_manager/input_event.proto", |
| 481 | "//third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto", |
| 482 | "//third_party/cros_system_api/dbus/power_manager/policy.proto", |
| 483 | "//third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto", |
| 484 | "//third_party/cros_system_api/dbus/power_manager/suspend.proto", |
derat | 08e333d | 2017-03-21 21:51:22 | [diff] [blame] | 485 | "//third_party/cros_system_api/dbus/power_manager/switch_states.proto", |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 486 | ] |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 487 | |
| 488 | proto_out_dir = "chromeos/dbus/power_manager" |
| 489 | } |
| 490 | |
Luigi Semenzato | a179f27 | 2018-09-07 21:06:41 | [diff] [blame] | 491 | proto_library("metrics_event_proto") { |
| 492 | sources = [ |
| 493 | "//third_party/cros_system_api/dbus/metrics_event/metrics_event.proto", |
| 494 | ] |
| 495 | |
| 496 | proto_out_dir = "chromeos/dbus/metrics_event" |
| 497 | } |
| 498 | |
drcrash | 7da3d8b | 2016-09-09 05:39:53 | [diff] [blame] | 499 | proto_library("attestation_proto") { |
| 500 | sources = [ |
| 501 | "dbus/proto/attestation.proto", |
| 502 | ] |
| 503 | |
Steven Bennetts | 149a15b | 2018-07-19 17:33:36 | [diff] [blame] | 504 | proto_out_dir = "chromeos/dbus/attestation" |
[email protected] | 743530f | 2014-06-12 19:38:50 | [diff] [blame] | 505 | } |
rsorokin | fc75ccee | 2017-02-10 13:16:43 | [diff] [blame] | 506 | |
| 507 | proto_library("authpolicy_proto") { |
| 508 | sources = [ |
rsorokin | 01014b7 | 2017-04-28 12:26:29 | [diff] [blame] | 509 | "//third_party/cros_system_api/dbus/authpolicy/active_directory_info.proto", |
rsorokin | fc75ccee | 2017-02-10 13:16:43 | [diff] [blame] | 510 | ] |
| 511 | |
| 512 | proto_out_dir = "chromeos/dbus/authpolicy" |
| 513 | } |
xiaoyinh | 58676cf | 2017-05-08 20:21:31 | [diff] [blame] | 514 | |
| 515 | proto_library("biod_proto") { |
| 516 | sources = [ |
| 517 | "//third_party/cros_system_api/dbus/biod/constants.proto", |
| 518 | "//third_party/cros_system_api/dbus/biod/messages.proto", |
| 519 | ] |
| 520 | |
| 521 | proto_out_dir = "chromeos/dbus/biod" |
| 522 | } |
lasoren | f933419f | 2017-05-15 19:37:45 | [diff] [blame] | 523 | |
Jeffrey Kardatzke | a3f86c4c | 2018-05-31 18:34:07 | [diff] [blame] | 524 | proto_library("cicerone_proto") { |
| 525 | sources = [ |
| 526 | "//third_party/cros_system_api/dbus/vm_cicerone/cicerone_service.proto", |
| 527 | ] |
| 528 | |
| 529 | proto_out_dir = "chromeos/dbus/cicerone" |
| 530 | } |
| 531 | |
Renee Wright | 0e1449f | 2018-03-28 00:21:40 | [diff] [blame] | 532 | proto_library("concierge_proto") { |
| 533 | sources = [ |
| 534 | "//third_party/cros_system_api/dbus/vm_concierge/service.proto", |
| 535 | ] |
| 536 | |
| 537 | proto_out_dir = "chromeos/dbus/concierge" |
| 538 | } |
Timothy Loh | 71d65441 | 2018-04-04 05:30:05 | [diff] [blame] | 539 | |
Steven Bennetts | 149a15b | 2018-07-19 17:33:36 | [diff] [blame] | 540 | proto_library("cryptohome_proto") { |
| 541 | sources = [ |
| 542 | "//third_party/cros_system_api/dbus/cryptohome/key.proto", |
| 543 | "//third_party/cros_system_api/dbus/cryptohome/rpc.proto", |
| 544 | ] |
| 545 | |
| 546 | proto_out_dir = "chromeos/dbus/cryptohome" |
| 547 | } |
| 548 | |
| 549 | proto_library("cryptohome_signkey_proto") { |
| 550 | sources = [ |
| 551 | "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", |
| 552 | ] |
| 553 | |
| 554 | proto_out_dir = "chromeos/dbus/cryptohome" |
| 555 | } |
| 556 | |
| 557 | proto_library("login_manager_proto") { |
| 558 | sources = [ |
| 559 | "//third_party/cros_system_api/dbus/login_manager/arc.proto", |
| 560 | "//third_party/cros_system_api/dbus/login_manager/policy_descriptor.proto", |
| 561 | ] |
| 562 | |
| 563 | proto_out_dir = "chromeos/dbus/login_manager" |
| 564 | } |
| 565 | |
| 566 | proto_library("media_perception_proto") { |
| 567 | sources = [ |
| 568 | "dbus/proto/media_perception.proto", |
| 569 | ] |
| 570 | |
| 571 | proto_out_dir = "chromeos/dbus/media_perception" |
| 572 | } |
| 573 | |
Denis Kuznetsov | 046a611c | 2018-09-27 11:23:57 | [diff] [blame] | 574 | proto_library("oobe_config_proto") { |
| 575 | sources = [ |
| 576 | "//third_party/cros_system_api/dbus/oobe_config/oobe_config.proto", |
| 577 | ] |
| 578 | |
| 579 | proto_out_dir = "chromeos/dbus/oobe_config" |
| 580 | } |
| 581 | |
Joel Hockey | b797d18 | 2018-09-01 10:48:53 | [diff] [blame] | 582 | proto_library("seneschal_proto") { |
| 583 | sources = [ |
| 584 | "//third_party/cros_system_api/dbus/seneschal/seneschal_service.proto", |
| 585 | ] |
| 586 | |
| 587 | proto_out_dir = "chromeos/dbus/seneschal" |
| 588 | } |
| 589 | |
Steven Bennetts | 149a15b | 2018-07-19 17:33:36 | [diff] [blame] | 590 | proto_library("smbprovider_proto") { |
| 591 | sources = [ |
| 592 | "//third_party/cros_system_api/dbus/smbprovider/directory_entry.proto", |
| 593 | ] |
| 594 | |
| 595 | proto_out_dir = "chromeos/dbus/smbprovider" |
| 596 | } |
| 597 | |
Timothy Loh | 71d65441 | 2018-04-04 05:30:05 | [diff] [blame] | 598 | proto_library("vm_applications_apps_proto") { |
| 599 | sources = [ |
| 600 | "//third_party/cros_system_api/dbus/vm_applications/apps.proto", |
| 601 | ] |
| 602 | |
| 603 | proto_out_dir = "chromeos/dbus/vm_applications" |
| 604 | } |
Steven Bennetts | 149a15b | 2018-07-19 17:33:36 | [diff] [blame] | 605 | |
| 606 | proto_library("account_manager_proto") { |
| 607 | sources = [ |
| 608 | "account_manager/tokens.proto", |
| 609 | ] |
| 610 | |
| 611 | proto_out_dir = "chromeos/account_manager" |
| 612 | } |