| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/config/ui.gni") | |
| 6 | |
| 7 if (!is_android) { | |
| 8 shared_library("native_viewport") { | |
| 9 output_name = "mojo_native_viewport_service" | |
| 10 | |
| 11 deps = [ | |
| 12 ":lib", | |
| 13 "//base", | |
| 14 "//mojo/application", | |
| 15 "//mojo/public/c/system:for_shared_library", | |
| 16 "//mojo/public/cpp/bindings:bindings", | |
| 17 "//mojo/services/public/interfaces/native_viewport", | |
| 18 "//mojo/services/public/cpp/native_viewport:args", | |
| 19 "//ui/gl", | |
| 20 ] | |
| 21 | |
| 22 sources = [ "main.cc" ] | |
| 23 } | |
| 24 } | |
| 25 | |
| 26 source_set("lib") { | |
| 27 deps = [ | |
| 28 "//base", | |
| 29 "//cc/surfaces", | |
| 30 "//gpu/command_buffer/service", | |
| 31 "//mojo/application", | |
| 32 "//mojo/common", | |
| 33 "//mojo/converters/geometry", | |
| 34 "//mojo/converters/input_events", | |
| 35 "//mojo/converters/surfaces", | |
| 36 "//mojo/environment:chromium", | |
| 37 "//mojo/services/gles2", | |
| 38 "//mojo/services/public/interfaces/geometry", | |
| 39 "//mojo/services/public/interfaces/gpu", | |
| 40 "//mojo/services/public/interfaces/native_viewport", | |
| 41 "//mojo/services/public/interfaces/surfaces", | |
| 42 "//ui/events", | |
| 43 "//ui/events/platform", | |
| 44 "//ui/gfx", | |
| 45 "//ui/gfx/geometry", | |
| 46 "//ui/gl", | |
| 47 "//ui/platform_window", | |
| 48 ] | |
| 49 | |
| 50 sources = [ | |
| 51 "gpu_impl.cc", | |
| 52 "gpu_impl.h", | |
| 53 "native_viewport_impl.cc", | |
| 54 "native_viewport_impl.h", | |
| 55 "platform_viewport.h", | |
| 56 "platform_viewport_android.cc", | |
| 57 "platform_viewport_android.h", | |
| 58 "platform_viewport_mac.mm", | |
| 59 "platform_viewport_headless.cc", | |
| 60 "platform_viewport_headless.h", | |
| 61 "platform_viewport_win.cc", | |
| 62 "viewport_surface.cc", | |
| 63 "viewport_surface.h", | |
| 64 ] | |
| 65 | |
| 66 libs = [] | |
| 67 | |
| 68 if (is_ios) { | |
| 69 sources += [ "platform_viewport_stub.cc" ] | |
| 70 } | |
| 71 | |
| 72 if (is_android) { | |
| 73 deps += [ "//mojo:jni_headers" ] | |
| 74 libs += [ "android" ] | |
| 75 } | |
| 76 | |
| 77 if (use_x11) { | |
| 78 sources += [ "platform_viewport_x11.cc" ] | |
| 79 deps += [ | |
| 80 "//ui/events/platform/x11", | |
| 81 "//ui/platform_window/x11", | |
| 82 ] | |
| 83 } | |
| 84 | |
| 85 if (use_ozone) { | |
| 86 sources += [ "platform_viewport_ozone.cc" ] | |
| 87 } | |
| 88 } | |
| OLD | NEW |