| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
| 6 import("//chrome/common/features.gni") | 6 import("//chrome/common/features.gni") |
| 7 import("//device/vr/features/features.gni") | 7 import("//device/vr/features/features.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 assert(enable_vr) | 10 assert(enable_vr) |
| 11 | 11 |
| 12 if (current_cpu == "arm" || current_cpu == "arm64") { | 12 if (current_cpu == "arm" || current_cpu == "arm64") { |
| 13 # This library is platform-independent UI and related modules, which should | 13 # This library is platform-independent UI and related modules, which should |
| 14 # compile on any platform. | 14 # compile on any platform. |
| 15 static_library("vr_common_ui") { | 15 static_library("vr_common_ui") { |
| 16 sources = [ | 16 sources = [ |
| 17 "animation.cc", | 17 "animation.cc", |
| 18 "animation.h", | 18 "animation.h", |
| 19 "color_scheme.cc", | 19 "color_scheme.cc", |
| 20 "color_scheme.h", | 20 "color_scheme.h", |
| 21 "easing.cc", | 21 "easing.cc", |
| 22 "easing.h", | 22 "easing.h", |
| 23 "font_fallback.cc", | 23 "font_fallback.cc", |
| 24 "font_fallback.h", | 24 "font_fallback.h", |
| 25 "fps_meter.cc", | 25 "fps_meter.cc", |
| 26 "fps_meter.h", | 26 "fps_meter.h", |
| 27 "gl_browser_interface.h", |
| 27 "gltf_asset.cc", | 28 "gltf_asset.cc", |
| 28 "gltf_asset.h", | 29 "gltf_asset.h", |
| 29 "gltf_parser.cc", | 30 "gltf_parser.cc", |
| 30 "gltf_parser.h", | 31 "gltf_parser.h", |
| 31 "textures/button_texture.cc", | 32 "textures/button_texture.cc", |
| 32 "textures/button_texture.h", | 33 "textures/button_texture.h", |
| 33 "textures/close_button_texture.cc", | 34 "textures/close_button_texture.cc", |
| 34 "textures/close_button_texture.h", | 35 "textures/close_button_texture.h", |
| 35 "textures/exit_warning_texture.cc", | 36 "textures/exit_warning_texture.cc", |
| 36 "textures/exit_warning_texture.h", | 37 "textures/exit_warning_texture.h", |
| 37 "textures/insecure_content_permanent_texture.cc", | 38 "textures/insecure_content_permanent_texture.cc", |
| 38 "textures/insecure_content_permanent_texture.h", | 39 "textures/insecure_content_permanent_texture.h", |
| 39 "textures/insecure_content_transient_texture.cc", | 40 "textures/insecure_content_transient_texture.cc", |
| 40 "textures/insecure_content_transient_texture.h", | 41 "textures/insecure_content_transient_texture.h", |
| 41 "textures/loading_indicator_texture.cc", | 42 "textures/loading_indicator_texture.cc", |
| 42 "textures/loading_indicator_texture.h", | 43 "textures/loading_indicator_texture.h", |
| 43 "textures/render_text_wrapper.cc", | 44 "textures/render_text_wrapper.cc", |
| 44 "textures/render_text_wrapper.h", | 45 "textures/render_text_wrapper.h", |
| 45 "textures/system_indicator_texture.cc", | 46 "textures/system_indicator_texture.cc", |
| 46 "textures/system_indicator_texture.h", | 47 "textures/system_indicator_texture.h", |
| 47 "textures/ui_texture.cc", | 48 "textures/ui_texture.cc", |
| 48 "textures/ui_texture.h", | 49 "textures/ui_texture.h", |
| 49 "textures/url_bar_texture.cc", | 50 "textures/url_bar_texture.cc", |
| 50 "textures/url_bar_texture.h", | 51 "textures/url_bar_texture.h", |
| 52 "ui_browser_interface.h", |
| 51 "ui_elements/audio_capture_indicator.cc", | 53 "ui_elements/audio_capture_indicator.cc", |
| 52 "ui_elements/audio_capture_indicator.h", | 54 "ui_elements/audio_capture_indicator.h", |
| 53 "ui_elements/button.cc", | 55 "ui_elements/button.cc", |
| 54 "ui_elements/button.h", | 56 "ui_elements/button.h", |
| 55 "ui_elements/exit_warning.cc", | 57 "ui_elements/exit_warning.cc", |
| 56 "ui_elements/exit_warning.h", | 58 "ui_elements/exit_warning.h", |
| 57 "ui_elements/loading_indicator.cc", | 59 "ui_elements/loading_indicator.cc", |
| 58 "ui_elements/loading_indicator.h", | 60 "ui_elements/loading_indicator.h", |
| 59 "ui_elements/permanent_security_warning.cc", | 61 "ui_elements/permanent_security_warning.cc", |
| 60 "ui_elements/permanent_security_warning.h", | 62 "ui_elements/permanent_security_warning.h", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 "ui_elements/url_bar.cc", | 74 "ui_elements/url_bar.cc", |
| 73 "ui_elements/url_bar.h", | 75 "ui_elements/url_bar.h", |
| 74 "ui_elements/video_capture_indicator.cc", | 76 "ui_elements/video_capture_indicator.cc", |
| 75 "ui_elements/video_capture_indicator.h", | 77 "ui_elements/video_capture_indicator.h", |
| 76 "ui_interface.h", | 78 "ui_interface.h", |
| 77 "ui_scene.cc", | 79 "ui_scene.cc", |
| 78 "ui_scene.h", | 80 "ui_scene.h", |
| 79 "ui_scene_manager.cc", | 81 "ui_scene_manager.cc", |
| 80 "ui_scene_manager.h", | 82 "ui_scene_manager.h", |
| 81 "ui_unsupported_mode.h", | 83 "ui_unsupported_mode.h", |
| 82 "vr_browser_interface.h", | |
| 83 ] | 84 ] |
| 84 | 85 |
| 85 deps = [ | 86 deps = [ |
| 86 "//base", | 87 "//base", |
| 87 "//cc/paint", | 88 "//cc/paint", |
| 89 "//chrome/app:generated_resources", |
| 88 "//components/security_state/core", | 90 "//components/security_state/core", |
| 91 "//components/strings", |
| 89 "//components/toolbar:vector_icons", | 92 "//components/toolbar:vector_icons", |
| 90 "//components/url_formatter", | 93 "//components/url_formatter", |
| 91 "//components/vector_icons", | 94 "//components/vector_icons", |
| 92 "//content/public/browser", | 95 "//content/public/browser", |
| 93 "//content/public/common", | 96 "//content/public/common", |
| 94 "//device/vr", | 97 "//device/vr", |
| 95 "//skia", | 98 "//skia", |
| 96 "//ui/base", | 99 "//ui/base", |
| 97 "//ui/display", | 100 "//ui/display", |
| 98 "//ui/gl", | 101 "//ui/gl", |
| 99 "//ui/gl/init", | 102 "//ui/gl/init", |
| 100 "//ui/vector_icons", | 103 "//ui/vector_icons", |
| 101 ] | 104 ] |
| 102 } | 105 } |
| 103 | 106 |
| 107 # This library contains the VR code specific to Android. |
| 108 # TODO(cjgrant): It should be renamed to reflect this. |
| 104 static_library("vr_common") { | 109 static_library("vr_common") { |
| 105 defines = [] | 110 defines = [] |
| 106 | 111 |
| 107 sources = [ | 112 sources = [ |
| 108 "android_ui_gesture_target.cc", | 113 "android_ui_gesture_target.cc", |
| 109 "android_ui_gesture_target.h", | 114 "android_ui_gesture_target.h", |
| 110 "elbow_model.cc", | 115 "elbow_model.cc", |
| 111 "elbow_model.h", | 116 "elbow_model.h", |
| 112 "mailbox_to_surface_bridge.cc", | 117 "mailbox_to_surface_bridge.cc", |
| 113 "mailbox_to_surface_bridge.h", | 118 "mailbox_to_surface_bridge.h", |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 "//ui/gl", | 210 "//ui/gl", |
| 206 ] | 211 ] |
| 207 | 212 |
| 208 data = [ | 213 data = [ |
| 209 "test/data/sample_inline.gltf", | 214 "test/data/sample_inline.gltf", |
| 210 "test/data/sample_external.gltf", | 215 "test/data/sample_external.gltf", |
| 211 "test/data/sample.bin", | 216 "test/data/sample.bin", |
| 212 "test/data/sample.glb", | 217 "test/data/sample.glb", |
| 213 ] | 218 ] |
| 214 } | 219 } |
| OLD | NEW |