Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: chrome/browser/android/vr_shell/BUILD.gn

Issue 2467873004: Linking arm and arm64 gvr static shim library (Closed)
Patch Set: Move DEPS to android Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | device/vr/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_vr_shell || enable_webvr)
10 10
11 static_library("vr_common") { 11 if (current_cpu == "arm" || current_cpu == "arm64") {
12 defines = [] 12 static_library("vr_common") {
13 defines = []
13 14
14 sources = [ 15 sources = [
15 "animation.cc", 16 "animation.cc",
16 "animation.h", 17 "animation.h",
17 "easing.cc", 18 "easing.cc",
18 "easing.h", 19 "easing.h",
19 "ui_elements.cc", 20 "ui_elements.cc",
20 "ui_elements.h", 21 "ui_elements.h",
21 "ui_interface.cc", 22 "ui_interface.cc",
22 "ui_interface.h", 23 "ui_interface.h",
23 "ui_scene.cc", 24 "ui_scene.cc",
24 "ui_scene.h", 25 "ui_scene.h",
25 "vr_compositor.cc", 26 "vr_compositor.cc",
26 "vr_compositor.h", 27 "vr_compositor.h",
27 "vr_controller.cc", 28 "vr_controller.cc",
28 "vr_controller.h", 29 "vr_controller.h",
29 "vr_gesture.h", 30 "vr_gesture.h",
30 "vr_gl_util.cc", 31 "vr_gl_util.cc",
31 "vr_gl_util.h", 32 "vr_gl_util.h",
32 "vr_input_manager.cc", 33 "vr_input_manager.cc",
33 "vr_input_manager.h", 34 "vr_input_manager.h",
34 "vr_math.cc", 35 "vr_math.cc",
35 "vr_math.h", 36 "vr_math.h",
36 "vr_shell.cc", 37 "vr_shell.cc",
37 "vr_shell.h", 38 "vr_shell.h",
38 "vr_shell_delegate.cc", 39 "vr_shell_delegate.cc",
39 "vr_shell_delegate.h", 40 "vr_shell_delegate.h",
40 "vr_shell_renderer.cc", 41 "vr_shell_renderer.cc",
41 "vr_shell_renderer.h", 42 "vr_shell_renderer.h",
42 "vr_web_contents_observer.cc", 43 "vr_web_contents_observer.cc",
43 "vr_web_contents_observer.h", 44 "vr_web_contents_observer.h",
44 ] 45 ]
45 46
46 if (enable_vr_shell_ui_dev) { 47 if (enable_vr_shell_ui_dev) {
47 assert(enable_vr_shell) 48 assert(enable_vr_shell)
48 defines += [ "ENABLE_VR_SHELL_UI_DEV" ] 49 defines += [ "ENABLE_VR_SHELL_UI_DEV" ]
50 }
51
52 deps = [
53 ":vr_shell_jni_headers",
54 "//base",
55 "//cc",
56 "//content/public/browser",
57 "//content/public/common",
58 "//device/vr",
59 "//ui/android",
60 "//ui/base",
61 "//ui/display",
62 "//ui/gl",
63 "//ui/gl/init",
64 ]
65
66 libs =
67 [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ]
68 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
49 } 69 }
50 70
51 deps = [ 71 generate_jni("vr_shell_jni_headers") {
52 ":vr_shell_jni_headers", 72 sources = [
53 "//base", 73 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDel egate.java",
54 "//cc", 74 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImp l.java",
55 "//content/public/browser", 75 ]
56 "//content/public/common", 76 jni_package = "vr_shell"
57 "//device/vr", 77 }
58 "//third_party/gvr-android-sdk:libgvr",
59 "//ui/android",
60 "//ui/base",
61 "//ui/display",
62 "//ui/gl",
63 "//ui/gl/init",
64 ]
65
66 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
67 }
68
69 generate_jni("vr_shell_jni_headers") {
70 sources = [
71 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDeleg ate.java",
72 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl. java",
73 ]
74 jni_package = "vr_shell"
75 } 78 }
76 79
77 if (enable_vr_shell) { 80 if (enable_vr_shell) {
78 test("vr_shell_unittests") { 81 test("vr_shell_unittests") {
79 sources = [ 82 sources = [
80 "ui_elements_unittest.cc", 83 "ui_elements_unittest.cc",
81 "ui_scene_unittest.cc", 84 "ui_scene_unittest.cc",
82 ] 85 ]
83 86
84 deps = [ 87 deps = [
85 ":vr_common", 88 ":vr_common",
86 "//base/test:run_all_unittests", 89 "//base/test:run_all_unittests",
87 "//base/test:test_support", 90 "//base/test:test_support",
88 "//testing/gtest", 91 "//testing/gtest",
89 "//ui/gfx/geometry", 92 "//ui/gfx/geometry",
90 ] 93 ]
91 } 94 }
92 } 95 }
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | device/vr/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698