| # 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") |
| |
| assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos") |
| |
| component("version") { |
| output_name = "chromeos_version" |
| defines = [ "IS_CHROMEOS_VERSION_IMPL" ] |
| deps = [ |
| "//base", |
| "//chromeos/strings", |
| "//ui/base", |
| ] |
| sources = [ |
| "version_loader.cc", |
| "version_loader.h", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| deps = [ |
| "//base", |
| "//chromeos/version", |
| "//testing/gtest", |
| ] |
| sources = [ "version_loader_unittest.cc" ] |
| } |