blob: 8bb13ef34b8fc4ac7ada766baa081c38daa52d2b [file] [log] [blame]
# Copyright 2015 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("//build/config/chromecast_build.gni")
import("//build/config/ozone.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" ]
# For EGL header included in surface_factory_cast.cc (needs EGL types).
configs += [ "//third_party/khronos:khronos_headers" ]
# 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",
"//ui/base/cursor:cursor_base",
"//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",
]
}