| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 assert(is_win) | 8 assert(is_win) |
| 9 | 9 |
| 10 # This file only contains utility functions which must only depend on kernel32. | 10 # This file only contains utility functions which must only depend on kernel32. |
| 11 # Please don't add dependencies on other system libraries. | 11 # Please don't add dependencies on other system libraries. |
| 12 static_library("install_static_util") { | 12 static_library("install_static_util") { |
| 13 public_deps = [ | 13 public_deps = [ |
| 14 "//chrome_elf:nt_registry", | 14 "//chrome_elf:nt_registry", |
| 15 ] | 15 ] |
| 16 | 16 |
| 17 sources = [ | 17 sources = [ |
| 18 "install_util.cc", | 18 "install_util.cc", |
| 19 "install_util.h", | 19 "install_util.h", |
| 20 "policy_path_parser.cc", |
| 21 "policy_path_parser.h", |
| 20 ] | 22 ] |
| 21 | 23 |
| 22 libs = [ "kernel32.lib" ] | 24 libs = [ "kernel32.lib" ] |
| 23 | 25 |
| 24 configs += [ | 26 configs += [ |
| 25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 27 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 26 "//build/config/compiler:no_size_t_to_int_warning", | 28 "//build/config/compiler:no_size_t_to_int_warning", |
| 27 ] | 29 ] |
| 28 } | 30 } |
| 29 | 31 |
| 30 test("install_static_unittests") { | 32 test("install_static_unittests") { |
| 31 output_name = "install_static_unittests" | 33 output_name = "install_static_unittests" |
| 32 sources = [ | 34 sources = [ |
| 33 "install_util_unittest.cc", | 35 "install_util_unittest.cc", |
| 34 ] | 36 ] |
| 35 include_dirs = [ "$target_gen_dir" ] | 37 include_dirs = [ "$target_gen_dir" ] |
| 36 deps = [ | 38 deps = [ |
| 37 "//base", | 39 "//base", |
| 38 "//base/test:run_all_unittests", | 40 "//base/test:run_all_unittests", |
| 39 "//base/test:test_support", | 41 "//base/test:test_support", |
| 40 "//chrome/install_static:install_static_util", | 42 "//chrome/install_static:install_static_util", |
| 41 "//testing/gmock", | 43 "//testing/gmock", |
| 42 "//testing/gtest", | 44 "//testing/gtest", |
| 43 ] | 45 ] |
| 44 } | 46 } |
| OLD | NEW |