# 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_arcore)
component("arcore") {
output_name = "vr_arcore"
defines = [ "IS_VR_ARCORE_IMPL" ]
sources = [
"address_to_id_map.h",
"ar_compositor_frame_sink.cc",
"ar_compositor_frame_sink.h",
"ar_image_transport.cc",
"ar_image_transport.h",
"arcore.cc",
"arcore.h",
"arcore_anchor_manager.cc",
"arcore_anchor_manager.h",
"arcore_device.cc",
"arcore_device.h",
"arcore_gl.cc",
"arcore_gl.h",
"arcore_gl_thread.cc",
"arcore_gl_thread.h",
"arcore_impl.cc",
"arcore_impl.h",
"arcore_math_utils.cc",
"arcore_math_utils.h",
"arcore_plane_manager.cc",
"arcore_plane_manager.h",
"arcore_sdk.h",
"arcore_shim.cc",
"arcore_shim.h",
"scoped_arcore_objects.h",
"vr_service_type_converters.cc",
"vr_service_type_converters.h",
]
public_deps = [
"//device/vr:vr_base",
"//device/vr/public/cpp",
]
deps = [
"//base",
"//components/viz/host",
"//device/base",
"//device/vr:vr_util",
"//device/vr/android:vr_android",
"//gpu/command_buffer/service:gles2",
"//mojo/public/cpp/bindings",
"//services/viz/privileged/mojom",
"//third_party/jni_zero",
"//ui/android",
"//ui/gfx",
"//ui/gl/init",
]
configs += [
"//third_party/arcore-android-sdk:libarcore_config",
"//build/config/compiler:wexit_time_destructors",
]
}