blob: f14f4b21d723e5e67f23a3fe33fa2d31e2993e57 [file] [log] [blame]
# Copyright 2018 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("//device/vr/buildflags/buildflags.gni")
import("//mojo/public/tools/bindings/mojom.gni")
mojom_component("mojom") {
output_prefix = "device_vr_mojo_bindings"
macro_prefix = "DEVICE_VR_MOJO_BINDINGS"
sources = [
"isolated_xr_service.mojom",
"vr_service.mojom",
]
public_deps = [
"//device/gamepad/public/mojom",
"//gpu/ipc/common:interfaces",
"//mojo/public/mojom/base",
"//ui/display/mojo:interfaces",
"//ui/gfx/geometry/mojo",
"//ui/gfx/mojo:mojo",
]
enabled_features = []
if (enable_oculus_vr) {
enabled_features += [ "enable_oculus_vr" ]
}
if (enable_openvr) {
enabled_features += [ "enable_openvr" ]
}
if (enable_windows_mr) {
enabled_features += [ "enable_windows_mr" ]
}
}
mojom_component("test_mojom") {
output_prefix = "device_vr_test_mojo_bindings"
macro_prefix = "DEVICE_VR_TEST_MOJO_BINDINGS"
sources = [
"browser_test_interfaces.mojom",
]
public_deps = [
"//ui/gfx/geometry/mojo",
"//ui/gfx/mojo:mojo",
]
}