chromium/ui/ozone/platform/cast/BUILD.gn

# Copyright 2015 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/cast.gni")
import("//build/config/ozone.gni")
import("//chromecast/chromecast.gni")

visibility = [
  "//chromecast/*",
  "//ui/ozone/*",
]

# TODO(slan): gn check needs deps on ozone and media to pass. Correct this.
source_set("cast") {
  sources = [
    "client_native_pixmap_factory_cast.cc",
    "client_native_pixmap_factory_cast.h",
    "gl_ozone_egl_cast.cc",
    "gl_ozone_egl_cast.h",
    "gl_surface_cast.cc",
    "gl_surface_cast.h",
    "overlay_manager_cast.cc",
    "overlay_manager_cast.h",
    "ozone_platform_cast.cc",
    "ozone_platform_cast.h",
    "platform_window_cast.cc",
    "platform_window_cast.h",
    "surface_factory_cast.cc",
    "surface_factory_cast.h",
  ]

  defines = [ "OZONE_IMPLEMENTATION" ]

  if (enable_starboard_media) {
    defines += [ "IS_STARBOARD" ]
  }

  # For loading EGL functions using dlsym in surface_factory_cast.cc because we
  # do not want to statically link against EGL library.
  libs = [ "dl" ]

  deps = [
    "//base",
    "//chromecast:chromecast_buildflags",
    "//chromecast/base:base",
    "//chromecast/graphics:libcast_graphics_1.0",
    "//third_party/angle:includes",
    "//ui/base/cursor",
    "//ui/base/ime",
    "//ui/events/ozone",
    "//ui/events/ozone/evdev",
    "//ui/events/ozone/layout",
    "//ui/gfx",
    "//ui/gfx/geometry",
    "//ui/ozone:ozone_base",
    "//ui/ozone/common",
    "//ui/platform_window",
    "//ui/platform_window/stub",
  ]
}