chromium/device/vr/android/cardboard/BUILD.gn

# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/android/rules.gni")
import("//device/vr/buildflags/buildflags.gni")

assert(enable_cardboard)

component("vr_cardboard") {
  defines = [ "IS_VR_CARDBOARD_IMPL" ]
  sources = [
    "cardboard_device.cc",
    "cardboard_device.h",
    "cardboard_device_params.cc",
    "cardboard_device_params.h",
    "cardboard_image_transport.cc",
    "cardboard_image_transport.h",
    "cardboard_render_loop.cc",
    "cardboard_render_loop.h",
    "cardboard_sdk.h",
    "cardboard_sdk_impl.cc",
    "cardboard_sdk_impl.h",
    "mock_cardboard_sdk.cc",
    "mock_cardboard_sdk.h",
    "scoped_cardboard_objects.h",
  ]

  public_deps = [
    "//device/vr:vr_base",
    "//device/vr/public/cpp",
  ]

  deps = [
    "//base",
    "//device/vr:vr_util",
    "//device/vr/android:vr_android",
    "//gpu/command_buffer/service:gles2",
    "//third_party/cardboard",
    "//ui/android",
    "//ui/gfx",
    "//ui/gl/init",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]
}