# Copyright 2016 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/chromeos/ui_mode.gni")
import("//extensions/buildflags/buildflags.gni")
assert(enable_extensions,
"Cannot depend on extensions because enable_extensions=false.")
source_set("idle") {
sources = [
"idle_api.cc",
"idle_api.h",
"idle_api_constants.cc",
"idle_api_constants.h",
"idle_manager.cc",
"idle_manager.h",
"idle_manager_factory.cc",
"idle_manager_factory.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//build:chromeos_buildflags",
"//components/keyed_service/content",
"//content/public/browser",
"//extensions/common",
"//extensions/common/api",
"//ui/base/idle",
]
if (is_chromeos) {
deps += [ "//chromeos/dbus/power" ]
}
if (is_chromeos_lacros) {
deps += [ "//chromeos/lacros" ]
}
public_deps = [ "//extensions/browser:browser_sources" ]
}