blob: d99451251e0849cf7dab2b2a090b5115bf6988b8 [file] [log] [blame]
# Copyright 2019 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("//chrome/process_version_rc_template.gni")
import("//testing/test.gni")
group("win") {
deps = [
":updater",
]
}
executable("updater") {
sources = [
"main.cc",
"updater.rc",
]
configs += [ "//build/config/win:windowed" ]
libs = [ "winhttp.lib" ]
deps = [
":code",
":version_resources",
"//build/win:default_exe_manifest",
"//chrome/updater:common",
]
}
copy("uninstall.cmd") {
sources = [
"setup/uninstall.cmd",
]
outputs = [
"$target_gen_dir/uninstall.cmd",
]
}
process_version_rc_template("version_resources") {
sources = [
"updater.ver",
]
output = "$target_gen_dir/updater_exe.rc"
}
source_set("code") {
sources = [
"net/net_util.cc",
"net/net_util.h",
"net/network.h",
"net/network_fetcher.cc",
"net/network_fetcher.h",
"net/network_winhttp.cc",
"net/network_winhttp.h",
"net/scoped_hinternet.h",
"setup/setup.cc",
"setup/setup.h",
"setup/uninstall.cc",
"setup/uninstall.h",
"util.cc",
"util.h",
]
deps = [
"//base",
"//chrome/installer/util:with_no_strings",
"//components/update_client",
]
data = [
"setup/uninstall.cmd",
]
data_deps = [
":uninstall.cmd",
]
}
source_set("unittest") {
testonly = true
sources = [
"net/network_unittest.cc",
"util_unittest.cc",
]
deps = [
":code",
"//base/test:test_support",
"//testing/gtest",
]
}