| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
| 7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 8 | 8 |
| 9 group("wm") { | 9 group("wm") { |
| 10 testonly = true | 10 testonly = true |
| 11 deps = [ | 11 deps = [ |
| 12 ":example_wm", | 12 ":example_wm", |
| 13 ":apptests", | 13 ":apptests", |
| 14 ] | 14 ] |
| 15 } | 15 } |
| 16 | 16 |
| 17 mojo_native_application("example_wm") { | 17 source_set("example_wm_lib") { |
| 18 sources = [ | 18 sources = [ |
| 19 "background_layout.cc", | 19 "background_layout.cc", |
| 20 "background_layout.h", | 20 "background_layout.h", |
| 21 "layout_manager.cc", | 21 "layout_manager.cc", |
| 22 "layout_manager.h", | 22 "layout_manager.h", |
| 23 "main.cc", | |
| 24 "move_loop.cc", | 23 "move_loop.cc", |
| 25 "move_loop.h", | 24 "move_loop.h", |
| 26 "property_util.cc", | 25 "property_util.cc", |
| 27 "property_util.h", | 26 "property_util.h", |
| 28 "shelf_layout.cc", | 27 "shelf_layout.cc", |
| 29 "shelf_layout.h", | 28 "shelf_layout.h", |
| 30 "window_layout.cc", | 29 "window_layout.cc", |
| 31 "window_layout.h", | 30 "window_layout.h", |
| 32 "window_manager_application.cc", | 31 "window_manager_application.cc", |
| 33 "window_manager_application.h", | 32 "window_manager_application.h", |
| 34 "window_manager_impl.cc", | 33 "window_manager_impl.cc", |
| 35 "window_manager_impl.h", | 34 "window_manager_impl.h", |
| 36 ] | 35 ] |
| 37 | 36 |
| 38 deps = [ | 37 deps = [ |
| 39 "//base", | 38 "//base", |
| 40 "//components/mus/example/wm/public/interfaces", | 39 "//components/mus/example/wm/public/interfaces", |
| 41 "//components/mus/public/cpp", | 40 "//components/mus/public/cpp", |
| 42 "//components/mus/public/interfaces", | 41 "//components/mus/public/interfaces", |
| 43 "//mojo/application/public/cpp", | 42 "//mojo/application/public/cpp", |
| 44 "//mojo/common:common_base", | 43 "//mojo/common:common_base", |
| 45 "//mojo/converters/geometry", | 44 "//mojo/converters/geometry", |
| 46 ] | 45 ] |
| 46 } |
| 47 |
| 48 mojo_native_application("example_wm") { |
| 49 sources = [ |
| 50 "main.cc", |
| 51 ] |
| 52 |
| 53 deps = [ |
| 54 ":example_wm_lib", |
| 55 "//mojo/application/public/cpp", |
| 56 ] |
| 47 | 57 |
| 48 data_deps = [ | 58 data_deps = [ |
| 49 "//components/mus", | 59 "//components/mus", |
| 50 ] | 60 ] |
| 51 } | 61 } |
| 52 | 62 |
| 53 mojo_native_application("apptests") { | 63 mojo_native_application("apptests") { |
| 54 output_name = "mus_example_wm_apptests" | 64 output_name = "mus_example_wm_apptests" |
| 55 testonly = true | 65 testonly = true |
| 56 | 66 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 69 "//mojo/common:common_base", | 79 "//mojo/common:common_base", |
| 70 "//mojo/converters/geometry", | 80 "//mojo/converters/geometry", |
| 71 "//ui/mojo/geometry:interfaces", | 81 "//ui/mojo/geometry:interfaces", |
| 72 "//ui/mojo/geometry:util", | 82 "//ui/mojo/geometry:util", |
| 73 ] | 83 ] |
| 74 | 84 |
| 75 data_deps = [ | 85 data_deps = [ |
| 76 ":example_wm", | 86 ":example_wm", |
| 77 ] | 87 ] |
| 78 } | 88 } |
| 89 |
| 90 source_set("unittests") { |
| 91 testonly = true |
| 92 |
| 93 sources = [ |
| 94 "move_loop_unittest.cc", |
| 95 ] |
| 96 |
| 97 deps = [ |
| 98 ":example_wm_lib", |
| 99 "//base", |
| 100 "//base/test:test_config", |
| 101 "//components/mus/public/cpp", |
| 102 "//components/mus/public/cpp/tests:unittest_support", |
| 103 "//mojo/converters/geometry", |
| 104 "//mojo/converters/input_events", |
| 105 "//testing/gtest", |
| 106 "//third_party/mojo/src/mojo/public/cpp/system", |
| 107 "//third_party/mojo/src/mojo/edk/system", |
| 108 "//ui/events", |
| 109 "//ui/gfx/geometry", |
| 110 "//ui/gfx:test_support", |
| 111 "//ui/mojo/geometry:interfaces", |
| 112 "//ui/mojo/geometry:util", |
| 113 ] |
| 114 } |
| OLD | NEW |