# Copyright 2020 The Chromium Authors
# 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")
assert(enable_vr)
component("cpp") {
output_name = "vr_public_cpp"
defines = [ "IS_VR_PUBLIC_CPP_IMPL" ]
sources = [
"session_mode.h",
"vr_device_provider.cc",
"vr_device_provider.h",
"xr_frame_sink_client.cc",
"xr_frame_sink_client.h",
]
public_deps = [ ":features" ]
deps = [
"//base",
"//device/vr/buildflags",
"//device/vr/public/mojom:isolated_xr_service",
"//mojo/public/cpp/bindings",
"//services/viz/privileged/mojom/compositing",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
component("features") {
output_name = "vr_features"
sources = [
"features.cc",
"features.h",
]
public_deps = [
"//base",
"//device/vr/buildflags",
]
if (is_android) {
deps = [ "//device/vr/public:jni_headers" ]
}
defines = [ "IS_VR_FEATURES_IMPL" ]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}