Fork the mojo shell interfaces used by Mandoline.
[chromium-blink-merge.git] / components / window_manager / BUILD.gn
blobe39e89f8b612385d636351eb32e67ba7761e5a75
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.
5 import("//build/config/ui.gni")
6 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
7 import("//testing/test.gni")
9 source_set("lib") {
10   sources = [
11     "window_manager_app.cc",
12     "window_manager_app.h",
13     "window_manager_delegate.h",
14     "window_manager_impl.cc",
15     "window_manager_impl.h",
16   ]
18   deps = [
19     "//base",
20     "//components/view_manager/public/cpp",
21     "//components/window_manager/public/interfaces",
22     "//mojo/application",
23     "//mojo/application/public/interfaces",
24     "//mojo/common",
25     "//mojo/converters/geometry",
26     "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
27     "//ui/gfx/geometry",
28     "//ui/mojo/events:interfaces",
29   ]
31   data_deps = [ "//components/view_manager" ]
34 # A basic window manager with a default delegate used for testing.
35 mojo_native_application("test_window_manager") {
36   sources = [
37     "main.cc",
38   ]
40   public_deps = [
41     ":lib",
42   ]
44   deps = [
45     "//base",
46     "//components/view_manager/public/cpp",
47     "//mojo/application",
48     "//mojo/common:tracing_impl",
49   ]
52 mojo_native_application("apptests") {
53   output_name = "window_manager_apptests"
54   testonly = true
56   sources = [
57     "window_manager_apptest.cc",
58   ]
60   deps = [
61     "//base",
62     "//components/view_manager/public/cpp",
63     "//components/window_manager/public/interfaces",
64     "//mojo/application",
65     "//mojo/application:test_support",
66     "//mojo/environment:chromium",
67     "//third_party/mojo/src/mojo/public/cpp/system:system",
68   ]
70   data_deps = [ ":test_window_manager($default_toolchain)" ]