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 import("//mojo/system.gni") |
7 | 7 |
8 if (!is_android) { | 8 static_library("native_viewport") { |
9 shared_library("native_viewport") { | 9 output_name = "mojo_native_viewport" |
10 output_name = "mojo_native_viewport_service" | |
11 | 10 |
12 deps = [ | |
13 ":lib", | |
14 "//mojo/services/public/interfaces/native_viewport", | |
15 ] | |
16 deps += mojo_system_for_shared_library | |
17 | |
18 sources = [ "main.cc" ] | |
19 } | |
20 } | |
21 | |
22 source_set("lib") { | |
23 deps = [ | 11 deps = [ |
24 "//base", | 12 "//base", |
25 "//cc/surfaces", | 13 "//cc/surfaces", |
26 "//mojo/application", | 14 "//mojo/application", |
27 "//mojo/common", | 15 "//mojo/common", |
28 "//mojo/environment:chromium", | 16 "//mojo/environment:chromium", |
29 "//mojo/services/gles2", | 17 "//mojo/services/gles2", |
30 "//mojo/services/public/cpp/geometry", | 18 "//mojo/services/public/cpp/geometry", |
31 "//mojo/services/public/cpp/input_events", | 19 "//mojo/services/public/cpp/input_events", |
32 "//mojo/services/public/cpp/surfaces", | 20 "//mojo/services/public/cpp/surfaces", |
(...skipping 21 matching lines...) Expand all Loading... |
54 ] | 42 ] |
55 | 43 |
56 if (is_ios) { | 44 if (is_ios) { |
57 sources += [ "platform_viewport_stub.cc" ] | 45 sources += [ "platform_viewport_stub.cc" ] |
58 } | 46 } |
59 | 47 |
60 if (is_android) { | 48 if (is_android) { |
61 deps += [ "//mojo:jni_headers" ] | 49 deps += [ "//mojo:jni_headers" ] |
62 } | 50 } |
63 | 51 |
| 52 if (is_win) { |
| 53 deps += [ |
| 54 # TODO(GYP) |
| 55 # '../ui/platform_window/win/win_window.gyp:win_window', |
| 56 ] |
| 57 } |
| 58 |
64 if (use_x11) { | 59 if (use_x11) { |
65 sources += [ "platform_viewport_x11.cc" ] | 60 sources += [ "platform_viewport_x11.cc" ] |
66 deps += [ | 61 deps += [ |
67 "//ui/events/platform/x11", | 62 "//ui/events/platform/x11", |
68 "//ui/platform_window/x11", | 63 "//ui/platform_window/x11", |
69 ] | 64 ] |
70 } | 65 } |
71 | 66 |
72 if (use_ozone) { | 67 if (use_ozone) { |
73 sources += [ "platform_viewport_ozone.cc" ] | 68 sources += [ "platform_viewport_ozone.cc" ] |
74 } | 69 } |
75 } | 70 } |
OLD | NEW |