blob: a9a7c6ab0b580346251765e0291aeeffcc56804c [file] [log] [blame]
# 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("//build/config/ui.gni")
import("//chromecast/chromecast.gni")
cast_source_set("display_settings") {
sources = [
"brightness_animation.cc",
"brightness_animation.h",
"color_temperature_animation.cc",
"color_temperature_animation.h",
"screen_power_controller.h",
]
deps = [
"//base",
"//chromecast/browser",
"//chromecast/graphics",
"//chromecast/ui:display_settings_public",
"//skia",
"//ui/compositor",
"//ui/display/types",
"//ui/gfx/animation",
]
if (use_aura) {
sources += [
"gamma_configurator.cc",
"gamma_configurator.h",
]
deps += [
":screen_power_controller_aura",
"//ui/aura"
]
} else {
deps += [
":screen_power_controller_default",
]
}
}
cast_source_set("screen_power_controller_default") {
sources = [
"screen_power_controller.h",
"screen_power_controller_default.h",
"screen_power_controller_default.cc",
]
deps = [
"//base",
]
}
cast_source_set("screen_power_controller_aura") {
sources = [
"screen_power_controller.h",
"screen_power_controller_aura.h",
"screen_power_controller_aura.cc",
]
deps = [
"//base",
]
}
test("cast_display_settings_unittests") {
testonly = true
sources = []
deps = [
"//base",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
if (use_aura) {
sources += [
"screen_power_controller_aura_unittest.cc",
]
deps += [
":screen_power_controller_aura",
]
}
}