Chromium Code Reviews| 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. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 } | 47 } |
| 48 | 48 |
| 49 libs = [ "kernel32.lib" ] | 49 libs = [ "kernel32.lib" ] |
| 50 | 50 |
| 51 configs += [ | 51 configs += [ |
| 52 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 52 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 53 "//build/config/compiler:no_size_t_to_int_warning", | 53 "//build/config/compiler:no_size_t_to_int_warning", |
| 54 ] | 54 ] |
| 55 } | 55 } |
| 56 | 56 |
| 57 # A source set for use by the module in a process that creates the process-wide | |
| 58 # InstallDetails instance. | |
|
scottmg
2017/01/16 21:01:15
It would help me (a future naïve reader) to say th
grt (UTC plus 2)
2017/01/16 21:06:47
Great suggestion. Comments added. Future me will a
| |
| 59 source_set("primary_module") { | |
| 60 sources = [ | |
| 61 "get_install_details_payload.cc", | |
| 62 ] | |
| 63 } | |
| 64 | |
| 65 # A source set for use by modules in a process that fetch the process-wide | |
| 66 # InstallDetails instance from the primary module by way of | |
| 67 # GetInstallDetailsPayload. | |
| 68 source_set("secondary_module") { | |
| 69 sources = [ | |
| 70 "initialize_from_primary_module.cc", | |
| 71 "initialize_from_primary_module.h", | |
| 72 ] | |
| 73 deps = [ | |
| 74 ":install_static_util", | |
| 75 ] | |
| 76 } | |
| 77 | |
| 57 test("install_static_unittests") { | 78 test("install_static_unittests") { |
| 58 output_name = "install_static_unittests" | 79 output_name = "install_static_unittests" |
| 59 sources = [ | 80 sources = [ |
| 60 "install_details_unittest.cc", | 81 "install_details_unittest.cc", |
| 61 "install_modes_unittest.cc", | 82 "install_modes_unittest.cc", |
| 62 "install_util_unittest.cc", | 83 "install_util_unittest.cc", |
| 63 "product_install_details_unittest.cc", | 84 "product_install_details_unittest.cc", |
| 64 "user_data_dir_win_unittest.cc", | 85 "user_data_dir_win_unittest.cc", |
| 65 ] | 86 ] |
| 66 include_dirs = [ "$target_gen_dir" ] | 87 include_dirs = [ "$target_gen_dir" ] |
| 67 deps = [ | 88 deps = [ |
| 68 "//base", | 89 "//base", |
| 69 "//base/test:run_all_unittests", | 90 "//base/test:run_all_unittests", |
| 70 "//base/test:test_support", | 91 "//base/test:test_support", |
| 71 "//chrome/install_static:install_static_util", | 92 "//chrome/install_static:install_static_util", |
| 72 "//testing/gmock", | 93 "//testing/gmock", |
| 73 "//testing/gtest", | 94 "//testing/gtest", |
| 74 ] | 95 ] |
| 75 } | 96 } |
| OLD | NEW |