| # Copyright 2020 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") |
| |
| 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", |
| "ar_renderer.cc", |
| "ar_renderer.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_session_utils.h", |
| "arcore_shim.cc", |
| "arcore_shim.h", |
| "scoped_arcore_objects.h", |
| "type_converters.cc", |
| "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", |
| "//mojo/public/cpp/bindings", |
| "//services/viz/privileged/mojom", |
| "//ui/android", |
| "//ui/gfx", |
| "//ui/gl/init", |
| ] |
| |
| configs += [ "//third_party/arcore-android-sdk:libarcore_config" ] |
| } |