diff options
author | Michal Klocek <michal.klocek@qt.io> | 2016-11-10 14:06:09 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2016-11-16 13:45:02 +0000 |
commit | 777da810b25f517d54dc4b7771e42a4ea38c355b (patch) | |
tree | 675d9f4b67f68441adffb9a01e3075d8d12c0fb2 /chromium/components/mus/ws | |
parent | 2eb1e44ebb98208ec9bd0acb0c410e95e8f253b9 (diff) | |
download | qtwebengine-chromium-777da810b25f517d54dc4b7771e42a4ea38c355b.tar.gz |
Add all gn, gni, typemap, mojom files
These file are required to gn be able to parse
source tree.
Change-Id: I9cb4a0b3897c1e99dd6e39832a8c55764fb6e1c6
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/mus/ws')
-rw-r--r-- | chromium/components/mus/ws/BUILD.gn | 254 |
1 files changed, 254 insertions, 0 deletions
diff --git a/chromium/components/mus/ws/BUILD.gn b/chromium/components/mus/ws/BUILD.gn new file mode 100644 index 00000000000..4a7ccd1063f --- /dev/null +++ b/chromium/components/mus/ws/BUILD.gn @@ -0,0 +1,254 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//build/config/ui.gni") +import("//testing/test.gni") +import("//mojo/public/mojo_application.gni") +import("//mojo/public/mojo_application_manifest.gni") + +source_set("lib") { + sources = [ + "accelerator.cc", + "accelerator.h", + "access_policy.h", + "access_policy_delegate.h", + "animation_runner.cc", + "animation_runner.h", + "animation_runner_observer.h", + "default_access_policy.cc", + "default_access_policy.h", + "display.cc", + "display.h", + "display_binding.cc", + "display_binding.h", + "display_manager.cc", + "display_manager.h", + "display_manager_delegate.h", + "event_dispatcher.cc", + "event_dispatcher.h", + "event_dispatcher_delegate.h", + "event_matcher.cc", + "event_matcher.h", + "focus_controller.cc", + "focus_controller.h", + "focus_controller_delegate.h", + "focus_controller_observer.h", + "modal_window_controller.cc", + "modal_window_controller.h", + "operation.cc", + "operation.h", + "platform_display.cc", + "platform_display.h", + "platform_display_delegate.h", + "platform_display_factory.h", + "platform_display_init_params.cc", + "platform_display_init_params.h", + "platform_screen.h", + "platform_screen_impl.cc", + "platform_screen_impl.h", + "scheduled_animation_group.cc", + "scheduled_animation_group.h", + "server_window.cc", + "server_window.h", + "server_window_delegate.h", + "server_window_drawn_tracker.cc", + "server_window_drawn_tracker.h", + "server_window_drawn_tracker_observer.h", + "server_window_observer.h", + "server_window_surface.cc", + "server_window_surface.h", + "server_window_surface_manager.cc", + "server_window_surface_manager.h", + "server_window_tracker.h", + "touch_controller.cc", + "touch_controller.h", + "user_activity_monitor.cc", + "user_activity_monitor.h", + "user_display_manager.cc", + "user_display_manager.h", + "user_id.h", + "user_id_tracker.cc", + "user_id_tracker.h", + "user_id_tracker_observer.h", + "window_coordinate_conversions.cc", + "window_coordinate_conversions.h", + "window_finder.cc", + "window_finder.h", + "window_manager_access_policy.cc", + "window_manager_access_policy.h", + "window_manager_display_root.cc", + "window_manager_display_root.h", + "window_manager_state.cc", + "window_manager_state.h", + "window_manager_window_tree_factory.cc", + "window_manager_window_tree_factory.h", + "window_manager_window_tree_factory_set.cc", + "window_manager_window_tree_factory_set.h", + "window_manager_window_tree_factory_set_observer.h", + "window_server.cc", + "window_server.h", + "window_server_delegate.cc", + "window_server_delegate.h", + "window_tree.cc", + "window_tree.h", + "window_tree_binding.cc", + "window_tree_binding.h", + "window_tree_factory.cc", + "window_tree_factory.h", + "window_tree_host_factory.cc", + "window_tree_host_factory.h", + ] + + public_deps = [ + "//base", + "//cc", + "//cc/ipc:interfaces", + "//cc/surfaces", + "//cc/surfaces:surface_id", + "//components/mus/common:mus_common", + "//components/mus/gles2", + "//components/mus/public/interfaces", + "//components/mus/surfaces", + "//mojo/common:common_base", + "//mojo/public/cpp/bindings", + "//services/shell/public/cpp", + "//services/shell/public/interfaces", + "//services/tracing/public/cpp", + "//ui/base", + "//ui/display", + "//ui/events", + "//ui/events/devices", + "//ui/events/platform", + "//ui/gfx", + "//ui/gfx/geometry", + "//ui/gfx/geometry/mojo", + "//ui/gl", + "//ui/platform_window", + "//ui/platform_window:platform_impls", + "//ui/platform_window/mojo", + ] + + if (use_ozone) { + sources -= [ + "platform_screen_impl.cc", + "platform_screen_impl.h", + ] + sources += [ + "platform_screen_impl_ozone.cc", + "platform_screen_impl_ozone.h", + ] + public_deps += [ "//ui/ozone:ozone" ] + } +} + +source_set("test_interface") { + sources = [ + "window_server_test_impl.cc", + "window_server_test_impl.h", + ] + + deps = [ + ":lib", + "//components/mus/public/interfaces", + "//mojo/public/cpp/bindings:bindings", + "//ui/gfx", + ] +} + +source_set("test_support") { + testonly = true + + sources = [ + "test_change_tracker.cc", + "test_change_tracker.h", + ] + + deps = [ + "//base", + "//components/mus/common:mus_common", + "//components/mus/public/cpp", + "//components/mus/public/interfaces", + "//mojo/common", + "//mojo/public/cpp/bindings:bindings", + "//ui/gfx/geometry/mojo", + ] +} + +group("tests") { + testonly = true + deps = [ + ":mus_ws_unittests", + ] + if (!is_android) { + deps += [ "//components/mus/public/cpp/tests:mus_public_unittests" ] + } +} + +test("mus_ws_unittests") { + sources = [ + "animation_runner_unittest.cc", + "cursor_unittest.cc", + "display_unittest.cc", + "event_dispatcher_unittest.cc", + "event_matcher_unittest.cc", + "focus_controller_unittest.cc", + "scheduled_animation_group_unittest.cc", + "server_window_drawn_tracker_unittest.cc", + "server_window_surface_manager_test_api.cc", + "server_window_surface_manager_test_api.h", + "test_server_window_delegate.cc", + "test_server_window_delegate.h", + "test_utils.cc", + "test_utils.h", + "transient_windows_unittest.cc", + "user_activity_monitor_unittest.cc", + "user_display_manager_unittest.cc", + "window_coordinate_conversions_unittest.cc", + "window_finder_unittest.cc", + "window_manager_client_unittest.cc", + "window_manager_state_unittest.cc", + "window_tree_client_unittest.cc", + "window_tree_unittest.cc", + ] + + deps = [ + ":lib", + ":test_support", + "//base", + "//base/test:test_config", + "//base/test:test_support", + "//cc:cc", + "//components/mus/common:mus_common", + "//components/mus/public/cpp", + "//components/mus/public/cpp/tests:test_support", + "//components/mus/public/interfaces", + "//components/mus/surfaces", + "//mojo/public/cpp/bindings:bindings", + "//services/shell/public/cpp:shell_test_support", + "//services/shell/public/cpp:sources", + "//services/shell/public/cpp/test:run_all_shelltests", + "//services/shell/public/interfaces", + "//testing/gtest", + "//third_party/mesa:osmesa", + "//ui/events", + "//ui/gfx", + "//ui/gfx:test_support", + "//ui/gfx/geometry", + "//ui/gfx/geometry/mojo", + "//ui/gl", + ] + + if (use_x11) { + deps += [ "//tools/xdisplaycheck" ] + } + + data_deps = [ + ":mus_ws_unittests_app_manifest", + ] +} + +mojo_application_manifest("mus_ws_unittests_app_manifest") { + application_name = "mus_ws_unittests_app" + source = "mus_ws_unittests_app_manifest.json" +} |