| 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("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
| 8 import("//tools/grit/repack.gni") |
| 8 | 9 |
| 9 group("wm") { | 10 group("wm") { |
| 10 testonly = true | 11 testonly = true |
| 11 deps = [ | 12 deps = [ |
| 12 ":example_wm", | 13 ":example_wm", |
| 13 ":apptests", | 14 ":apptests", |
| 14 ] | 15 ] |
| 15 } | 16 } |
| 16 | 17 |
| 17 source_set("example_wm_lib") { | 18 source_set("example_wm_lib") { |
| 18 sources = [ | 19 sources = [ |
| 19 "background_layout.cc", | 20 "background_layout.cc", |
| 20 "background_layout.h", | 21 "background_layout.h", |
| 22 "frame/caption_buttons/caption_button_types.h", |
| 23 "frame/caption_buttons/frame_caption_button.cc", |
| 24 "frame/caption_buttons/frame_caption_button.h", |
| 25 "frame/caption_buttons/frame_caption_button_container_view.cc", |
| 26 "frame/caption_buttons/frame_caption_button_container_view.h", |
| 27 "frame/default_header_painter.cc", |
| 28 "frame/default_header_painter.h", |
| 29 "frame/frame_border_hit_test_controller.cc", |
| 30 "frame/frame_border_hit_test_controller.h", |
| 31 "frame/header_painter.h", |
| 32 "frame/header_painter_util.cc", |
| 33 "frame/header_painter_util.h", |
| 34 "frame/move_loop.cc", |
| 35 "frame/move_loop.h", |
| 36 "frame/non_client_frame_view_mash.cc", |
| 37 "frame/non_client_frame_view_mash.h", |
| 21 "layout_manager.cc", | 38 "layout_manager.cc", |
| 22 "layout_manager.h", | 39 "layout_manager.h", |
| 23 "move_loop.cc", | |
| 24 "move_loop.h", | |
| 25 "non_client_frame_controller.cc", | 40 "non_client_frame_controller.cc", |
| 26 "non_client_frame_controller.h", | 41 "non_client_frame_controller.h", |
| 27 "non_client_frame_view_impl.cc", | |
| 28 "non_client_frame_view_impl.h", | |
| 29 "property_util.cc", | 42 "property_util.cc", |
| 30 "property_util.h", | 43 "property_util.h", |
| 31 "shelf_layout.cc", | 44 "shelf_layout.cc", |
| 32 "shelf_layout.h", | 45 "shelf_layout.h", |
| 33 "window_layout.cc", | 46 "window_layout.cc", |
| 34 "window_layout.h", | 47 "window_layout.h", |
| 35 "window_manager_application.cc", | 48 "window_manager_application.cc", |
| 36 "window_manager_application.h", | 49 "window_manager_application.h", |
| 37 "window_manager_impl.cc", | 50 "window_manager_impl.cc", |
| 38 "window_manager_impl.h", | 51 "window_manager_impl.h", |
| 39 ] | 52 ] |
| 40 | 53 |
| 41 deps = [ | 54 deps = [ |
| 42 "//base", | 55 "//base", |
| 43 "//components/mus/common", | 56 "//components/mus/common", |
| 44 "//components/mus/public/cpp", | 57 "//components/mus/public/cpp", |
| 45 "//components/mus/public/interfaces", | 58 "//components/mus/public/interfaces", |
| 46 "//mash/wm/public/interfaces", | 59 "//mash/wm/public/interfaces", |
| 60 "//mash/wm/resources", |
| 47 "//mojo/application/public/cpp", | 61 "//mojo/application/public/cpp", |
| 48 "//mojo/common:common_base", | 62 "//mojo/common:common_base", |
| 49 "//mojo/converters/geometry", | 63 "//mojo/converters/geometry", |
| 50 "//mojo/converters/input_events", | 64 "//mojo/converters/input_events", |
| 51 "//mojo/services/tracing/public/cpp", | 65 "//mojo/services/tracing/public/cpp", |
| 52 "//skia", | 66 "//skia", |
| 67 "//ui/aura", |
| 68 "//ui/events", |
| 69 "//ui/gfx", |
| 70 "//ui/gfx/geometry", |
| 53 "//ui/mojo/init", | 71 "//ui/mojo/init", |
| 72 "//ui/strings", |
| 54 "//ui/views", | 73 "//ui/views", |
| 55 "//ui/views/mus:for_mojo_application", | 74 "//ui/views/mus:for_mojo_application", |
| 56 ] | 75 ] |
| 57 } | 76 } |
| 58 | 77 |
| 59 mojo_native_application("example_wm") { | 78 mojo_native_application("example_wm") { |
| 60 sources = [ | 79 sources = [ |
| 61 "main.cc", | 80 "main.cc", |
| 62 ] | 81 ] |
| 63 | 82 |
| 64 deps = [ | 83 deps = [ |
| 65 ":example_wm_lib", | 84 ":example_wm_lib", |
| 85 ":resources", |
| 66 "//mojo/application/public/cpp", | 86 "//mojo/application/public/cpp", |
| 67 "//ui/views/mus:resources", | |
| 68 ] | 87 ] |
| 69 | 88 |
| 70 data_deps = [ | 89 data_deps = [ |
| 71 "//components/mus", | 90 "//components/mus", |
| 72 ] | 91 ] |
| 73 | 92 |
| 74 resources = [ "$root_out_dir/views_mus_resources.pak" ] | 93 resources = [ "$root_out_dir/mash_wm_resources.pak" ] |
| 94 } |
| 95 |
| 96 repack("resources") { |
| 97 sources = [ |
| 98 "$root_gen_dir/mash/wm/resources/mash_wm_resources_100_percent.pak", |
| 99 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
| 100 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 101 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
| 102 "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak", |
| 103 ] |
| 104 output = "$root_out_dir/mash_wm_resources.pak" |
| 105 deps = [ |
| 106 "//mash/wm/resources", |
| 107 "//ui/resources", |
| 108 "//ui/strings", |
| 109 "//ui/views/mus:resources", |
| 110 "//ui/views/resources", |
| 111 ] |
| 75 } | 112 } |
| 76 | 113 |
| 77 mojo_native_application("apptests") { | 114 mojo_native_application("apptests") { |
| 78 output_name = "mus_example_wm_apptests" | 115 output_name = "mus_example_wm_apptests" |
| 79 testonly = true | 116 testonly = true |
| 80 | 117 |
| 81 sources = [ | 118 sources = [ |
| 82 "window_manager_apptest.cc", | 119 "window_manager_apptest.cc", |
| 83 ] | 120 ] |
| 84 | 121 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 98 | 135 |
| 99 data_deps = [ | 136 data_deps = [ |
| 100 ":example_wm", | 137 ":example_wm", |
| 101 ] | 138 ] |
| 102 } | 139 } |
| 103 | 140 |
| 104 source_set("unittests") { | 141 source_set("unittests") { |
| 105 testonly = true | 142 testonly = true |
| 106 | 143 |
| 107 sources = [ | 144 sources = [ |
| 108 "move_loop_unittest.cc", | 145 "frame/move_loop_unittest.cc", |
| 109 ] | 146 ] |
| 110 | 147 |
| 111 deps = [ | 148 deps = [ |
| 112 ":example_wm_lib", | 149 ":example_wm_lib", |
| 113 "//base", | 150 "//base", |
| 114 "//base/test:test_config", | 151 "//base/test:test_config", |
| 115 "//components/mus/public/cpp", | 152 "//components/mus/public/cpp", |
| 116 "//components/mus/public/cpp/tests:unittest_support", | 153 "//components/mus/public/cpp/tests:unittest_support", |
| 117 "//mojo/converters/geometry", | 154 "//mojo/converters/geometry", |
| 118 "//mojo/converters/input_events", | 155 "//mojo/converters/input_events", |
| 119 "//mojo/gles2", | 156 "//mojo/gles2", |
| 120 "//mojo/platform_handle", | 157 "//mojo/platform_handle", |
| 121 "//mojo/public/cpp/system", | 158 "//mojo/public/cpp/system", |
| 122 "//testing/gtest", | 159 "//testing/gtest", |
| 123 "//third_party/mojo/src/mojo/edk/system", | 160 "//third_party/mojo/src/mojo/edk/system", |
| 124 "//ui/events", | 161 "//ui/events", |
| 125 "//ui/gfx/geometry", | 162 "//ui/gfx/geometry", |
| 126 "//ui/gfx:test_support", | 163 "//ui/gfx:test_support", |
| 127 "//ui/mojo/geometry:interfaces", | 164 "//ui/mojo/geometry:interfaces", |
| 128 "//ui/mojo/geometry:util", | 165 "//ui/mojo/geometry:util", |
| 129 ] | 166 ] |
| 130 } | 167 } |
| OLD | NEW |