| 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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 mojom("interfaces_use_new_wrappers") { | 8 mojom("interfaces") { |
| 9 sources = [ | 9 sources = [ |
| 10 "accessibility_manager.mojom", | 10 "accessibility_manager.mojom", |
| 11 "animations.mojom", | 11 "animations.mojom", |
| 12 "clipboard.mojom", | 12 "clipboard.mojom", |
| 13 "cursor.mojom", | 13 "cursor.mojom", |
| 14 "display_manager.mojom", | 14 "display_manager.mojom", |
| 15 "event_matcher.mojom", | 15 "event_matcher.mojom", |
| 16 "gpu_memory_buffer.mojom", | 16 "gpu_memory_buffer.mojom", |
| 17 "gpu_service.mojom", | 17 "gpu_service.mojom", |
| 18 "ime.mojom", | 18 "ime.mojom", |
| 19 "mus_constants.mojom", | 19 "mus_constants.mojom", |
| 20 "user_access_manager.mojom", | 20 "user_access_manager.mojom", |
| 21 "user_activity_monitor.mojom", | 21 "user_activity_monitor.mojom", |
| 22 "window_manager.mojom", |
| 22 "window_manager_constants.mojom", | 23 "window_manager_constants.mojom", |
| 24 "window_manager_window_tree_factory.mojom", |
| 23 "window_server_test.mojom", | 25 "window_server_test.mojom", |
| 24 ] | |
| 25 | |
| 26 import_dirs = [ | |
| 27 get_path_info("../../../..", "abspath"), | |
| 28 "//mojo/services", | |
| 29 ] | |
| 30 | |
| 31 public_deps = [ | |
| 32 "//cc/ipc:interfaces", | |
| 33 "//gpu/ipc/common:interfaces", | |
| 34 "//services/ui/public/interfaces/display", | |
| 35 "//ui/events/mojo:interfaces", | |
| 36 "//ui/gfx/geometry/mojo", | |
| 37 "//ui/gfx/mojo", | |
| 38 "//ui/platform_window/mojo:interfaces", | |
| 39 ] | |
| 40 } | |
| 41 | |
| 42 # TODO(yzshen): merge this target into the one above. | |
| 43 mojom("interfaces") { | |
| 44 sources = [ | |
| 45 "window_manager.mojom", | |
| 46 "window_manager_window_tree_factory.mojom", | |
| 47 "window_tree.mojom", | 26 "window_tree.mojom", |
| 48 "window_tree_constants.mojom", | 27 "window_tree_constants.mojom", |
| 49 "window_tree_host.mojom", | 28 "window_tree_host.mojom", |
| 50 ] | 29 ] |
| 51 | 30 |
| 52 import_dirs = [ | 31 import_dirs = [ |
| 53 get_path_info("../../../..", "abspath"), | 32 get_path_info("../../../..", "abspath"), |
| 54 "//mojo/services", | 33 "//mojo/services", |
| 55 ] | 34 ] |
| 56 | 35 |
| 57 public_deps = [ | 36 public_deps = [ |
| 58 ":constants", | 37 ":constants", |
| 59 ":interfaces_use_new_wrappers", | |
| 60 "//cc/ipc:interfaces", | 38 "//cc/ipc:interfaces", |
| 61 "//gpu/ipc/common:interfaces", | 39 "//gpu/ipc/common:interfaces", |
| 62 "//services/ui/public/interfaces/display", | 40 "//services/ui/public/interfaces/display", |
| 63 "//ui/events/mojo:interfaces", | 41 "//ui/events/mojo:interfaces", |
| 64 "//ui/gfx/geometry/mojo", | 42 "//ui/gfx/geometry/mojo", |
| 65 "//ui/gfx/mojo", | 43 "//ui/gfx/mojo", |
| 66 "//ui/platform_window/mojo:interfaces", | 44 "//ui/platform_window/mojo:interfaces", |
| 67 ] | 45 ] |
| 68 | |
| 69 use_new_wrapper_types = false | |
| 70 } | 46 } |
| 71 | 47 |
| 72 mojom("constants") { | 48 mojom("constants") { |
| 73 sources = [ | 49 sources = [ |
| 74 "constants.mojom", | 50 "constants.mojom", |
| 75 ] | 51 ] |
| 76 } | 52 } |
| 77 | 53 |
| 78 test("ui_struct_traits_unittests") { | 54 test("ui_struct_traits_unittests") { |
| 79 testonly = true | 55 testonly = true |
| 80 | 56 |
| 81 sources = [ | 57 sources = [ |
| 82 "display/display_struct_traits_unittest.cc", | 58 "display/display_struct_traits_unittest.cc", |
| 83 ] | 59 ] |
| 84 | 60 |
| 85 deps = [ | 61 deps = [ |
| 86 "//base", | 62 "//base", |
| 87 "//base/test:test_support", | 63 "//base/test:test_support", |
| 88 "//mojo/edk/test:run_all_unittests", | 64 "//mojo/edk/test:run_all_unittests", |
| 89 "//services/ui/public/interfaces/display:test_interfaces", | 65 "//services/ui/public/interfaces/display:test_interfaces", |
| 90 "//testing/gtest", | 66 "//testing/gtest", |
| 91 "//ui/display/types", | 67 "//ui/display/types", |
| 92 "//ui/gfx:test_support", | 68 "//ui/gfx:test_support", |
| 93 ] | 69 ] |
| 94 } | 70 } |
| OLD | NEW |