| # Copyright 2016 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/chrome_build.gni") |
| import("//testing/test.gni") |
| |
| assert(is_win) |
| |
| # This file only contains utility functions which must only depend on kernel32. |
| # Please don't add dependencies on other system libraries. |
| static_library("install_static_util") { |
| public_deps = [ |
| "//chrome_elf/nt_registry:nt_registry", |
| ] |
| |
| sources = [ |
| "install_util.cc", |
| "install_util.h", |
| ] |
| |
| libs = [ "kernel32.lib" ] |
| |
| configs += [ |
| # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| "//build/config/compiler:no_size_t_to_int_warning", |
| ] |
| } |
| |
| test("install_static_unittests") { |
| output_name = "install_static_unittests" |
| sources = [ |
| "install_util_unittest.cc", |
| ] |
| include_dirs = [ "$target_gen_dir" ] |
| deps = [ |
| "//base", |
| "//base/test:run_all_unittests", |
| "//base/test:test_support", |
| "//chrome/install_static:install_static_util", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |