| Index: mojo/services/view_manager/BUILD.gn
|
| diff --git a/mojo/services/view_manager/BUILD.gn b/mojo/services/view_manager/BUILD.gn
|
| index 888b34b7e33577adba69a42a57c0e2f9d363f402..b9ca0372c87bfc5b403d02aa922ed5dbf18e2b35 100644
|
| --- a/mojo/services/view_manager/BUILD.gn
|
| +++ b/mojo/services/view_manager/BUILD.gn
|
| @@ -2,18 +2,19 @@
|
| # 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")
|
| +
|
| # GYP version: mojo/mojo_services.gypi:mojo_view_manager
|
| -component("view_manager") {
|
| - public_deps = [
|
| - "//mojo/services/public/cpp/view_manager:common",
|
| - ]
|
| +shared_library("view_manager") {
|
| + output_name = "mojo_view_manager"
|
| +
|
| deps = [
|
| "//base",
|
| "//cc/surfaces",
|
| "//mojo/application",
|
| "//mojo/common",
|
| "//mojo/environment:chromium",
|
| - "//mojo/public/c/system:for_component",
|
| + "//mojo/public/c/system:for_shared_library",
|
| "//mojo/public/cpp/bindings",
|
| "//mojo/public/interfaces/application",
|
| "//mojo/services/public/cpp/geometry",
|
| @@ -44,7 +45,6 @@ component("view_manager") {
|
| "default_access_policy.h",
|
| "display_manager.cc",
|
| "display_manager.h",
|
| - "ids.h",
|
| "main.cc",
|
| "server_view.cc",
|
| "server_view.h",
|
| @@ -64,7 +64,6 @@ component("view_manager") {
|
| # GYP version: mojo/mojo_services.gypi:mojo_view_manager_unittests
|
| test("mojo_view_manager_unittests") {
|
| deps = [
|
| - ":view_manager",
|
| "//base",
|
| "//base/test:test_support",
|
| "//mojo/application",
|
| @@ -75,16 +74,20 @@ test("mojo_view_manager_unittests") {
|
| "//mojo/services/public/cpp/geometry",
|
| "//mojo/services/public/cpp/view_manager",
|
| "//mojo/services/public/cpp/view_manager/lib:run_unittests",
|
| - "//mojo/services/public/cpp/view_manager:common",
|
| - "//mojo/services/public/interfaces/input_events",
|
| - "//mojo/services/public/interfaces/geometry",
|
| - "//mojo/services/public/interfaces/view_manager",
|
| "//mojo/shell:test_support",
|
| "//mojo/system",
|
| "//testing/gtest",
|
| "//ui/gfx/geometry",
|
| ]
|
|
|
| + if (use_x11) {
|
| + deps += ["//ui/gfx/x"]
|
| + }
|
| +
|
| + if (is_component_build) {
|
| + deps += ["//ui/gl"]
|
| + }
|
| +
|
| sources = [
|
| "test_change_tracker.cc",
|
| "test_change_tracker.h",
|
|
|