| # 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("//mojo/public/mojo_application.gni") | 
 | import("//testing/test.gni") | 
 |  | 
 | mojo_native_application("window_manager") { | 
 |   sources = [ | 
 |     "main.cc", | 
 |   ] | 
 |  | 
 |   public_deps = [ | 
 |     ":lib", | 
 |   ] | 
 |  | 
 |   deps = [ | 
 |     "//base", | 
 |     "//mojo/application", | 
 |     "//mojo/common:tracing_impl", | 
 |     "//mojo/services/view_manager/public/cpp", | 
 |   ] | 
 | } | 
 |  | 
 | source_set("lib") { | 
 |   sources = [ | 
 |     "basic_focus_rules.cc", | 
 |     "basic_focus_rules.h", | 
 |     "capture_controller.cc", | 
 |     "capture_controller.h", | 
 |     "capture_controller_observer.h", | 
 |     "focus_controller.cc", | 
 |     "focus_controller.h", | 
 |     "focus_controller_observer.h", | 
 |     "focus_rules.h", | 
 |     "native_viewport_event_dispatcher_impl.cc", | 
 |     "native_viewport_event_dispatcher_impl.h", | 
 |     "window_manager_app.cc", | 
 |     "window_manager_app.h", | 
 |     "window_manager_delegate.h", | 
 |     "window_manager_impl.cc", | 
 |     "window_manager_impl.h", | 
 |     "view_event_dispatcher.cc", | 
 |     "view_event_dispatcher.h", | 
 |     "view_target.cc", | 
 |     "view_target.h", | 
 |     "view_targeter.cc", | 
 |     "view_targeter.h", | 
 |   ] | 
 |  | 
 |   deps = [ | 
 |     "//base", | 
 |     "//ui/events", | 
 |     "//ui/gfx", | 
 |     "//ui/gfx/geometry", | 
 |     "//mojo/application", | 
 |     "//mojo/common", | 
 |     "//mojo/converters/geometry", | 
 |     "//mojo/converters/input_events", | 
 |     "//mojo/public/cpp/bindings:bindings", | 
 |     "//mojo/public/interfaces/application", | 
 |     "//mojo/services/native_viewport/public/interfaces", | 
 |     "//mojo/services/view_manager/public/cpp", | 
 |     "//mojo/services/window_manager/public/interfaces", | 
 |   ] | 
 | } | 
 |  | 
 | test("window_manager_unittests") { | 
 |   sources = [ | 
 |     "focus_controller_unittest.cc", | 
 |     "run_all_unittests.cc", | 
 |     "view_target_unittest.cc", | 
 |     "view_targeter_unittest.cc", | 
 |     "window_manager_api_unittest.cc", | 
 |     "window_manager_test_util.cc", | 
 |     "window_manager_test_util.h", | 
 |   ] | 
 |  | 
 |   public_deps = [ | 
 |     ":lib", | 
 |   ] | 
 |  | 
 |   deps = [ | 
 |     "//base/test:test_support", | 
 |     "//mojo/converters/geometry", | 
 |     "//mojo/edk/system", | 
 |     "//mojo/environment:chromium", | 
 |     "//mojo/public/cpp/application", | 
 |     "//mojo/services/view_manager/public/cpp", | 
 |     "//mojo/services/view_manager/public/interfaces", | 
 |     "//mojo/services/window_manager/public/interfaces", | 
 |     "//shell/application_manager", | 
 |     "//shell:test_support", | 
 |     "//testing/gtest", | 
 |     "//ui/events:test_support", | 
 |     "//ui/gfx", | 
 |     "//ui/gfx:test_support", | 
 |     "//ui/gl", | 
 |   ] | 
 |  | 
 |   if (use_x11) { | 
 |     deps += [ "//ui/gfx/x" ] | 
 |   } | 
 | } | 
 |  | 
 | mojo_native_application("window_manager_apptests") { | 
 |   testonly = true | 
 |  | 
 |   sources = [ | 
 |     "window_manager_apptest.cc", | 
 |   ] | 
 |  | 
 |   deps = [ | 
 |     "//base", | 
 |     "//mojo/application", | 
 |     "//mojo/application:test_support", | 
 |     "//mojo/environment:chromium", | 
 |     "//mojo/public/c/system:for_shared_library", | 
 |     "//mojo/public/cpp/system:system", | 
 |     "//mojo/services/view_manager/public/cpp", | 
 |     "//mojo/services/window_manager/public/interfaces", | 
 |   ] | 
 |  | 
 |   data_deps = [ ":window_manager" ] | 
 | } |