| 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 static_library("vr_common") { | 13 # This library is platform-independent UI and related modules, which should |
| 14 defines = [] | 14 # compile on any platform. |
| 15 | 15 static_library("vr_common_ui") { |
| 16 sources = [ | 16 sources = [ |
| 17 "android_ui_gesture_target.cc", | |
| 18 "android_ui_gesture_target.h", | |
| 19 "animation.cc", | 17 "animation.cc", |
| 20 "animation.h", | 18 "animation.h", |
| 21 "color_scheme.cc", | 19 "color_scheme.cc", |
| 22 "color_scheme.h", | 20 "color_scheme.h", |
| 23 "easing.cc", | 21 "easing.cc", |
| 24 "easing.h", | 22 "easing.h", |
| 25 "elbow_model.cc", | |
| 26 "elbow_model.h", | |
| 27 "font_fallback.cc", | 23 "font_fallback.cc", |
| 28 "font_fallback.h", | 24 "font_fallback.h", |
| 29 "fps_meter.cc", | 25 "fps_meter.cc", |
| 30 "fps_meter.h", | 26 "fps_meter.h", |
| 31 "gltf_asset.cc", | 27 "gltf_asset.cc", |
| 32 "gltf_asset.h", | 28 "gltf_asset.h", |
| 33 "gltf_parser.cc", | 29 "gltf_parser.cc", |
| 34 "gltf_parser.h", | 30 "gltf_parser.h", |
| 35 "mailbox_to_surface_bridge.cc", | |
| 36 "mailbox_to_surface_bridge.h", | |
| 37 "non_presenting_gvr_delegate.cc", | |
| 38 "non_presenting_gvr_delegate.h", | |
| 39 "textures/button_texture.cc", | 31 "textures/button_texture.cc", |
| 40 "textures/button_texture.h", | 32 "textures/button_texture.h", |
| 41 "textures/close_button_texture.cc", | 33 "textures/close_button_texture.cc", |
| 42 "textures/close_button_texture.h", | 34 "textures/close_button_texture.h", |
| 43 "textures/exit_warning_texture.cc", | 35 "textures/exit_warning_texture.cc", |
| 44 "textures/exit_warning_texture.h", | 36 "textures/exit_warning_texture.h", |
| 45 "textures/insecure_content_permanent_texture.cc", | 37 "textures/insecure_content_permanent_texture.cc", |
| 46 "textures/insecure_content_permanent_texture.h", | 38 "textures/insecure_content_permanent_texture.h", |
| 47 "textures/insecure_content_transient_texture.cc", | 39 "textures/insecure_content_transient_texture.cc", |
| 48 "textures/insecure_content_transient_texture.h", | 40 "textures/insecure_content_transient_texture.h", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 "ui_elements/url_bar.h", | 73 "ui_elements/url_bar.h", |
| 82 "ui_elements/video_capture_indicator.cc", | 74 "ui_elements/video_capture_indicator.cc", |
| 83 "ui_elements/video_capture_indicator.h", | 75 "ui_elements/video_capture_indicator.h", |
| 84 "ui_interface.h", | 76 "ui_interface.h", |
| 85 "ui_scene.cc", | 77 "ui_scene.cc", |
| 86 "ui_scene.h", | 78 "ui_scene.h", |
| 87 "ui_scene_manager.cc", | 79 "ui_scene_manager.cc", |
| 88 "ui_scene_manager.h", | 80 "ui_scene_manager.h", |
| 89 "ui_unsupported_mode.h", | 81 "ui_unsupported_mode.h", |
| 90 "vr_browser_interface.h", | 82 "vr_browser_interface.h", |
| 83 ] |
| 84 |
| 85 deps = [ |
| 86 "//base", |
| 87 "//cc/paint", |
| 88 "//components/security_state/core", |
| 89 "//components/url_formatter", |
| 90 "//components/vector_icons", |
| 91 "//content/public/browser", |
| 92 "//content/public/common", |
| 93 "//device/vr", |
| 94 "//skia", |
| 95 "//ui/base", |
| 96 "//ui/display", |
| 97 "//ui/gl", |
| 98 "//ui/gl/init", |
| 99 "//ui/vector_icons", |
| 100 ] |
| 101 } |
| 102 |
| 103 static_library("vr_common") { |
| 104 defines = [] |
| 105 |
| 106 sources = [ |
| 107 "android_ui_gesture_target.cc", |
| 108 "android_ui_gesture_target.h", |
| 109 "elbow_model.cc", |
| 110 "elbow_model.h", |
| 111 "mailbox_to_surface_bridge.cc", |
| 112 "mailbox_to_surface_bridge.h", |
| 113 "non_presenting_gvr_delegate.cc", |
| 114 "non_presenting_gvr_delegate.h", |
| 91 "vr_compositor.cc", | 115 "vr_compositor.cc", |
| 92 "vr_compositor.h", | 116 "vr_compositor.h", |
| 93 "vr_controller.cc", | 117 "vr_controller.cc", |
| 94 "vr_controller.h", | 118 "vr_controller.h", |
| 95 "vr_controller_model.cc", | 119 "vr_controller_model.cc", |
| 96 "vr_controller_model.h", | 120 "vr_controller_model.h", |
| 97 "vr_gl_thread.cc", | 121 "vr_gl_thread.cc", |
| 98 "vr_gl_thread.h", | 122 "vr_gl_thread.h", |
| 99 "vr_gl_util.cc", | 123 "vr_gl_util.cc", |
| 100 "vr_gl_util.h", | 124 "vr_gl_util.h", |
| 101 "vr_input_manager.cc", | 125 "vr_input_manager.cc", |
| 102 "vr_input_manager.h", | 126 "vr_input_manager.h", |
| 103 "vr_shell.cc", | 127 "vr_shell.cc", |
| 104 "vr_shell.h", | 128 "vr_shell.h", |
| 105 "vr_shell_delegate.cc", | 129 "vr_shell_delegate.cc", |
| 106 "vr_shell_delegate.h", | 130 "vr_shell_delegate.h", |
| 107 "vr_shell_gl.cc", | 131 "vr_shell_gl.cc", |
| 108 "vr_shell_gl.h", | 132 "vr_shell_gl.h", |
| 109 "vr_shell_renderer.cc", | 133 "vr_shell_renderer.cc", |
| 110 "vr_shell_renderer.h", | 134 "vr_shell_renderer.h", |
| 111 "vr_usage_monitor.cc", | 135 "vr_usage_monitor.cc", |
| 112 "vr_usage_monitor.h", | 136 "vr_usage_monitor.h", |
| 113 "vr_web_contents_observer.cc", | 137 "vr_web_contents_observer.cc", |
| 114 "vr_web_contents_observer.h", | 138 "vr_web_contents_observer.h", |
| 115 ] | 139 ] |
| 116 | 140 |
| 117 deps = [ | 141 deps = [ |
| 142 ":vr_common_ui", |
| 118 ":vr_shell_jni_headers", | 143 ":vr_shell_jni_headers", |
| 119 "//base", | 144 "//base", |
| 120 "//cc", | 145 "//cc", |
| 121 "//chrome:resources", | 146 "//chrome:resources", |
| 122 "//components/omnibox/browser", | |
| 123 "//components/rappor", | 147 "//components/rappor", |
| 124 "//components/security_state/core", | |
| 125 "//components/vector_icons", | |
| 126 "//content/public/android:jni", | 148 "//content/public/android:jni", |
| 127 "//content/public/browser", | 149 "//content/public/browser", |
| 128 "//content/public/common", | 150 "//content/public/common", |
| 129 "//device/gamepad", | 151 "//device/gamepad", |
| 130 "//device/vr", | 152 "//device/vr", |
| 131 "//services/ui/public/cpp/gpu", | 153 "//services/ui/public/cpp/gpu", |
| 132 "//ui/android", | 154 "//ui/android", |
| 133 "//ui/base", | 155 "//ui/base", |
| 134 "//ui/display", | 156 "//ui/display", |
| 135 "//ui/gl", | 157 "//ui/gl", |
| 136 "//ui/gl/init", | 158 "//ui/gl/init", |
| 137 "//ui/vector_icons", | |
| 138 ] | 159 ] |
| 139 | 160 |
| 140 public_deps = [ | 161 public_deps = [ |
| 141 "//device/vr:mojo_bindings", | 162 "//device/vr:mojo_bindings", |
| 142 ] | 163 ] |
| 143 | 164 |
| 144 libs = [ | 165 libs = [ |
| 145 "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a", | 166 "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a", |
| 146 "android", | 167 "android", |
| 147 ] | 168 ] |
| (...skipping 17 matching lines...) Expand all Loading... |
| 165 "test/paths.cc", | 186 "test/paths.cc", |
| 166 "test/paths.h", | 187 "test/paths.h", |
| 167 "textures/close_button_texture_unittest.cc", | 188 "textures/close_button_texture_unittest.cc", |
| 168 "textures/url_bar_texture_unittest.cc", | 189 "textures/url_bar_texture_unittest.cc", |
| 169 "ui_elements/ui_element_unittest.cc", | 190 "ui_elements/ui_element_unittest.cc", |
| 170 "ui_scene_manager_unittest.cc", | 191 "ui_scene_manager_unittest.cc", |
| 171 "ui_scene_unittest.cc", | 192 "ui_scene_unittest.cc", |
| 172 ] | 193 ] |
| 173 | 194 |
| 174 deps = [ | 195 deps = [ |
| 175 ":vr_common", | 196 ":vr_common_ui", |
| 176 "//base/test:run_all_unittests", | 197 "//base/test:run_all_unittests", |
| 177 "//base/test:test_support", | 198 "//base/test:test_support", |
| 178 "//chrome/browser", | 199 "//components/security_state/core", |
| 179 "//components/url_formatter", | 200 "//skia", |
| 180 "//testing/gmock", | 201 "//testing/gmock", |
| 181 "//testing/gtest", | 202 "//testing/gtest", |
| 182 "//third_party/WebKit/public:blink", | |
| 183 "//ui/gfx/geometry", | 203 "//ui/gfx/geometry", |
| 204 "//ui/gl", |
| 184 ] | 205 ] |
| 185 | 206 |
| 186 # Ensure libgvr static library appears before gcc library in linking order. | |
| 187 # See https://crbug.com/704305 for details. | |
| 188 libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ] | |
| 189 | |
| 190 data = [ | 207 data = [ |
| 191 "test/data/sample_inline.gltf", | 208 "test/data/sample_inline.gltf", |
| 192 "test/data/sample_external.gltf", | 209 "test/data/sample_external.gltf", |
| 193 "test/data/sample.bin", | 210 "test/data/sample.bin", |
| 194 "test/data/sample.glb", | 211 "test/data/sample.glb", |
| 195 ] | 212 ] |
| 196 } | 213 } |
| OLD | NEW |