BUILD.gn 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. # Copyright 2016 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. import("//build/config/chromeos/ui_mode.gni")
  5. import("//mojo/public/tools/bindings/mojom.gni")
  6. assert(is_chromeos_ash)
  7. # C++ headers and sources that can be used outside ash.
  8. component("cpp") {
  9. sources = [
  10. "accelerator_configuration.cc",
  11. "accelerator_configuration.h",
  12. "accelerators.cc",
  13. "accelerators.h",
  14. "accessibility_controller.cc",
  15. "accessibility_controller.h",
  16. "accessibility_controller_client.h",
  17. "accessibility_controller_enums.h",
  18. "accessibility_event_rewriter_delegate.h",
  19. "accessibility_focus_ring_controller.cc",
  20. "accessibility_focus_ring_controller.h",
  21. "accessibility_focus_ring_info.cc",
  22. "accessibility_focus_ring_info.h",
  23. "ambient/ambient_backend_controller.cc",
  24. "ambient/ambient_backend_controller.h",
  25. "ambient/ambient_client.cc",
  26. "ambient/ambient_client.h",
  27. "ambient/ambient_metrics.cc",
  28. "ambient/ambient_metrics.h",
  29. "ambient/ambient_prefs.cc",
  30. "ambient/ambient_prefs.h",
  31. "ambient/ambient_ui_model.cc",
  32. "ambient/ambient_ui_model.h",
  33. "ambient/common/ambient_settings.cc",
  34. "ambient/common/ambient_settings.h",
  35. "ambient/fake_ambient_backend_controller_impl.cc",
  36. "ambient/fake_ambient_backend_controller_impl.h",
  37. "android_intent_helper.cc",
  38. "android_intent_helper.h",
  39. "app_list/app_list_client.h",
  40. "app_list/app_list_color_provider.cc",
  41. "app_list/app_list_color_provider.h",
  42. "app_list/app_list_config.cc",
  43. "app_list/app_list_config.h",
  44. "app_list/app_list_config_provider.cc",
  45. "app_list/app_list_config_provider.h",
  46. "app_list/app_list_controller.cc",
  47. "app_list/app_list_controller.h",
  48. "app_list/app_list_controller_observer.h",
  49. "app_list/app_list_features.cc",
  50. "app_list/app_list_features.h",
  51. "app_list/app_list_metrics.cc",
  52. "app_list/app_list_metrics.h",
  53. "app_list/app_list_model_delegate.h",
  54. "app_list/app_list_notifier.h",
  55. "app_list/app_list_switches.cc",
  56. "app_list/app_list_switches.h",
  57. "app_list/app_list_types.cc",
  58. "app_list/app_list_types.h",
  59. "app_list/internal_app_id_constants.h",
  60. "app_menu_constants.h",
  61. "app_types_util.cc",
  62. "app_types_util.h",
  63. "arc_app_id_provider.cc",
  64. "arc_app_id_provider.h",
  65. "arc_resize_lock_type.h",
  66. "ash_constants.h",
  67. "ash_public_export.h",
  68. "ash_typography.cc",
  69. "ash_typography.h",
  70. "ash_view_ids.h",
  71. "ash_web_view.cc",
  72. "ash_web_view.h",
  73. "ash_web_view_factory.cc",
  74. "ash_web_view_factory.h",
  75. "assistant/assistant_interface_binder.cc",
  76. "assistant/assistant_interface_binder.h",
  77. "assistant/assistant_setup.cc",
  78. "assistant/assistant_setup.h",
  79. "assistant/assistant_state.cc",
  80. "assistant/assistant_state.h",
  81. "assistant/assistant_state_base.cc",
  82. "assistant/assistant_state_base.h",
  83. "assistant/controller/assistant_alarm_timer_controller.cc",
  84. "assistant/controller/assistant_alarm_timer_controller.h",
  85. "assistant/controller/assistant_controller.cc",
  86. "assistant/controller/assistant_controller.h",
  87. "assistant/controller/assistant_controller_observer.h",
  88. "assistant/controller/assistant_interaction_controller.cc",
  89. "assistant/controller/assistant_interaction_controller.h",
  90. "assistant/controller/assistant_notification_controller.cc",
  91. "assistant/controller/assistant_notification_controller.h",
  92. "assistant/controller/assistant_screen_context_controller.cc",
  93. "assistant/controller/assistant_screen_context_controller.h",
  94. "assistant/controller/assistant_suggestions_controller.cc",
  95. "assistant/controller/assistant_suggestions_controller.h",
  96. "assistant/controller/assistant_ui_controller.cc",
  97. "assistant/controller/assistant_ui_controller.h",
  98. "audio_config_service.cc",
  99. "audio_config_service.h",
  100. "back_gesture_contextual_nudge_controller.h",
  101. "back_gesture_contextual_nudge_delegate.h",
  102. "bluetooth_config_service.cc",
  103. "bluetooth_config_service.h",
  104. "capture_mode/capture_mode_delegate.h",
  105. "capture_mode/recording_overlay_view.h",
  106. "cast_config_controller.cc",
  107. "cast_config_controller.h",
  108. "child_accounts/parent_access_controller.cc",
  109. "child_accounts/parent_access_controller.h",
  110. "clipboard_history_controller.cc",
  111. "clipboard_history_controller.h",
  112. "clipboard_image_model_factory.cc",
  113. "clipboard_image_model_factory.h",
  114. "default_user_image.cc",
  115. "default_user_image.h",
  116. "desk_template.cc",
  117. "desk_template.h",
  118. "desks_templates_delegate.h",
  119. "esim_manager.cc",
  120. "esim_manager.h",
  121. "feature_discovery_duration_reporter.cc",
  122. "feature_discovery_duration_reporter.h",
  123. "feature_discovery_metric_util.cc",
  124. "feature_discovery_metric_util.h",
  125. "fps_counter.cc",
  126. "fps_counter.h",
  127. "fwupd_download_client.cc",
  128. "fwupd_download_client.h",
  129. "gesture_action_type.h",
  130. "holding_space/holding_space_client.h",
  131. "holding_space/holding_space_constants.h",
  132. "holding_space/holding_space_controller.cc",
  133. "holding_space/holding_space_controller.h",
  134. "holding_space/holding_space_controller_observer.h",
  135. "holding_space/holding_space_image.cc",
  136. "holding_space/holding_space_image.h",
  137. "holding_space/holding_space_item.cc",
  138. "holding_space/holding_space_item.h",
  139. "holding_space/holding_space_metrics.cc",
  140. "holding_space/holding_space_metrics.h",
  141. "holding_space/holding_space_model.cc",
  142. "holding_space/holding_space_model.h",
  143. "holding_space/holding_space_model_observer.h",
  144. "holding_space/holding_space_prefs.cc",
  145. "holding_space/holding_space_prefs.h",
  146. "holding_space/holding_space_progress.cc",
  147. "holding_space/holding_space_progress.h",
  148. "holding_space/holding_space_util.cc",
  149. "holding_space/holding_space_util.h",
  150. "image_downloader.cc",
  151. "image_downloader.h",
  152. "image_util.cc",
  153. "image_util.h",
  154. "ime_controller.cc",
  155. "ime_controller.h",
  156. "ime_controller_client.h",
  157. "ime_info.cc",
  158. "ime_info.h",
  159. "in_session_auth_dialog_client.h",
  160. "in_session_auth_dialog_controller.h",
  161. "in_session_auth_token_provider.h",
  162. "keyboard/arc/arc_input_method_bounds_tracker.cc",
  163. "keyboard/arc/arc_input_method_bounds_tracker.h",
  164. "keyboard/keyboard_config.h",
  165. "keyboard/keyboard_controller.cc",
  166. "keyboard/keyboard_controller.h",
  167. "keyboard/keyboard_controller_observer.h",
  168. "keyboard/keyboard_switches.cc",
  169. "keyboard/keyboard_switches.h",
  170. "keyboard/keyboard_types.h",
  171. "keyboard_shortcut_item.cc",
  172. "keyboard_shortcut_item.h",
  173. "keyboard_shortcut_viewer.h",
  174. "kiosk_app_menu.cc",
  175. "kiosk_app_menu.h",
  176. "locale_update_controller.cc",
  177. "locale_update_controller.h",
  178. "lock_screen_widget_factory.cc",
  179. "lock_screen_widget_factory.h",
  180. "login_accelerators.cc",
  181. "login_accelerators.h",
  182. "login_screen.cc",
  183. "login_screen.h",
  184. "login_screen_client.h",
  185. "login_screen_model.cc",
  186. "login_screen_model.h",
  187. "login_screen_test_api.h",
  188. "login_types.cc",
  189. "login_types.h",
  190. "media_client.h",
  191. "media_controller.cc",
  192. "media_controller.h",
  193. "message_center/arc_notification_constants.h",
  194. "message_center/arc_notification_manager_base.cc",
  195. "message_center/arc_notification_manager_base.h",
  196. "message_center/arc_notification_manager_delegate.h",
  197. "message_center/arc_notifications_host_initializer.cc",
  198. "message_center/arc_notifications_host_initializer.h",
  199. "message_center_ash.cc",
  200. "message_center_ash.h",
  201. "metrics_util.cc",
  202. "metrics_util.h",
  203. "microphone_mute_notification_delegate.cc",
  204. "microphone_mute_notification_delegate.h",
  205. "nearby_share_controller.h",
  206. "nearby_share_delegate.h",
  207. "network_config_service.cc",
  208. "network_config_service.h",
  209. "network_icon_image_source.cc",
  210. "network_icon_image_source.h",
  211. "new_window_delegate.cc",
  212. "new_window_delegate.h",
  213. "night_light_controller.cc",
  214. "night_light_controller.h",
  215. "note_taking_client.cc",
  216. "note_taking_client.h",
  217. "notification_utils.cc",
  218. "notification_utils.h",
  219. "notifier_metadata.cc",
  220. "notifier_metadata.h",
  221. "notifier_settings_controller.cc",
  222. "notifier_settings_controller.h",
  223. "notifier_settings_observer.h",
  224. "pagination/pagination_controller.cc",
  225. "pagination/pagination_controller.h",
  226. "pagination/pagination_model.cc",
  227. "pagination/pagination_model.h",
  228. "pagination/pagination_model_observer.h",
  229. "personalization_app/enterprise_policy_delegate.h",
  230. "personalization_app/user_display_info.cc",
  231. "personalization_app/user_display_info.h",
  232. "power_utils.cc",
  233. "power_utils.h",
  234. "presentation_time_recorder.cc",
  235. "presentation_time_recorder.h",
  236. "privacy_screen_dlp_helper.cc",
  237. "privacy_screen_dlp_helper.h",
  238. "projector/annotator_tool.cc",
  239. "projector/annotator_tool.h",
  240. "projector/projector_annotator_controller.cc",
  241. "projector/projector_annotator_controller.h",
  242. "projector/projector_client.cc",
  243. "projector/projector_client.h",
  244. "projector/projector_controller.cc",
  245. "projector/projector_controller.h",
  246. "projector/projector_new_screencast_precondition.cc",
  247. "projector/projector_new_screencast_precondition.h",
  248. "projector/projector_session.cc",
  249. "projector/projector_session.h",
  250. "reauth_reason.h",
  251. "resize_shadow_type.h",
  252. "rounded_corner_utils.cc",
  253. "rounded_corner_utils.h",
  254. "rounded_image_view.cc",
  255. "rounded_image_view.h",
  256. "scale_utility.cc",
  257. "scale_utility.h",
  258. "schedule_enums.h",
  259. "scoped_clipboard_history_pause.h",
  260. "scoped_guest_button_blocker.h",
  261. "scoped_singleton_resetter_for_test.h",
  262. "screen_backlight.cc",
  263. "screen_backlight.h",
  264. "screen_backlight_observer.h",
  265. "screen_backlight_type.h",
  266. "select_to_speak_event_handler_delegate.h",
  267. "session/session_activation_observer.h",
  268. "session/session_controller.cc",
  269. "session/session_controller.h",
  270. "session/session_controller_client.h",
  271. "session/session_observer.cc",
  272. "session/session_observer.h",
  273. "session/session_types.cc",
  274. "session/session_types.h",
  275. "session/user_info.cc",
  276. "session/user_info.h",
  277. "shelf_item.cc",
  278. "shelf_item.h",
  279. "shelf_item_delegate.cc",
  280. "shelf_item_delegate.h",
  281. "shelf_model.cc",
  282. "shelf_model.h",
  283. "shelf_model_observer.h",
  284. "shelf_prefs.cc",
  285. "shelf_prefs.h",
  286. "shelf_types.cc",
  287. "shelf_types.h",
  288. "shelf_ui_info.cc",
  289. "shelf_ui_info.h",
  290. "shell_window_ids.cc",
  291. "shell_window_ids.h",
  292. "shutdown_controller.cc",
  293. "shutdown_controller.h",
  294. "smartlock_state.cc",
  295. "smartlock_state.h",
  296. "style/color_mode_observer.h",
  297. "style/color_provider.cc",
  298. "style/color_provider.h",
  299. "style/dark_light_mode_controller.cc",
  300. "style/dark_light_mode_controller.h",
  301. "stylus_utils.cc",
  302. "stylus_utils.h",
  303. "system/power/power_button_controller_base.cc",
  304. "system/power/power_button_controller_base.h",
  305. "system/toast_data.cc",
  306. "system/toast_data.h",
  307. "system/toast_manager.cc",
  308. "system/toast_manager.h",
  309. "system_tray.cc",
  310. "system_tray.h",
  311. "system_tray_client.h",
  312. "system_tray_observer.h",
  313. "tab_cluster/clusterer.cc",
  314. "tab_cluster/clusterer.h",
  315. "tab_cluster/correlation_clusterer.cc",
  316. "tab_cluster/correlation_clusterer.h",
  317. "tab_cluster/tab_cluster_ui_controller.cc",
  318. "tab_cluster/tab_cluster_ui_controller.h",
  319. "tab_cluster/tab_cluster_ui_item.cc",
  320. "tab_cluster/tab_cluster_ui_item.h",
  321. "tab_cluster/undirected_graph.cc",
  322. "tab_cluster/undirected_graph.h",
  323. "tablet_mode.cc",
  324. "tablet_mode.h",
  325. "tablet_mode_observer.h",
  326. "update_types.h",
  327. "view_shadow.cc",
  328. "view_shadow.h",
  329. "views_text_services_context_menu_impl.cc",
  330. "views_text_services_context_menu_impl.h",
  331. "vm_camera_mic_constants.cc",
  332. "vm_camera_mic_constants.h",
  333. "wallpaper/google_photos_wallpaper_params.cc",
  334. "wallpaper/google_photos_wallpaper_params.h",
  335. "wallpaper/online_wallpaper_params.cc",
  336. "wallpaper/online_wallpaper_params.h",
  337. "wallpaper/online_wallpaper_variant.cc",
  338. "wallpaper/online_wallpaper_variant.h",
  339. "wallpaper/wallpaper_controller.cc",
  340. "wallpaper/wallpaper_controller.h",
  341. "wallpaper/wallpaper_controller_client.h",
  342. "wallpaper/wallpaper_controller_observer.cc",
  343. "wallpaper/wallpaper_controller_observer.h",
  344. "wallpaper/wallpaper_info.cc",
  345. "wallpaper/wallpaper_info.h",
  346. "wallpaper/wallpaper_types.h",
  347. "webauthn_dialog_controller.cc",
  348. "webauthn_dialog_controller.h",
  349. "window_animation_types.h",
  350. "window_backdrop.cc",
  351. "window_backdrop.h",
  352. "window_properties.cc",
  353. "window_properties.h",
  354. ]
  355. defines = [ "ASH_PUBLIC_IMPLEMENTATION" ]
  356. assert_no_deps = [
  357. "//ash/components/arc",
  358. "//ash/public/cpp/external_arc",
  359. "//components/arc",
  360. "//components/exo",
  361. "//components/soda",
  362. ]
  363. deps = [
  364. "//ash/constants",
  365. "//ash/public/cpp/ambient/proto",
  366. "//ash/resources/vector_icons",
  367. "//ash/services/cellular_setup:in_process_esim_manager",
  368. "//ash/strings",
  369. "//base",
  370. "//chromeos/ash/components/audio",
  371. "//chromeos/ash/components/audio:in_process_audio_config",
  372. "//chromeos/ash/services/assistant/public/cpp",
  373. "//chromeos/dbus/power:power_manager_proto",
  374. "//chromeos/services/bluetooth_config:in_process_bluetooth_config",
  375. "//chromeos/services/network_config:in_process_instance",
  376. "//chromeos/strings:strings_grit",
  377. "//chromeos/ui/base",
  378. "//chromeos/ui/frame",
  379. "//chromeos/ui/vector_icons",
  380. "//components/access_code_cast/common",
  381. "//components/language/core/browser:browser",
  382. "//components/pref_registry",
  383. "//components/prefs",
  384. "//components/sync/model",
  385. "//components/user_manager",
  386. "//mojo/public/cpp/bindings",
  387. "//net/traffic_annotation",
  388. "//services/data_decoder/public/cpp",
  389. "//services/network/public/cpp:cpp",
  390. "//skia/public/mojom",
  391. "//ui/aura",
  392. "//ui/chromeos/strings",
  393. "//ui/compositor_extra",
  394. "//ui/display",
  395. "//ui/events/devices",
  396. "//ui/message_center/public/cpp",
  397. "//ui/strings:ui_strings_grit",
  398. "//ui/views",
  399. "//ui/wm",
  400. "//ui/wm/public",
  401. ]
  402. public_deps = [
  403. "//ash/components/arc/mojom:notifications",
  404. "//ash/components/login/auth",
  405. "//ash/public/mojom",
  406. "//ash/services/cellular_setup/public/mojom",
  407. "//ash/webui/personalization_app/proto",
  408. "//base",
  409. "//chromeos/ash/components/audio/public/mojom",
  410. "//chromeos/ash/services/assistant/public/mojom",
  411. "//chromeos/components/security_token_pin",
  412. "//chromeos/crosapi/mojom",
  413. "//chromeos/services/bluetooth_config/public/mojom",
  414. "//chromeos/services/network_config/public/mojom",
  415. "//components/app_restore",
  416. "//components/session_manager:base",
  417. "//components/user_manager",
  418. "//components/version_info:channel",
  419. "//ui/base/ime/ash:ime_types",
  420. "//ui/gfx",
  421. ]
  422. output_name = "ash_public_cpp"
  423. }
  424. source_set("unit_tests") {
  425. testonly = true
  426. sources = [
  427. "ambient/ambient_metrics_unittest.cc",
  428. "android_intent_helper_unittest.cc",
  429. "app_list/app_list_config_provider_unittest.cc",
  430. "holding_space/holding_space_image_unittest.cc",
  431. "holding_space/holding_space_item_unittest.cc",
  432. "holding_space/holding_space_model_unittest.cc",
  433. "holding_space/holding_space_progress_unittest.cc",
  434. "metrics_util_unittest.cc",
  435. "pagination/pagination_model_unittest.cc",
  436. "power_utils_unittest.cc",
  437. "shelf_model_unittest.cc",
  438. "system/toast_data_unittest.cc",
  439. "tab_cluster/clusterer_unittest.cc",
  440. "tab_cluster/correlation_clusterer_unittest.cc",
  441. "tab_cluster/undirected_graph_unittest.cc",
  442. "view_shadow_unittest.cc",
  443. ]
  444. deps = [
  445. ":cpp",
  446. ":test_support",
  447. "//base",
  448. "//base/test:test_support",
  449. "//chromeos/ui/vector_icons",
  450. "//mojo/public/cpp/bindings",
  451. "//testing/gtest",
  452. "//ui/aura:test_support",
  453. "//ui/chromeos/styles:cros_styles_views",
  454. "//ui/compositor_extra",
  455. "//ui/gfx:test_support",
  456. "//ui/views",
  457. "//ui/views:test_support",
  458. ]
  459. }
  460. source_set("test_support") {
  461. testonly = true
  462. sources = [
  463. "test/mock_in_session_auth_token_provider.cc",
  464. "test/mock_in_session_auth_token_provider.h",
  465. "test/mock_projector_client.cc",
  466. "test/mock_projector_client.h",
  467. "test/mock_projector_controller.cc",
  468. "test/mock_projector_controller.h",
  469. "test/test_app_list_color_provider.cc",
  470. "test/test_app_list_color_provider.h",
  471. "test/test_desks_templates_delegate.cc",
  472. "test/test_desks_templates_delegate.h",
  473. "test/test_image_downloader.cc",
  474. "test/test_image_downloader.h",
  475. "test/test_keyboard_controller_observer.cc",
  476. "test/test_keyboard_controller_observer.h",
  477. "test/test_nearby_share_delegate.cc",
  478. "test/test_nearby_share_delegate.h",
  479. "test/test_new_window_delegate.cc",
  480. "test/test_new_window_delegate.h",
  481. "test/test_shelf_item_delegate.cc",
  482. "test/test_shelf_item_delegate.h",
  483. "test/test_system_tray_client.cc",
  484. "test/test_system_tray_client.h",
  485. ]
  486. deps = [
  487. ":cpp",
  488. "//base",
  489. "//components/access_code_cast/common",
  490. "//services/device/public/cpp:test_support",
  491. "//services/network/public/cpp:cpp",
  492. "//testing/gmock",
  493. "//ui/aura",
  494. "//ui/aura:test_support",
  495. "//ui/gfx",
  496. "//ui/gfx:test_support",
  497. "//ui/views",
  498. ]
  499. }