Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: mojo/services/native_viewport/BUILD.gn

Issue 477923004: Create native_viewport_service, don't build it into mojo_shell unless Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove workaround for thunks Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 shared_library("native_viewport") {
9 output_name = "mojo_native_viewport" 9 output_name = "mojo_native_viewport"
10 10
11 deps = [ 11 deps = [
12 ":lib",
13 "//mojo/services/public/interfaces/native_viewport",
14 ]
15 deps += mojo_system_for_shared_library
16
17 sources = [ "main.cc" ]
18 }
19
20 source_set("lib") {
21 deps = [
12 "//base", 22 "//base",
13 "//cc/surfaces", 23 "//cc/surfaces",
14 "//mojo/common", 24 "//mojo/common",
15 "//mojo/environment:chromium", 25 "//mojo/environment:chromium",
16 "//mojo/public/cpp/application:chromium", 26 "//mojo/public/cpp/application:chromium",
17 "//mojo/services/gles2", 27 "//mojo/services/gles2",
18 "//mojo/services/public/cpp/geometry", 28 "//mojo/services/public/cpp/geometry",
19 "//mojo/services/public/cpp/input_events", 29 "//mojo/services/public/cpp/input_events",
20 "//mojo/services/public/cpp/surfaces", 30 "//mojo/services/public/cpp/surfaces",
21 "//mojo/services/public/interfaces/geometry", 31 "//mojo/services/public/interfaces/geometry",
(...skipping 20 matching lines...) Expand all
42 ] 52 ]
43 53
44 if (is_ios) { 54 if (is_ios) {
45 sources += [ "platform_viewport_stub.cc" ] 55 sources += [ "platform_viewport_stub.cc" ]
46 } 56 }
47 57
48 if (is_android) { 58 if (is_android) {
49 deps += [ "//mojo:jni_headers" ] 59 deps += [ "//mojo:jni_headers" ]
50 } 60 }
51 61
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) { 62 if (use_x11) {
60 sources += [ "platform_viewport_x11.cc" ] 63 sources += [ "platform_viewport_x11.cc" ]
61 deps += [ 64 deps += [
62 "//ui/events/platform/x11", 65 "//ui/events/platform/x11",
63 "//ui/platform_window/x11", 66 "//ui/platform_window/x11",
64 ] 67 ]
65 } 68 }
66 69
67 if (use_ozone) { 70 if (use_ozone) {
68 sources += [ "platform_viewport_ozone.cc" ] 71 sources += [ "platform_viewport_ozone.cc" ]
69 } 72 }
70 } 73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698