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

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

Issue 2745943002: Remove enable_webvr from build/config, and move it to the buildflag_header system. (Closed)
Patch Set: rebase Created 3 years, 9 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("//build/config/features.gni") 5 import("features.gni")
6 import("//build/buildflag_header.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
7 8
8 if (is_android) { 9 if (is_android) {
9 import("//build/config/android/rules.gni") # For generate_jni(). 10 import("//build/config/android/rules.gni") # For generate_jni().
10 } 11 }
11 12
13 # Generate a buildflag header for compile-time checking of WebVR support.
14 buildflag_header("features") {
15 header = "features.h"
16 flags = [ "ENABLE_WEBVR=$enable_webvr" ]
17 }
18
12 component("vr") { 19 component("vr") {
13 output_name = "device_vr" 20 output_name = "device_vr"
14 21
15 sources = [ 22 sources = [
16 "vr_export.h", 23 "vr_export.h",
17 ] 24 ]
18 defines = [ "DEVICE_VR_IMPLEMENTATION" ] 25 defines = [ "DEVICE_VR_IMPLEMENTATION" ]
19 deps = [ 26 deps = [
20 ":mojo_bindings", 27 ":mojo_bindings",
21 ] 28 ]
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 108
102 public_deps = [ 109 public_deps = [
103 "//gpu/ipc/common:interfaces", 110 "//gpu/ipc/common:interfaces",
104 "//mojo/common:common_custom_types", 111 "//mojo/common:common_custom_types",
105 ] 112 ]
106 113
107 export_class_attribute = "DEVICE_VR_EXPORT" 114 export_class_attribute = "DEVICE_VR_EXPORT"
108 export_define = "DEVICE_VR_IMPLEMENTATION=1" 115 export_define = "DEVICE_VR_IMPLEMENTATION=1"
109 export_header = "device/vr/vr_export.h" 116 export_header = "device/vr/vr_export.h"
110 } 117 }
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