Index: device/vr/features/BUILD.gn |
diff --git a/device/vr/features/BUILD.gn b/device/vr/features/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e8afb4a3c2c1ff8e312c478d0f62416ca8abb5f8 |
--- /dev/null |
+++ b/device/vr/features/BUILD.gn |
@@ -0,0 +1,15 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("features.gni") |
+import("//build/buildflag_header.gni") |
+ |
+# Generate a buildflag header for compile-time checking of WebVR support. |
+buildflag_header("features") { |
+ header = "features.h" |
+ flags = [ |
+ "ENABLE_VR=$enable_vr", |
+ "ENABLE_OPENVR=$enable_openvr", |
+ ] |
+} |