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

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

Issue 2467873004: Linking arm and arm64 gvr static shim library (Closed)
Patch Set: Final cleanup before review 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
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/gl",
62 "//ui/gl/init",
63 ]
64
65 libs =
66 [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ]
67 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
49 } 68 }
50 69
51 deps = [ 70 generate_jni("vr_shell_jni_headers") {
52 ":vr_shell_jni_headers", 71 sources = [
53 "//base", 72 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDel egate.java",
54 "//cc", 73 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImp l.java",
55 "//content/public/browser", 74 ]
56 "//content/public/common", 75 jni_package = "vr_shell"
57 "//device/vr", 76 }
58 "//third_party/gvr-android-sdk:libgvr",
59 "//ui/android",
60 "//ui/base",
61 "//ui/gl",
62 "//ui/gl/init",
63 ]
64
65 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
66 }
67
68 generate_jni("vr_shell_jni_headers") {
69 sources = [
70 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDeleg ate.java",
71 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl. java",
72 ]
73 jni_package = "vr_shell"
74 } 77 }
75 78
76 if (enable_vr_shell) { 79 if (enable_vr_shell) {
77 test("vr_shell_unittests") { 80 test("vr_shell_unittests") {
78 sources = [ 81 sources = [
79 "ui_elements_unittest.cc", 82 "ui_elements_unittest.cc",
80 "ui_scene_unittest.cc", 83 "ui_scene_unittest.cc",
81 ] 84 ]
82 85
83 deps = [ 86 deps = [
84 ":vr_common", 87 ":vr_common",
85 "//base/test:run_all_unittests", 88 "//base/test:run_all_unittests",
86 "//base/test:test_support", 89 "//base/test:test_support",
87 "//testing/gtest", 90 "//testing/gtest",
88 "//ui/gfx/geometry", 91 "//ui/gfx/geometry",
89 ] 92 ]
90 } 93 }
91 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698