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

Side by Side Diff: device/vr/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/vr_shell/BUILD.gn ('k') | third_party/gvr-android-sdk/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/features.gni") 5 import("//build/config/features.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 6 import("//mojo/public/tools/bindings/mojom.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") # For generate_jni(). 9 import("//build/config/android/rules.gni") # For generate_jni().
10 } 10 }
11 11
12 component("vr") { 12 if (current_cpu == "arm" || current_cpu == "arm64") {
13 output_name = "device_vr" 13 component("vr") {
14 output_name = "device_vr"
14 15
15 sources = [ 16 sources = [
16 "vr_device.cc", 17 "vr_device.cc",
17 "vr_device.h", 18 "vr_device.h",
18 "vr_device_manager.cc", 19 "vr_device_manager.cc",
19 "vr_device_manager.h", 20 "vr_device_manager.h",
20 "vr_device_provider.h", 21 "vr_device_provider.h",
21 "vr_display_impl.cc", 22 "vr_display_impl.cc",
22 "vr_display_impl.h", 23 "vr_display_impl.h",
23 "vr_service_impl.cc", 24 "vr_service_impl.cc",
24 "vr_service_impl.h", 25 "vr_service_impl.h",
25 ]
26
27 deps = [
28 ":mojo_bindings",
29 "//base",
30 "//mojo/public/cpp/bindings",
31 "//ui/gfx",
32 ]
33
34 defines = [ "DEVICE_VR_IMPLEMENTATION" ]
35
36 if (is_android) {
37 sources += [
38 "android/gvr/gvr_delegate.cc",
39 "android/gvr/gvr_delegate.h",
40 "android/gvr/gvr_device.cc",
41 "android/gvr/gvr_device.h",
42 "android/gvr/gvr_device_provider.cc",
43 "android/gvr/gvr_device_provider.h",
44 "android/gvr/gvr_gamepad_data_fetcher.cc",
45 "android/gvr/gvr_gamepad_data_fetcher.h",
46 ] 26 ]
47 27
48 deps += [ 28 deps = [
49 "//device/gamepad", 29 ":mojo_bindings",
50 "//third_party/WebKit/public:blink_headers", 30 "//base",
51 "//third_party/gvr-android-sdk:libgvr", 31 "//mojo/public/cpp/bindings",
32 "//ui/gfx",
52 ] 33 ]
53 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] 34
35 defines = [ "DEVICE_VR_IMPLEMENTATION" ]
36
37 if (is_android) {
38 sources += [
39 "android/gvr/gvr_delegate.cc",
40 "android/gvr/gvr_delegate.h",
41 "android/gvr/gvr_device.cc",
42 "android/gvr/gvr_device.h",
43 "android/gvr/gvr_device_provider.cc",
44 "android/gvr/gvr_device_provider.h",
45 "android/gvr/gvr_gamepad_data_fetcher.cc",
46 "android/gvr/gvr_gamepad_data_fetcher.h",
47 ]
48
49 deps += [
50 "//device/gamepad",
51 "//third_party/WebKit/public:blink_headers",
52 ]
53 ldflags = [ "-landroid" ]
54 libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}. a" ]
55 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
56 }
57 }
58
59 static_library("fakes") {
60 testonly = true
61
62 sources = [
63 "test/fake_vr_device.cc",
64 "test/fake_vr_device.h",
65 "test/fake_vr_device_provider.cc",
66 "test/fake_vr_device_provider.h",
67 ]
68
69 public_deps = [
70 ":mojo_bindings",
71 ":vr",
72 "//base",
73 "//mojo/public/cpp/bindings",
74 ]
54 } 75 }
55 } 76 }
56 77
57 static_library("fakes") {
58 testonly = true
59
60 sources = [
61 "test/fake_vr_device.cc",
62 "test/fake_vr_device.h",
63 "test/fake_vr_device_provider.cc",
64 "test/fake_vr_device_provider.h",
65 ]
66
67 public_deps = [
68 ":mojo_bindings",
69 ":vr",
70 "//base",
71 "//mojo/public/cpp/bindings",
72 ]
73 }
74
75 mojom("mojo_bindings") { 78 mojom("mojo_bindings") {
76 sources = [ 79 sources = [
77 "vr_service.mojom", 80 "vr_service.mojom",
78 ] 81 ]
79 82
80 use_new_wrapper_types = false 83 use_new_wrapper_types = false
81 } 84 }
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | third_party/gvr-android-sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698