OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//third_party/mojo/src/mojo/public/mojo_application.gni") | 6 import("//third_party/mojo/src/mojo/public/mojo_application.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 25 matching lines...) Expand all Loading... |
36 } else { | 36 } else { |
37 mojo_native_application("native_viewport") { | 37 mojo_native_application("native_viewport") { |
38 output_name = "native_viewport_service" | 38 output_name = "native_viewport_service" |
39 sources = [ | 39 sources = [ |
40 "main.cc", | 40 "main.cc", |
41 ] | 41 ] |
42 deps = [ | 42 deps = [ |
43 ":lib", | 43 ":lib", |
44 "//base", | 44 "//base", |
45 "//components/gles2", | 45 "//components/gles2", |
| 46 "//components/native_viewport/public/cpp:args", |
| 47 "//components/native_viewport/public/interfaces", |
46 "//mojo/application", | 48 "//mojo/application", |
47 "//mojo/common:tracing_impl", | 49 "//mojo/common:tracing_impl", |
48 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", | 50 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", |
49 "//third_party/mojo_services/src/native_viewport/public/interfaces", | |
50 "//third_party/mojo_services/src/native_viewport/public/cpp:args", | |
51 "//ui/events", | 51 "//ui/events", |
52 "//ui/events/platform", | 52 "//ui/events/platform", |
53 "//ui/gl", | 53 "//ui/gl", |
54 ] | 54 ] |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 source_set("lib") { | 58 source_set("lib") { |
59 sources = [ | 59 sources = [ |
60 "native_viewport_impl.cc", | 60 "native_viewport_impl.cc", |
(...skipping 10 matching lines...) Expand all Loading... |
71 "platform_viewport_x11.cc", | 71 "platform_viewport_x11.cc", |
72 ] | 72 ] |
73 | 73 |
74 if (!is_ios) { | 74 if (!is_ios) { |
75 sources -= [ "platform_viewport_stub.cc" ] | 75 sources -= [ "platform_viewport_stub.cc" ] |
76 } | 76 } |
77 | 77 |
78 deps = [ | 78 deps = [ |
79 "//base", | 79 "//base", |
80 "//components/gles2", | 80 "//components/gles2", |
| 81 "//components/native_viewport/public/interfaces", |
81 "//gpu/command_buffer/service", | 82 "//gpu/command_buffer/service", |
82 "//mojo/application", | 83 "//mojo/application", |
83 "//mojo/common", | 84 "//mojo/common", |
84 "//mojo/converters/geometry", | 85 "//mojo/converters/geometry", |
85 "//mojo/converters/input_events", | 86 "//mojo/converters/input_events", |
86 "//mojo/environment:chromium", | 87 "//mojo/environment:chromium", |
87 "//third_party/mojo_services/src/geometry/public/interfaces", | |
88 "//third_party/mojo_services/src/native_viewport/public/interfaces", | |
89 "//ui/events", | 88 "//ui/events", |
90 "//ui/events/platform", | 89 "//ui/events/platform", |
91 "//ui/gfx", | 90 "//ui/gfx", |
92 "//ui/gfx/geometry", | 91 "//ui/gfx/geometry", |
93 "//ui/gl", | 92 "//ui/gl", |
| 93 "//ui/mojo/geometry:interfaces", |
94 "//ui/platform_window", | 94 "//ui/platform_window", |
95 ] | 95 ] |
96 | 96 |
97 if (is_android) { | 97 if (is_android) { |
98 deps += [ ":jni_headers" ] | 98 deps += [ ":jni_headers" ] |
99 } | 99 } |
100 | 100 |
101 if (use_x11) { | 101 if (use_x11) { |
102 deps += [ "//ui/platform_window/x11" ] | 102 deps += [ "//ui/platform_window/x11" ] |
103 } else { | 103 } else { |
104 sources -= [ "platform_viewport_x11.cc" ] | 104 sources -= [ "platform_viewport_x11.cc" ] |
105 } | 105 } |
106 | 106 |
107 if (is_win) { | 107 if (is_win) { |
108 deps += [ "//ui/platform_window/win:win_window" ] | 108 deps += [ "//ui/platform_window/win:win_window" ] |
109 } | 109 } |
110 } | 110 } |
OLD | NEW |