BUILD.gn revision 5f1c94371a64b3196d4be9466099bb892df9b88e
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 5import("//build/config/ui.gni") 6 7component("native_viewport") { 8 output_name = "mojo_native_viewport" 9 10 deps = [ 11 "//base", 12 "//ui/events", 13 "//ui/gfx", 14 "//ui/gfx/geometry", 15 "//mojo/public/cpp/application:chromium", 16 "//mojo/common", 17 "//mojo/environment:chromium", 18 "//mojo/services/public/cpp/geometry", 19 "//mojo/services/public/interfaces/geometry", 20 "//mojo/services/gles2", 21 "//mojo/services/public/cpp/input_events", 22 "//mojo/services/public/interfaces/native_viewport", 23 ] 24 25 defines = [ "MOJO_NATIVE_VIEWPORT_IMPLEMENTATION" ] 26 27 sources = [ 28 "native_viewport.h", 29 "native_viewport_android.cc", 30 "native_viewport_mac.mm", 31 "native_viewport_service.cc", 32 "native_viewport_service.h", 33 "native_viewport_win.cc", 34 ] 35 36 if (is_ios) { 37 sources += [ "native_viewport_stub.cc" ] 38 } 39 40 if (is_android) { 41 deps += [ "//mojo:jni_headers" ] 42 } 43 44 if (is_win) { 45 deps += [ 46 # TODO(GYP) 47 # '../ui/platform_window/win/win_window.gyp:win_window', 48 ] 49 } 50 51 if (use_x11) { 52 sources += [ "native_viewport_x11.cc" ] 53 deps += [ "//ui/platform_window/x11" ] 54 } 55 56 if (use_ozone) { 57 sources += [ "native_viewport_ozone.cc" ] 58 } 59 60 if (is_component_build) { 61 deps += [ "//mojo/system" ] 62 } 63} 64