diff options
Diffstat (limited to 'chromium/chrome/updater')
-rw-r--r-- | chromium/chrome/updater/BUILD.gn | 106 |
1 files changed, 68 insertions, 38 deletions
diff --git a/chromium/chrome/updater/BUILD.gn b/chromium/chrome/updater/BUILD.gn index c68ce5eae16..186a2dbd7b8 100644 --- a/chromium/chrome/updater/BUILD.gn +++ b/chromium/chrome/updater/BUILD.gn @@ -4,6 +4,7 @@ import("//build/config/chrome_build.gni") import("//build/config/sanitizers/sanitizers.gni") +import("//build/util/process_version.gni") import("//testing/test.gni") group("updater") { @@ -19,50 +20,79 @@ group("updater") { } } -source_set("common") { - sources = [ - "configurator.cc", - "configurator.h", - "updater.cc", - "updater.h", - ] - - deps = [ - "//base", - "//components/services/patch/public/cpp:manifest", - "//components/services/unzip/public/cpp:manifest", - "//components/update_client", - "//components/version_info", - "//mojo/core/embedder", - "//services/service_manager", - "//url", - ] -} - -source_set("updater_tests") { - testonly = true +# Conditional build is needed, otherwise the analyze script on Linux +# requires all targets and it is going to include the targets below. +if (is_win || is_mac) { + source_set("common") { + sources = [ + "configurator.cc", + "configurator.h", + "crash_client.cc", + "crash_client.h", + "crash_reporter.cc", + "crash_reporter.h", + "patcher.cc", + "patcher.h", + "prefs.cc", + "prefs.h", + "unzipper.cc", + "unzipper.h", + "updater.cc", + "updater.h", + "updater_constants.cc", + "updater_constants.h", + "util.cc", + "util.h", + ] - sources = [ - "updater_unittest.cc", - ] + deps = [ + ":version_header", + "//base", + "//components/crash/core/common:crash_key", + "//components/prefs", + "//components/update_client", + "//components/version_info", + "//courgette", + "//third_party/crashpad/crashpad/client", + "//third_party/crashpad/crashpad/handler", + "//third_party/zlib/google:zip", + "//url", + ] + } - deps = [ - ":updater", - "//base/test:test_support", - "//testing/gtest", - ] + process_version("version_header") { + sources = [ + "//chrome/VERSION", + ] + template_file = "updater_version.h.in" + output = "$target_gen_dir/updater_version.h" + } - if (is_win) { - deps += [ "//chrome/updater/win:unittest" ] + source_set("updater_tests") { + testonly = true - data_deps = [ - "//chrome/updater/win:updater", + sources = [ + "updater_unittest.cc", ] - } - if (is_mac) { - data_deps = [ - "//chrome/updater/mac:updater", + deps = [ + ":updater", + "//base/test:test_support", + "//testing/gtest", ] + + if (is_win) { + deps += [ "//chrome/updater/win:unittest" ] + + data_deps = [ + "//chrome/updater/win:updater", + ] + } + + if (is_mac) { + data_deps = [ + "//chrome/updater/mac:updater", + ] + } } } |