blob: d43e59ca81c86a5227495b3254c5dacf95959e7a [file] [log] [blame]
# Copyright 2021 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")
component("constants") {
output_name = "chromeos_constants"
defines = [ "IS_CHROMEOS_CONSTANTS_IMPL" ]
sources = [
"chromeos_features.cc",
"chromeos_features.h",
"devicetype.cc",
"devicetype.h",
]
deps = [
"//base",
"//build:chromeos_buildflags",
]
if (is_chromeos_lacros) {
deps += [
"//chromeos/crosapi/mojom",
"//chromeos/lacros:lacros",
]
}
}
source_set("unit_tests") {
testonly = true
sources = [ "devicetype_unittest.cc" ]
deps = [
":constants",
"//base/test:test_support",
"//build:chromeos_buildflags",
"//chromeos/crosapi/mojom",
"//testing/gtest",
]
if (is_chromeos_lacros) {
deps += [
"//chromeos/lacros:lacros",
"//chromeos/lacros:test_support",
]
}
}