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("//mojo/system.gni") |
6 | 7 |
7 component("native_viewport") { | 8 component("native_viewport") { |
8 output_name = "mojo_native_viewport" | 9 output_name = "mojo_native_viewport" |
9 | 10 |
10 deps = [ | 11 deps = [ |
11 "//base", | 12 "//base", |
12 "//ui/events", | 13 "//ui/events", |
13 "//ui/gfx", | 14 "//ui/gfx", |
14 "//ui/gfx/geometry", | 15 "//ui/gfx/geometry", |
15 "//mojo/public/cpp/application:chromium", | 16 "//mojo/public/cpp/application:chromium", |
16 "//mojo/common", | 17 "//mojo/common", |
17 "//mojo/environment:chromium", | 18 "//mojo/environment:chromium", |
18 "//mojo/services/public/cpp/geometry", | 19 "//mojo/services/public/cpp/geometry", |
19 "//mojo/services/public/interfaces/geometry", | 20 "//mojo/services/public/interfaces/geometry", |
20 "//mojo/services/gles2", | 21 "//mojo/services/gles2", |
21 "//mojo/services/public/cpp/input_events", | 22 "//mojo/services/public/cpp/input_events", |
22 "//mojo/services/public/interfaces/native_viewport", | 23 "//mojo/services/public/interfaces/native_viewport", |
23 ] | 24 ] |
| 25 deps += mojo_system_for_component |
24 | 26 |
25 defines = [ "MOJO_NATIVE_VIEWPORT_IMPLEMENTATION" ] | 27 defines = [ "MOJO_NATIVE_VIEWPORT_IMPLEMENTATION" ] |
26 | 28 |
27 sources = [ | 29 sources = [ |
28 "native_viewport.h", | 30 "native_viewport.h", |
29 "native_viewport_android.cc", | 31 "native_viewport_android.cc", |
30 "native_viewport_mac.mm", | 32 "native_viewport_mac.mm", |
31 "native_viewport_service.cc", | 33 "native_viewport_service.cc", |
32 "native_viewport_service.h", | 34 "native_viewport_service.h", |
33 "native_viewport_win.cc", | 35 "native_viewport_win.cc", |
(...skipping 15 matching lines...) Loading... |
49 } | 51 } |
50 | 52 |
51 if (use_x11) { | 53 if (use_x11) { |
52 sources += [ "native_viewport_x11.cc" ] | 54 sources += [ "native_viewport_x11.cc" ] |
53 deps += [ "//ui/platform_window/x11" ] | 55 deps += [ "//ui/platform_window/x11" ] |
54 } | 56 } |
55 | 57 |
56 if (use_ozone) { | 58 if (use_ozone) { |
57 sources += [ "native_viewport_ozone.cc" ] | 59 sources += [ "native_viewport_ozone.cc" ] |
58 } | 60 } |
59 | |
60 if (is_component_build) { | |
61 deps += [ "//mojo/system" ] | |
62 } | |
63 } | 61 } |
OLD | NEW |