OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//chrome/version.gni") |
| 6 import("//testing/test.gni") |
| 7 |
| 8 if (is_win) { |
| 9 executable("disable_outdated_build_detector") { |
| 10 sources = [ |
| 11 "disable_outdated_build_detector_main.cc", |
| 12 ] |
| 13 |
| 14 configs -= [ "//build/config/win:console" ] |
| 15 configs += [ "//build/config/win:windowed" ] |
| 16 |
| 17 deps = [ |
| 18 ":disable_outdated_build_detector_exe_version", |
| 19 ":lib", |
| 20 "//base", |
| 21 "//build/win:default_exe_manifest", |
| 22 ] |
| 23 } |
| 24 |
| 25 process_version("disable_outdated_build_detector_exe_version") { |
| 26 template_file = "disable_outdated_build_detector_exe_version.rc.version" |
| 27 output = "$target_gen_dir/disable_outdated_build_detector_exe_version.rc" |
| 28 } |
| 29 |
| 30 source_set("lib") { |
| 31 sources = [ |
| 32 "constants.cc", |
| 33 "constants.h", |
| 34 "disable_outdated_build_detector.cc", |
| 35 "disable_outdated_build_detector.h", |
| 36 "google_update_integration.cc", |
| 37 "google_update_integration.h", |
| 38 ] |
| 39 |
| 40 public_deps = [ |
| 41 "//base", |
| 42 ] |
| 43 } |
| 44 |
| 45 test("disable_outdated_build_detector_unittests") { |
| 46 sources = [ |
| 47 "disable_outdated_build_detector_unittest.cc", |
| 48 "google_update_integration_unittest.cc", |
| 49 "run_all_unittests.cc", |
| 50 ] |
| 51 |
| 52 deps = [ |
| 53 ":lib", |
| 54 "//base", |
| 55 "//base/test:test_support", |
| 56 "//chrome/installer/util:with_no_strings", |
| 57 "//testing/gmock", |
| 58 "//testing/gtest", |
| 59 ] |
| 60 } |
| 61 } |
OLD | NEW |