123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- # 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/chromeos/ui_mode.gni")
- import("//build/config/linux/gtk/gtk.gni")
- import("//build/lacros/lacros_resource_sizes.gni")
- import("//chromeos/tast_control.gni")
- if (is_chromeos_device) {
- import("//build/config/chromeos/rules.gni")
- }
- # Code lives in the lacros-chrome browser only, not ash-chrome.
- assert(is_chromeos_lacros)
- assert(!use_gtk)
- component("lacros") {
- defines = [ "IS_CHROMEOS_LACROS_IMPL" ]
- deps = [
- ":lacros_paths",
- "//base",
- "//build:chromeos_buildflags",
- "//chromeos/crosapi/cpp",
- "//chromeos/crosapi/cpp:crosapi_constants",
- "//chromeos/crosapi/mojom",
- "//chromeos/process_proxy",
- "//chromeos/startup",
- "//components/crash/core/common",
- "//media/mojo/mojom/stable:stable_video_decoder",
- "//mojo/public/cpp/bindings",
- "//ui/native_theme",
- ]
- sources = [
- "crosapi_pref_observer.cc",
- "crosapi_pref_observer.h",
- "lacros_service.cc",
- "lacros_service.h",
- "lacros_service_never_blocking_state.cc",
- "lacros_service_never_blocking_state.h",
- "native_theme_cache.cc",
- "native_theme_cache.h",
- "system_idle_cache.cc",
- "system_idle_cache.h",
- ]
- }
- static_library("lacros_paths") {
- deps = [
- "//base",
- "//chromeos/crosapi/cpp:crosapi_constants",
- ]
- sources = [
- "lacros_paths.cc",
- "lacros_paths.h",
- ]
- }
- source_set("test_support") {
- testonly = true
- deps = [
- "//base",
- "//chromeos/crosapi/mojom",
- "//chromeos/lacros",
- "//chromeos/startup",
- ]
- sources = [
- "lacros_test_helper.cc",
- "lacros_test_helper.h",
- ]
- }
- lacros_resource_sizes_test("resource_sizes_lacros_chrome") {
- data_deps = [ "//chrome:chrome" ]
- }
- if (is_chromeos_device) {
- lacros_tast_tests("lacros_all_tast_tests") {
- # The following expression filters out all non-critical tests. See the link
- # below for more details:
- # https://chromium.googlesource.com/chromiumos/platform/tast/+/main/docs/test_attributes.md
- tast_attr_expr = "\"group:mainline\" && \"dep:lacros\" && !informational"
- # To disable a specific test, add it to the
- # tast_disabled_tests_from_lacros_all list in "tast_control.gni" and cite
- # a bug.
- tast_disabled_tests = tast_disabled_tests_from_lacros_all
- }
- lacros_tast_tests("lacros_all_tast_tests_informational") {
- # The following expression runs all informational tests. See the link below
- # for more details:
- # https://chromium.googlesource.com/chromiumos/platform/tast/+/main/docs/test_attributes.md
- tast_attr_expr = "\"group:mainline\" && (\"dep:lacros\" || \"dep:lacros_unstable\") && informational"
- # To disable a specific test, add it to the
- # tast_disabled_tests_from_lacros_all list in "tast_control.gni" and cite
- # a bug.
- tast_disabled_tests = tast_disabled_tests_from_lacros_all
- }
- lacros_tast_tests("lacros_fyi_tast_tests") {
- tast_tests = [
- "lacros.AppLauncherLaunch",
- "lacros.AppLauncherLaunch.unstable",
- "lacros.AudioPlay",
- "lacros.AudioPlay.unstable",
- "lacros.Basic",
- "lacros.Basic.unstable",
- "lacros.ShelfLaunch",
- "lacros.ShelfLaunch.unstable",
- ]
- }
- lacros_tast_tests("lacros_variations_tast_tests") {
- tast_tests = [ "lacros.VariationSmoke" ]
- }
- }
|