| OLD | NEW |
| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 "wm/stylus_metrics_recorder.h", | 145 "wm/stylus_metrics_recorder.h", |
| 146 ] | 146 ] |
| 147 } | 147 } |
| 148 | 148 |
| 149 if (!use_ozone) { | 149 if (!use_ozone) { |
| 150 sources -= [ | 150 sources -= [ |
| 151 "wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc", | 151 "wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc", |
| 152 "wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h", | 152 "wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h", |
| 153 ] | 153 ] |
| 154 } | 154 } |
| 155 |
| 156 # Usage of content should be in ash_content_unittests. |
| 157 assert_no_deps = [ "//content/*" ] |
| 155 } | 158 } |
| 156 | 159 |
| 157 component("ash_with_content") { | 160 component("ash_with_content") { |
| 158 sources = gypi_values.ash_with_content_sources | 161 sources = gypi_values.ash_with_content_sources |
| 159 | 162 |
| 160 defines = [ "ASH_WITH_CONTENT_IMPLEMENTATION" ] | 163 defines = [ "ASH_WITH_CONTENT_IMPLEMENTATION" ] |
| 161 | 164 |
| 162 public_deps = [ | 165 public_deps = [ |
| 163 ":ash", | 166 ":ash", |
| 164 ] | 167 ] |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 ] | 254 ] |
| 252 | 255 |
| 253 public_deps = [ | 256 public_deps = [ |
| 254 ":test_support_common", | 257 ":test_support_common", |
| 255 ] | 258 ] |
| 256 | 259 |
| 257 deps = [ | 260 deps = [ |
| 258 "//base", | 261 "//base", |
| 259 "//base/test:test_support", | 262 "//base/test:test_support", |
| 260 "//skia", | 263 "//skia", |
| 264 "//ui/base", |
| 261 ] | 265 ] |
| 262 } | 266 } |
| 263 | 267 |
| 264 static_library("test_support_with_content") { | 268 static_library("test_support_with_content") { |
| 265 testonly = true | 269 testonly = true |
| 266 sources = gypi_values.ash_test_support_with_content_sources | 270 sources = gypi_values.ash_test_support_with_content_sources |
| 267 sources += [ | 271 sources += [ |
| 268 "test/ash_test_environment_content.cc", | 272 "test/ash_test_environment_content.cc", |
| 269 "test/ash_test_environment_content.h", | 273 "test/ash_test_environment_content.h", |
| 270 ] | 274 ] |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 "//ui/message_center", | 404 "//ui/message_center", |
| 401 "//ui/message_center:test_support", | 405 "//ui/message_center:test_support", |
| 402 "//ui/views", | 406 "//ui/views", |
| 403 "//ui/views:test_support", | 407 "//ui/views:test_support", |
| 404 "//ui/views/controls/webview:test_support", | 408 "//ui/views/controls/webview:test_support", |
| 405 "//ui/web_dialogs:test_support", | 409 "//ui/web_dialogs:test_support", |
| 406 ] | 410 ] |
| 407 | 411 |
| 408 data_deps = [ | 412 data_deps = [ |
| 409 "//ash/common/strings:ash_test_strings", | 413 "//ash/common/strings:ash_test_strings", |
| 410 "//ash/resources:ash_test_resources_100_percent", | 414 "//ash/resources:ash_test_resources_content_100_percent", |
| 411 "//ash/resources:ash_test_resources_200_percent", | 415 "//ash/resources:ash_test_resources_200_percent", |
| 412 ] | 416 ] |
| 413 | 417 |
| 414 if (is_chromeos) { | 418 if (is_chromeos) { |
| 415 deps += [ | 419 deps += [ |
| 416 "//chromeos", | 420 "//chromeos", |
| 417 "//chromeos:power_manager_proto", | 421 "//chromeos:power_manager_proto", |
| 418 "//chromeos:test_support_without_gmock", | 422 "//chromeos:test_support_without_gmock", |
| 419 "//components/quirks", | 423 "//components/quirks", |
| 420 "//device/bluetooth", | 424 "//device/bluetooth", |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 # Maximize mode is only available on Chrome OS. | 534 # Maximize mode is only available on Chrome OS. |
| 531 "wm/maximize_mode/maximize_mode_controller_unittest.cc", | 535 "wm/maximize_mode/maximize_mode_controller_unittest.cc", |
| 532 "wm/maximize_mode/maximize_mode_window_manager_unittest.cc", | 536 "wm/maximize_mode/maximize_mode_window_manager_unittest.cc", |
| 533 "wm/workspace/workspace_window_resizer_unittest.cc", | 537 "wm/workspace/workspace_window_resizer_unittest.cc", |
| 534 ] | 538 ] |
| 535 } | 539 } |
| 536 | 540 |
| 537 if (!use_x11 || !is_chromeos) { | 541 if (!use_x11 || !is_chromeos) { |
| 538 sources -= [ "touch/touch_transformer_controller_unittest.cc" ] | 542 sources -= [ "touch/touch_transformer_controller_unittest.cc" ] |
| 539 } | 543 } |
| 544 |
| 545 # Usage of content should be in ash_with_content. |
| 546 assert_no_deps = [ "//content/*" ] |
| 540 } | 547 } |
| 541 | 548 |
| 542 executable("ash_shell_with_content") { | 549 executable("ash_shell_with_content") { |
| 543 testonly = true | 550 testonly = true |
| 544 sources = [ | 551 sources = [ |
| 545 "shell/content/shell_with_content_main.cc", | 552 "shell/content/shell_with_content_main.cc", |
| 546 ] | 553 ] |
| 547 | 554 |
| 548 deps = [ | 555 deps = [ |
| 549 ":ash_shell_lib_with_content", | 556 ":ash_shell_lib_with_content", |
| 550 "//base", | 557 "//base", |
| 551 "//build/config/sanitizers:deps", | 558 "//build/config/sanitizers:deps", |
| 552 "//build/win:default_exe_manifest", | 559 "//build/win:default_exe_manifest", |
| 553 "//components/user_manager", | 560 "//components/user_manager", |
| 554 "//content", | 561 "//content", |
| 555 "//content/public/app:both", | 562 "//content/public/app:both", |
| 556 ] | 563 ] |
| 557 | 564 |
| 558 data_deps = [ | 565 data_deps = [ |
| 559 "//ash/common/strings:ash_test_strings", | 566 "//ash/common/strings:ash_test_strings", |
| 560 "//ash/resources:ash_test_resources_100_percent", | 567 "//ash/resources:ash_test_resources_content_100_percent", |
| 561 "//ash/resources:ash_test_resources_200_percent", | 568 "//ash/resources:ash_test_resources_200_percent", |
| 562 ] | 569 ] |
| 563 | 570 |
| 564 if (is_win) { | 571 if (is_win) { |
| 565 configs -= [ "//build/config/win:console" ] | 572 configs -= [ "//build/config/win:console" ] |
| 566 configs += [ "//build/config/win:windowed" ] | 573 configs += [ "//build/config/win:windowed" ] |
| 567 deps += [ "//sandbox" ] | 574 deps += [ "//sandbox" ] |
| 568 } | 575 } |
| 569 | 576 |
| 570 if (is_chromeos) { | 577 if (is_chromeos) { |
| 571 deps += [ "//device/bluetooth" ] | 578 deps += [ "//device/bluetooth" ] |
| 572 } | 579 } |
| 573 } | 580 } |
| 574 # When adding support for isolates, please have a look at run-time dependencies | 581 # When adding support for isolates, please have a look at run-time dependencies |
| 575 # in the ash_unittests_run target in ash.gyp. | 582 # in the ash_unittests_run target in ash.gyp. |
| OLD | NEW |