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