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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/BUILD.gn ('k') | device/vr/features.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/BUILD.gn
diff --git a/device/vr/BUILD.gn b/device/vr/BUILD.gn
index 27cd5c38765bd3564724f6d43cc5aa7f619d1851..54fb4a3affb86b8f6b49a2d6ea44812de7ff60cf 100644
--- a/device/vr/BUILD.gn
+++ b/device/vr/BUILD.gn
@@ -2,13 +2,20 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//build/config/features.gni")
+import("features.gni")
+import("//build/buildflag_header.gni")
import("//mojo/public/tools/bindings/mojom.gni")
if (is_android) {
import("//build/config/android/rules.gni") # For generate_jni().
}
+# Generate a buildflag header for compile-time checking of WebVR support.
+buildflag_header("features") {
+ header = "features.h"
+ flags = [ "ENABLE_WEBVR=$enable_webvr" ]
+}
+
component("vr") {
output_name = "device_vr"
« 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