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

Side by Side Diff: device/vr/BUILD.gn

Issue 2817663003: Rendering text on insecure-site warnings for WebVR (Closed)
Patch Set: build workaround Created 3 years, 8 months 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("features.gni") 5 import("features.gni")
6 import("//build/buildflag_header.gni") 6 import("//build/buildflag_header.gni")
7 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") # For generate_jni(). 10 import("//build/config/android/rules.gni") # For generate_jni().
(...skipping 10 matching lines...) Expand all
21 21
22 component("vr") { 22 component("vr") {
23 output_name = "device_vr" 23 output_name = "device_vr"
24 24
25 sources = [ 25 sources = [
26 "vr_export.h", 26 "vr_export.h",
27 ] 27 ]
28 defines = [ "DEVICE_VR_IMPLEMENTATION" ] 28 defines = [ "DEVICE_VR_IMPLEMENTATION" ]
29 deps = [ 29 deps = [
30 ":features", 30 ":features",
31 ":mojo_bindings",
32 ] 31 ]
32 if (!is_ios) {
33 deps += [ ":mojo_bindings" ]
34 }
33 35
34 if (!enable_vr) { 36 if (!enable_vr) {
35 sources += [ 37 sources += [
36 # We need to include an empty .cc file so that mac and windows don't fall over when trying to 38 # We need to include an empty .cc file so that mac and windows don't fall over when trying to
37 # compile this when webvr is disabled. 39 # compile this when webvr is disabled.
38 "empty.cc", 40 "empty.cc",
39 ] 41 ]
40 } else { 42 } else {
41 sources += [ 43 sources += [
42 "vr_device.cc", 44 "vr_device.cc",
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 116
115 public_deps = [ 117 public_deps = [
116 ":mojo_bindings", 118 ":mojo_bindings",
117 ":vr", 119 ":vr",
118 "//base", 120 "//base",
119 "//mojo/public/cpp/bindings", 121 "//mojo/public/cpp/bindings",
120 ] 122 ]
121 } 123 }
122 } 124 }
123 125
124 mojom("mojo_bindings") { 126 if (!is_ios) {
125 sources = [ 127 mojom("mojo_bindings") {
126 "vr_service.mojom", 128 sources = [
127 ] 129 "vr_service.mojom",
130 ]
128 131
129 public_deps = [ 132 public_deps = [
130 "//gpu/ipc/common:interfaces", 133 "//gpu/ipc/common:interfaces",
131 "//mojo/common:common_custom_types", 134 "//mojo/common:common_custom_types",
132 ] 135 ]
133 136
134 export_class_attribute = "DEVICE_VR_EXPORT" 137 export_class_attribute = "DEVICE_VR_EXPORT"
135 export_define = "DEVICE_VR_IMPLEMENTATION=1" 138 export_define = "DEVICE_VR_IMPLEMENTATION=1"
136 export_header = "device/vr/vr_export.h" 139 export_header = "device/vr/vr_export.h"
140 }
137 } 141 }
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | ui/gfx/BUILD.gn » ('j') | ui/gfx/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698