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

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

Issue 2840563004: Move vr features.gni into its own directory. (Closed)
Patch Set: Update references to vr/features.h Created 3 years, 7 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
« no previous file with comments | « device/BUILD.gn ('k') | device/vr/features.gni » ('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("features.gni") 5 import("features/features.gni")
6 import("//build/buildflag_header.gni")
7 import("//mojo/public/tools/bindings/mojom.gni") 6 import("//mojo/public/tools/bindings/mojom.gni")
8 7
9 if (is_android) { 8 if (is_android) {
10 import("//build/config/android/rules.gni") # For generate_jni(). 9 import("//build/config/android/rules.gni") # For generate_jni().
11 } 10 }
12 11
13 # Generate a buildflag header for compile-time checking of WebVR support.
14 buildflag_header("features") {
15 header = "features.h"
16 flags = [
17 "ENABLE_VR=$enable_vr",
18 "ENABLE_OPENVR=$enable_openvr",
19 ]
20 }
21
22 component("vr") { 12 component("vr") {
23 output_name = "device_vr" 13 output_name = "device_vr"
24 14
25 sources = [ 15 sources = [
26 "vr_export.h", 16 "vr_export.h",
27 ] 17 ]
28 defines = [ "DEVICE_VR_IMPLEMENTATION" ] 18 defines = [ "DEVICE_VR_IMPLEMENTATION" ]
29 deps = [ 19 deps = [
30 ":features", 20 ":mojo_bindings",
21 "features",
31 ] 22 ]
32 if (!is_ios) {
33 deps += [ ":mojo_bindings" ]
34 }
35 23
36 if (!enable_vr) { 24 if (!enable_vr) {
37 sources += [ 25 sources += [
38 # We need to include an empty .cc file so that mac and windows don't fall over when trying to 26 # We need to include an empty .cc file so that mac and windows don't fall over when trying to
39 # compile this when webvr is disabled. 27 # compile this when webvr is disabled.
40 "empty.cc", 28 "empty.cc",
41 ] 29 ]
42 } else { 30 } else {
43 sources += [ 31 sources += [
44 "vr_device.cc", 32 "vr_device.cc",
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 109
122 public_deps = [ 110 public_deps = [
123 ":mojo_bindings", 111 ":mojo_bindings",
124 ":vr", 112 ":vr",
125 "//base", 113 "//base",
126 "//mojo/public/cpp/bindings", 114 "//mojo/public/cpp/bindings",
127 ] 115 ]
128 } 116 }
129 } 117 }
130 118
131 if (!is_ios) { 119 mojom("mojo_bindings") {
132 mojom("mojo_bindings") { 120 sources = [
133 sources = [ 121 "vr_service.mojom",
134 "vr_service.mojom", 122 ]
135 ]
136 123
137 public_deps = [ 124 public_deps = [
138 "//gpu/ipc/common:interfaces", 125 "//gpu/ipc/common:interfaces",
139 "//mojo/common:common_custom_types", 126 "//mojo/common:common_custom_types",
140 ] 127 ]
141 128
142 export_class_attribute = "DEVICE_VR_EXPORT" 129 export_class_attribute = "DEVICE_VR_EXPORT"
143 export_define = "DEVICE_VR_IMPLEMENTATION=1" 130 export_define = "DEVICE_VR_IMPLEMENTATION=1"
144 export_header = "device/vr/vr_export.h" 131 export_header = "device/vr/vr_export.h"
145 }
146 } 132 }
OLDNEW
« no previous file with comments | « device/BUILD.gn ('k') | device/vr/features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698