Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: ash/BUILD.gn

Issue 2400063003: Adds more BUILD.gns to ash (Closed)
Patch Set: not relative Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/common/BUILD.gn » ('j') | ash/common/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//ui/base/ui_features.gni") 8 import("//ui/base/ui_features.gni")
9 9
10 assert(use_aura) 10 assert(use_aura)
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 "//ui/keyboard:keyboard_with_content", 1006 "//ui/keyboard:keyboard_with_content",
1007 "//ui/resources", 1007 "//ui/resources",
1008 "//ui/strings", 1008 "//ui/strings",
1009 "//ui/views", 1009 "//ui/views",
1010 "//ui/views/controls/webview", 1010 "//ui/views/controls/webview",
1011 "//ui/web_dialogs", 1011 "//ui/web_dialogs",
1012 "//url", 1012 "//url",
1013 ] 1013 ]
1014 } 1014 }
1015 1015
1016 # Used to test ash with an aura backend.
1017 source_set("ash_with_aura_test_support") {
1018 testonly = true
1019 sources = [
1020 "test/ash_test_impl_aura.cc",
1021 "test/ash_test_impl_aura.h",
1022 ]
1023 deps = [
1024 ":ash",
1025 ":test_support_common",
1026 "//base",
1027 "//skia",
1028 "//ui/aura:test_support",
1029 "//ui/display",
1030 "//ui/wm",
1031 ]
1032 }
1033
1034 # Internal target consumed by |test_support_with_content| and
1035 # |test_support_without_content|. This target contains all the test support
1036 # files, with the exception of an implementation of AshTestEnvironment.
1037 # Consumers of ash should use one of |test_support_with_content| or
1038 # |test_support_without_content|.
1039 static_library("test_support_common") {
1040 testonly = true
1041 visibility = [ ":*" ]
1042 sources = [
1043 "common/test/ash_test.cc",
1044 "common/test/ash_test.h",
1045 "common/test/ash_test_impl.h",
1046 "common/test/material_design_controller_test_api.cc",
1047 "common/test/material_design_controller_test_api.h",
1048 "common/test/test_palette_delegate.cc",
1049 "common/test/test_palette_delegate.h",
1050 "common/test/test_session_state_delegate.cc",
1051 "common/test/test_session_state_delegate.h",
1052 "common/test/test_volume_control_delegate.cc",
1053 "common/test/test_volume_control_delegate.h",
1054 "shell/toplevel_window.cc",
1055 "shell/toplevel_window.h",
1056 "test/ash_md_test_base.cc",
1057 "test/ash_md_test_base.h",
1058 "test/ash_test_base.cc",
1059 "test/ash_test_base.h",
1060 "test/ash_test_environment.h",
1061 "test/ash_test_helper.cc",
1062 "test/ash_test_helper.h",
1063 "test/ash_test_views_delegate.cc",
1064 "test/ash_test_views_delegate.h",
1065 "test/child_modal_window.cc",
1066 "test/child_modal_window.h",
1067 "test/cursor_manager_test_api.cc",
1068 "test/cursor_manager_test_api.h",
1069 "test/display_manager_test_api.cc",
1070 "test/display_manager_test_api.h",
1071 "test/immersive_fullscreen_controller_test_api.cc",
1072 "test/immersive_fullscreen_controller_test_api.h",
1073 "test/mirror_window_test_api.cc",
1074 "test/mirror_window_test_api.h",
1075 "test/overflow_bubble_view_test_api.cc",
1076 "test/overflow_bubble_view_test_api.h",
1077 "test/shelf_button_pressed_metric_tracker_test_api.cc",
1078 "test/shelf_button_pressed_metric_tracker_test_api.h",
1079 "test/shelf_view_test_api.cc",
1080 "test/shelf_view_test_api.h",
1081 "test/shell_test_api.cc",
1082 "test/shell_test_api.h",
1083 "test/status_area_widget_test_helper.cc",
1084 "test/status_area_widget_test_helper.h",
1085 "test/task_switch_time_tracker_test_api.cc",
1086 "test/task_switch_time_tracker_test_api.h",
1087 "test/test_activation_delegate.cc",
1088 "test/test_activation_delegate.h",
1089 "test/test_keyboard_ui.cc",
1090 "test/test_keyboard_ui.h",
1091 "test/test_lock_state_controller_delegate.cc",
1092 "test/test_lock_state_controller_delegate.h",
1093 "test/test_overlay_delegate.cc",
1094 "test/test_overlay_delegate.h",
1095 "test/test_screenshot_delegate.cc",
1096 "test/test_screenshot_delegate.h",
1097 "test/test_session_state_animator.cc",
1098 "test/test_session_state_animator.h",
1099 "test/test_shelf_delegate.cc",
1100 "test/test_shelf_delegate.h",
1101 "test/test_shelf_item_delegate.cc",
1102 "test/test_shelf_item_delegate.h",
1103 "test/test_shell_delegate.cc",
1104 "test/test_shell_delegate.h",
1105 "test/test_suite.cc",
1106 "test/test_suite.h",
1107 "test/test_suite_init.h",
1108 "test/test_suite_init.mm",
1109 "test/test_system_tray_delegate.cc",
1110 "test/test_system_tray_delegate.h",
1111 "test/test_system_tray_item.cc",
1112 "test/test_system_tray_item.h",
1113 "test/test_wallpaper_delegate.cc",
1114 "test/test_wallpaper_delegate.h",
1115 "test/tray_cast_test_api.cc",
1116 "test/tray_cast_test_api.h",
1117 "test/ui_controls_factory_ash.cc",
1118 "test/ui_controls_factory_ash.h",
1119 "test/user_metrics_recorder_test_api.cc",
1120 "test/user_metrics_recorder_test_api.h",
1121 ]
1122 configs += [ "//build/config:precompiled_headers" ]
1123
1124 public_deps = [
1125 ":ash",
1126 ]
1127 deps = [
1128 "//ash/resources",
1129 "//base:i18n",
1130 "//base/test:test_support",
1131 "//components/signin/core/account_id",
1132 "//components/user_manager:user_manager",
1133 "//device/bluetooth",
1134 "//skia",
1135 "//testing/gtest",
1136 "//ui/accessibility",
1137 "//ui/app_list:test_support",
1138 "//ui/app_list/presenter",
1139 "//ui/aura",
1140 "//ui/aura:test_support",
1141 "//ui/base:test_support",
1142 "//ui/compositor:test_support",
1143 "//ui/display/types",
1144 "//ui/events:events_base",
1145 "//ui/events:test_support",
1146 "//ui/events/devices",
1147 "//ui/gl",
1148 "//ui/gl:test_support",
1149 "//ui/keyboard",
1150 "//ui/message_center",
1151 "//ui/views",
1152 "//ui/views:test_support",
1153 "//ui/wm",
1154 ]
1155
1156 if (is_win) {
1157 deps += [ "//ui/platform_window/win" ]
1158 }
1159
1160 if (use_x11) {
1161 deps += [ "//ui/gfx/x" ]
1162 }
1163
1164 if (is_chromeos) {
1165 deps += [
1166 "//chromeos",
1167 "//ui/display",
1168 ]
1169
1170 sources += [
1171 "laser/laser_pointer_controller_test_api.cc",
1172 "laser/laser_pointer_controller_test_api.h",
1173 "laser/laser_pointer_points_test_api.cc",
1174 "laser/laser_pointer_points_test_api.h",
1175 ]
1176 }
1177 }
1178
1179 static_library("test_support_without_content") {
1180 testonly = true
1181 sources = [
1182 "test/ash_test_environment_default.cc",
1183 ]
1184
1185 public_deps = [
1186 ":test_support_common",
1187 ]
1188
1189 deps = [
1190 "//base",
1191 "//base/test:test_support",
1192 "//skia",
1193 ]
1194 }
1195
1196 static_library("test_support_with_content") {
1197 testonly = true
1198 sources = [
1199 "test/ash_test_environment_content.cc",
1200 "test/ash_test_environment_content.h",
1201 "test/content/test_shell_content_state.cc",
1202 "test/content/test_shell_content_state.h",
1203 ]
1204 configs += [ "//build/config:precompiled_headers" ]
1205
1206 public_deps = [
1207 ":ash_with_content",
1208 ":test_support_common",
1209 "//content/public/browser",
1210 "//content/test:test_support",
1211 "//skia",
1212 ]
1213 }
1214
1215 static_library("interactive_ui_test_support") {
1216 testonly = true
1217 configs += [ "//build/config:precompiled_headers" ]
1218 public_deps = [
1219 ":ash",
1220 ":test_support_without_content",
1221 ]
1222 sources = [
1223 "test/ash_interactive_ui_test_base.cc",
1224 "test/ash_interactive_ui_test_base.h",
1225 ]
1226 deps = [
1227 ":ash",
1228 ":test_support_with_content",
1229 "//base",
1230 "//skia",
1231 "//testing/gtest",
1232 "//ui/aura",
1233 "//ui/base",
1234 "//ui/gl:test_support",
1235 ]
1236 }
1237
1238 static_library("ash_shell_lib") { 1016 static_library("ash_shell_lib") {
1239 testonly = true 1017 testonly = true
1240 sources = [ 1018 sources = [
1241 "../ui/views/test/test_views_delegate_aura.cc", 1019 "../ui/views/test/test_views_delegate_aura.cc",
1242 "shell/app_list.cc", 1020 "shell/app_list.cc",
1243 "shell/bubble.cc", 1021 "shell/bubble.cc",
1244 "shell/context_menu.cc", 1022 "shell/context_menu.cc",
1245 "shell/context_menu.h", 1023 "shell/context_menu.h",
1246 "shell/example_factory.h", 1024 "shell/example_factory.h",
1247 "shell/lock_view.cc", 1025 "shell/lock_view.cc",
1248 "shell/panel_window.cc", 1026 "shell/panel_window.cc",
1249 "shell/panel_window.h", 1027 "shell/panel_window.h",
1250 "shell/shell_delegate_impl.cc", 1028 "shell/shell_delegate_impl.cc",
1251 "shell/shell_delegate_impl.h", 1029 "shell/shell_delegate_impl.h",
1252 "shell/toplevel_window.cc", 1030 "shell/toplevel_window.cc",
1253 "shell/toplevel_window.h", 1031 "shell/toplevel_window.h",
1254 "shell/widgets.cc", 1032 "shell/widgets.cc",
1255 "shell/window_type_launcher.cc", 1033 "shell/window_type_launcher.cc",
1256 "shell/window_type_launcher.h", 1034 "shell/window_type_launcher.h",
1257 "shell/window_watcher.cc", 1035 "shell/window_watcher.cc",
1258 "shell/window_watcher.h", 1036 "shell/window_watcher.h",
1259 "shell/window_watcher_shelf_item_delegate.cc", 1037 "shell/window_watcher_shelf_item_delegate.cc",
1260 "shell/window_watcher_shelf_item_delegate.h", 1038 "shell/window_watcher_shelf_item_delegate.h",
1261 ] 1039 ]
1262 1040
1263 deps = [ 1041 deps = [
1264 ":ash", 1042 ":ash",
1265 ":ash_with_content", 1043 ":ash_with_content",
1266 ":test_support_without_content",
1267 "//ash/common/strings", 1044 "//ash/common/strings",
1268 "//ash/public/cpp", 1045 "//ash/public/cpp",
1269 "//ash/resources", 1046 "//ash/resources",
1047 "//ash/test:test_support_without_content",
1270 "//base", 1048 "//base",
1271 "//base:i18n", 1049 "//base:i18n",
1272 "//components/user_manager", 1050 "//components/user_manager",
1273 "//net", 1051 "//net",
1274 "//skia", 1052 "//skia",
1275 "//third_party/icu", 1053 "//third_party/icu",
1276 "//ui/app_list/presenter", 1054 "//ui/app_list/presenter",
1277 "//ui/aura", 1055 "//ui/aura",
1278 "//ui/base", 1056 "//ui/base",
1279 "//ui/base/ime", 1057 "//ui/base/ime",
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 "content/keyboard_overlay/keyboard_overlay_view_unittest.cc", 1119 "content/keyboard_overlay/keyboard_overlay_view_unittest.cc",
1342 "test/ash_unittests.cc", 1120 "test/ash_unittests.cc",
1343 ] 1121 ]
1344 configs += [ 1122 configs += [
1345 "//build/config:precompiled_headers", 1123 "//build/config:precompiled_headers",
1346 "//build/config/compiler:no_size_t_to_int_warning", 1124 "//build/config/compiler:no_size_t_to_int_warning",
1347 ] 1125 ]
1348 1126
1349 deps = [ 1127 deps = [
1350 ":ash", 1128 ":ash",
1351 ":ash_with_aura_test_support",
1352 ":ash_with_content", 1129 ":ash_with_content",
1353 ":test_support_with_content",
1354 "//ash/public/cpp", 1130 "//ash/public/cpp",
1131 "//ash/test:ash_with_aura_test_support",
1132 "//ash/test:test_support_with_content",
1355 "//base", 1133 "//base",
1356 "//base/test:test_support", 1134 "//base/test:test_support",
1357 "//components/signin/core/account_id", 1135 "//components/signin/core/account_id",
1358 "//components/user_manager", 1136 "//components/user_manager",
1359 "//content/public/browser", 1137 "//content/public/browser",
1360 "//content/test:test_support", 1138 "//content/test:test_support",
1361 "//mojo/edk/system", 1139 "//mojo/edk/system",
1362 "//skia", 1140 "//skia",
1363 "//testing/gtest", 1141 "//testing/gtest",
1364 "//ui/aura", 1142 "//ui/aura",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 "common/frame/default_header_painter_unittest.cc", 1188 "common/frame/default_header_painter_unittest.cc",
1411 "common/material_design/material_design_controller_unittest.cc", 1189 "common/material_design/material_design_controller_unittest.cc",
1412 "common/metrics/pointer_metrics_recorder_unittest.cc", 1190 "common/metrics/pointer_metrics_recorder_unittest.cc",
1413 "common/popup_message_unittest.cc", 1191 "common/popup_message_unittest.cc",
1414 "common/shelf/shelf_background_animator_unittest.cc", 1192 "common/shelf/shelf_background_animator_unittest.cc",
1415 "common/shelf/shelf_button_pressed_metric_tracker_unittest.cc", 1193 "common/shelf/shelf_button_pressed_metric_tracker_unittest.cc",
1416 "common/shelf/shelf_locking_manager_unittest.cc", 1194 "common/shelf/shelf_locking_manager_unittest.cc",
1417 "common/shelf/shelf_model_unittest.cc", 1195 "common/shelf/shelf_model_unittest.cc",
1418 "common/shelf/shelf_tooltip_manager_unittest.cc", 1196 "common/shelf/shelf_tooltip_manager_unittest.cc",
1419 "common/shelf/shelf_window_watcher_unittest.cc", 1197 "common/shelf/shelf_window_watcher_unittest.cc",
1420 "common/system/chromeos/brightness/tray_brightness_unittest.cc",
1421 "common/system/chromeos/ime_menu/ime_menu_tray_unittest.cc", 1198 "common/system/chromeos/ime_menu/ime_menu_tray_unittest.cc",
1422 "common/system/chromeos/media_security/multi_profile_media_tray_item_unittes t.cc", 1199 "common/system/chromeos/media_security/multi_profile_media_tray_item_unittes t.cc",
1423 "common/system/chromeos/palette/mock_palette_tool_delegate.cc", 1200 "common/system/chromeos/palette/mock_palette_tool_delegate.cc",
1424 "common/system/chromeos/palette/mock_palette_tool_delegate.h", 1201 "common/system/chromeos/palette/mock_palette_tool_delegate.h",
1425 "common/system/chromeos/palette/palette_tool_manager_unittest.cc", 1202 "common/system/chromeos/palette/palette_tool_manager_unittest.cc",
1426 "common/system/chromeos/palette/tools/create_note_unittest.cc", 1203 "common/system/chromeos/palette/tools/create_note_unittest.cc",
1427 "common/system/chromeos/palette/tools/screenshot_unittest.cc", 1204 "common/system/chromeos/palette/tools/screenshot_unittest.cc",
1428 "common/system/chromeos/power/power_status_unittest.cc", 1205 "common/system/chromeos/power/power_status_unittest.cc",
1429 "common/system/chromeos/power/power_status_view_unittest.cc", 1206 "common/system/chromeos/power/power_status_view_unittest.cc",
1430 "common/system/chromeos/power/tray_power_unittest.cc", 1207 "common/system/chromeos/power/tray_power_unittest.cc",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 "wm/window_animations_unittest.cc", 1310 "wm/window_animations_unittest.cc",
1534 "wm/window_cycle_controller_unittest.cc", 1311 "wm/window_cycle_controller_unittest.cc",
1535 "wm/window_manager_unittest.cc", 1312 "wm/window_manager_unittest.cc",
1536 "wm/window_modality_controller_unittest.cc", 1313 "wm/window_modality_controller_unittest.cc",
1537 "wm/window_positioner_unittest.cc", 1314 "wm/window_positioner_unittest.cc",
1538 "wm/window_state_unittest.cc", 1315 "wm/window_state_unittest.cc",
1539 "wm/window_util_unittest.cc", 1316 "wm/window_util_unittest.cc",
1540 "wm/workspace/magnetism_matcher_unittest.cc", 1317 "wm/workspace/magnetism_matcher_unittest.cc",
1541 "wm/workspace/multi_window_resize_controller_unittest.cc", 1318 "wm/workspace/multi_window_resize_controller_unittest.cc",
1542 "wm/workspace/workspace_event_handler_unittest.cc", 1319 "wm/workspace/workspace_event_handler_unittest.cc",
1543 "wm/workspace/workspace_layout_manager_unittest.cc",
1544 "wm/workspace/workspace_window_resizer_unittest.cc", 1320 "wm/workspace/workspace_window_resizer_unittest.cc",
1545 "wm/workspace_controller_test_helper.cc", 1321 "wm/workspace_controller_test_helper.cc",
1546 "wm/workspace_controller_test_helper.h", 1322 "wm/workspace_controller_test_helper.h",
1547 "wm/workspace_controller_unittest.cc", 1323 "wm/workspace_controller_unittest.cc",
1548 ] 1324 ]
1549 configs += [ 1325 configs += [
1550 "//build/config:precompiled_headers", 1326 "//build/config:precompiled_headers",
1551 "//build/config/compiler:no_size_t_to_int_warning", 1327 "//build/config/compiler:no_size_t_to_int_warning",
1552 ] 1328 ]
1553 1329
1554 deps = [ 1330 deps = [
1555 ":ash", 1331 ":ash",
1556 ":ash_with_aura_test_support",
1557 ":test_support_without_content",
1558 "//ash/autoclick/common:autoclick", 1332 "//ash/autoclick/common:autoclick",
1333 "//ash/common:unittests",
msw 2016/10/07 22:02:24 q: sanity check (my memory is fuzzy); this is suff
sky 2016/10/07 22:23:14 Indeed it is.
1559 "//ash/common/strings", 1334 "//ash/common/strings",
1335 "//ash/common/test:test_support",
1560 "//ash/public/cpp", 1336 "//ash/public/cpp",
1561 "//ash/resources", 1337 "//ash/resources",
1338 "//ash/test:ash_with_aura_test_support",
1339 "//ash/test:test_support_without_content",
1562 "//ash/touch_hud", 1340 "//ash/touch_hud",
1563 "//base", 1341 "//base",
1564 "//base/test:test_support", 1342 "//base/test:test_support",
1565 "//components/signin/core/account_id", 1343 "//components/signin/core/account_id",
1566 "//components/user_manager", 1344 "//components/user_manager",
1567 "//mojo/edk/system", 1345 "//mojo/edk/system",
1568 "//skia", 1346 "//skia",
1569 "//testing/gmock", 1347 "//testing/gmock",
1570 "//testing/gtest", 1348 "//testing/gtest",
1571 "//third_party/icu", 1349 "//third_party/icu",
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 if (is_win) { 1466 if (is_win) {
1689 configs -= [ "//build/config/win:console" ] 1467 configs -= [ "//build/config/win:console" ]
1690 configs += [ "//build/config/win:windowed" ] 1468 configs += [ "//build/config/win:windowed" ]
1691 deps += [ "//sandbox" ] 1469 deps += [ "//sandbox" ]
1692 } 1470 }
1693 1471
1694 if (is_chromeos) { 1472 if (is_chromeos) {
1695 deps += [ "//device/bluetooth" ] 1473 deps += [ "//device/bluetooth" ]
1696 } 1474 }
1697 } 1475 }
OLDNEW
« no previous file with comments | « no previous file | ash/common/BUILD.gn » ('j') | ash/common/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698