| 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("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 assert(enable_vr_shell || enable_webvr) | 9 assert(enable_webvr) |
| 10 | 10 |
| 11 if (current_cpu == "arm" || current_cpu == "arm64") { | 11 if (current_cpu == "arm" || current_cpu == "arm64") { |
| 12 static_library("vr_common") { | 12 static_library("vr_common") { |
| 13 defines = [] | 13 defines = [] |
| 14 | 14 |
| 15 sources = [ | 15 sources = [ |
| 16 "animation.cc", | 16 "animation.cc", |
| 17 "animation.h", | 17 "animation.h", |
| 18 "easing.cc", | 18 "easing.cc", |
| 19 "easing.h", | 19 "easing.h", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 "vr_shell_gl.cc", | 47 "vr_shell_gl.cc", |
| 48 "vr_shell_gl.h", | 48 "vr_shell_gl.h", |
| 49 "vr_shell_renderer.cc", | 49 "vr_shell_renderer.cc", |
| 50 "vr_shell_renderer.h", | 50 "vr_shell_renderer.h", |
| 51 "vr_usage_monitor.cc", | 51 "vr_usage_monitor.cc", |
| 52 "vr_usage_monitor.h", | 52 "vr_usage_monitor.h", |
| 53 "vr_web_contents_observer.cc", | 53 "vr_web_contents_observer.cc", |
| 54 "vr_web_contents_observer.h", | 54 "vr_web_contents_observer.h", |
| 55 ] | 55 ] |
| 56 | 56 |
| 57 if (enable_vr_shell) { | |
| 58 defines += [ "ENABLE_VR_SHELL" ] | |
| 59 } | |
| 60 if (enable_vr_shell_ui_dev) { | 57 if (enable_vr_shell_ui_dev) { |
| 61 assert(enable_vr_shell) | |
| 62 defines += [ "ENABLE_VR_SHELL_UI_DEV" ] | 58 defines += [ "ENABLE_VR_SHELL_UI_DEV" ] |
| 63 } | 59 } |
| 64 | 60 |
| 65 deps = [ | 61 deps = [ |
| 66 ":vr_shell_jni_headers", | 62 ":vr_shell_jni_headers", |
| 67 "//base", | 63 "//base", |
| 68 "//cc", | 64 "//cc", |
| 69 "//components/omnibox/browser", | 65 "//components/omnibox/browser", |
| 70 "//components/rappor", | 66 "//components/rappor", |
| 71 "//components/security_state/core", | 67 "//components/security_state/core", |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ":vr_common", | 103 ":vr_common", |
| 108 "//base/test:run_all_unittests", | 104 "//base/test:run_all_unittests", |
| 109 "//base/test:test_support", | 105 "//base/test:test_support", |
| 110 "//chrome/browser", | 106 "//chrome/browser", |
| 111 "//testing/gtest", | 107 "//testing/gtest", |
| 112 "//third_party/WebKit/public:blink", | 108 "//third_party/WebKit/public:blink", |
| 113 "//ui/gfx/geometry", | 109 "//ui/gfx/geometry", |
| 114 ] | 110 ] |
| 115 } | 111 } |
| 116 } | 112 } |
| OLD | NEW |