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