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 3 # found in the LICENSE file. 4 5 import("//build/config/ui.gni") 6 7 if (use_aura) { 8 9 # GYP version: mojo/mojo_services.gypi:mojo_core_window_manager 10 shared_library("window_manager") { 11 output_name = "mojo_core_window_manager" 12 13 sources = [ "main.cc" ] 14 15 public_deps = [ 16 ":lib", 17 ] 18 deps = [ 19 "//base", 20 "//mojo/application", 21 "//mojo/public/c/system:for_shared_library", 22 "//mojo/services/public/cpp/view_manager", 23 ] 24 } 25 26 # GYP version: mojo/mojo_services.gypi:mojo_core_window_manager_lib 27 source_set("lib") { 28 sources = [ 29 "window_manager_app.cc", 30 "window_manager_app.h", 31 "window_manager_service_impl.cc", 32 "window_manager_service_impl.h", 33 ] 34 35 public_deps = [ 36 "//mojo/aura", 37 ] 38 deps = [ 39 "//base", 40 "//mojo/application", 41 "//mojo/common", 42 "//mojo/environment:chromium", 43 "//mojo/public/cpp/bindings", 44 "//mojo/services/public/cpp/input_events", 45 "//mojo/services/public/cpp/view_manager", 46 "//mojo/services/public/interfaces/window_manager", 47 "//ui/aura", 48 "//ui/base", 49 "//ui/events", 50 "//ui/gfx", 51 "//ui/gfx/geometry", 52 "//ui/wm", 53 ] 54 } 55 56 # GYP version: mojo/mojo_services.gypi:mojo_core_window_manager_unittests 57 test("mojo_core_window_manager_unittests") { 58 sources = [ 59 "window_manager_api_unittest.cc", 60 "window_manager_unittests.cc", 61 ] 62 63 deps = [ 64 "//base/test:test_support", 65 "//mojo/application_manager", 66 "//mojo/environment:chromium", 67 "//mojo/services/public/cpp/view_manager", 68 "//mojo/services/public/interfaces/view_manager", 69 "//mojo/services/public/interfaces/window_manager", 70 "//mojo/shell:test_support", 71 "//mojo/system", 72 "//testing/gtest", 73 "//ui/gl", 74 ] 75 if (use_x11) { 76 deps += [ "//ui/gfx/x" ] 77 } 78 } 79 80 } # use_aura 81