1# Copyright 2020 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//device/vr/buildflags/buildflags.gni")
6
7assert(enable_arcore)
8
9component("arcore") {
10  output_name = "vr_arcore"
11  defines = [ "IS_VR_ARCORE_IMPL" ]
12  sources = [
13    "address_to_id_map.h",
14    "ar_image_transport.cc",
15    "ar_image_transport.h",
16    "ar_renderer.cc",
17    "ar_renderer.h",
18    "arcore.cc",
19    "arcore.h",
20    "arcore_anchor_manager.cc",
21    "arcore_anchor_manager.h",
22    "arcore_device.cc",
23    "arcore_device.h",
24    "arcore_device_provider_factory.cc",
25    "arcore_device_provider_factory.h",
26    "arcore_gl.cc",
27    "arcore_gl.h",
28    "arcore_gl_thread.cc",
29    "arcore_gl_thread.h",
30    "arcore_impl.cc",
31    "arcore_impl.h",
32    "arcore_math_utils.cc",
33    "arcore_math_utils.h",
34    "arcore_plane_manager.cc",
35    "arcore_plane_manager.h",
36    "arcore_sdk.h",
37    "arcore_session_utils.h",
38    "arcore_shim.cc",
39    "arcore_shim.h",
40    "scoped_arcore_objects.h",
41    "type_converters.cc",
42    "type_converters.h",
43  ]
44
45  public_deps = [ "//device/vr/public/cpp" ]
46
47  deps = [
48    "//base",
49    "//device/vr:vr",
50    "//device/vr:vr_base",
51    "//device/vr/android:vr_android",
52    "//mojo/public/cpp/bindings",
53    "//ui/gfx",
54    "//ui/gl/init",
55  ]
56
57  configs += [ "//third_party/arcore-android-sdk:libarcore_config" ]
58}
59