1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Copyright 2015 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("//testing/test.gni")
if (is_win) {
executable("setup") {
sources = [
"setup.ico",
"setup.rc",
"setup_exe_version.rc.version",
"setup_main.cc",
"setup_main.h",
"setup_resource.h",
"uninstall.cc",
"uninstall.h",
]
configs -= [ "//build/config/win:console" ]
configs += [ "//build/config/win:windowed" ]
deps = [
":lib",
"//build/config/sanitizers:deps",
"//chrome:version_header",
]
}
source_set("lib") {
sources = [
"app_launcher_installer.cc",
"app_launcher_installer.h",
"archive_patch_helper.cc",
"archive_patch_helper.h",
"install.cc",
"install.h",
"install_worker.cc",
"install_worker.h",
"setup_constants.cc",
"setup_constants.h",
"setup_util.cc",
"setup_util.h",
"update_active_setup_version_work_item.cc",
"update_active_setup_version_work_item.h",
]
public_deps = [
"//base",
"//breakpad:breakpad_handler",
"//chrome/common:constants",
"//chrome/installer/util",
"//chrome_elf:constants",
"//courgette:courgette_lib",
"//rlz:rlz_lib",
"//third_party/bspatch",
"//third_party/zlib",
]
}
# This test covers the mini installer and setup tests.
test("setup_unittests") {
sources = [
"archive_patch_helper_unittest.cc",
"install_unittest.cc",
"install_worker_unittest.cc",
"run_all_unittests.cc",
"setup_util_unittest.cc",
"setup_util_unittest.h",
"update_active_setup_version_work_item_unittest.cc",
]
deps = [
":lib",
"//base",
"//base:i18n",
"//base/test:test_support",
"//chrome/installer/mini_installer:unit_tests",
"//chrome/installer/util:strings",
"//chrome/installer/util:util",
"//testing/gmock",
"//testing/gtest",
]
}
}
|