| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |