Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(969)

Side by Side Diff: chrome/installer/setup/BUILD.gn

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/installer/setup/DEPS » ('j') | chrome/installer/setup/brand_constants.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//chrome/process_version_rc_template.gni") 5 import("//chrome/process_version_rc_template.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_win) { 8 if (is_win) {
9 executable("setup") { 9 executable("setup") {
10 sources = [ 10 sources = [
(...skipping 20 matching lines...) Expand all
31 "//components/crash/content/app:run_as_crashpad_handler", 31 "//components/crash/content/app:run_as_crashpad_handler",
32 ] 32 ]
33 } 33 }
34 34
35 static_library("lib") { 35 static_library("lib") {
36 sources = [ 36 sources = [
37 "app_launcher_installer.cc", 37 "app_launcher_installer.cc",
38 "app_launcher_installer.h", 38 "app_launcher_installer.h",
39 "archive_patch_helper.cc", 39 "archive_patch_helper.cc",
40 "archive_patch_helper.h", 40 "archive_patch_helper.h",
41 "brand_constants.cc",
42 "brand_constants.h",
41 "install.cc", 43 "install.cc",
42 "install.h", 44 "install.h",
43 "install_worker.cc", 45 "install_worker.cc",
44 "install_worker.h", 46 "install_worker.h",
45 "installer_crash_reporter_client.cc", 47 "installer_crash_reporter_client.cc",
46 "installer_crash_reporter_client.h", 48 "installer_crash_reporter_client.h",
47 "installer_crash_reporting.cc", 49 "installer_crash_reporting.cc",
48 "installer_crash_reporting.h", 50 "installer_crash_reporting.h",
49 "persistent_histogram_storage.cc", 51 "persistent_histogram_storage.cc",
50 "persistent_histogram_storage.h", 52 "persistent_histogram_storage.h",
51 "setup_constants.cc", 53 "setup_constants.cc",
52 "setup_constants.h", 54 "setup_constants.h",
55 "setup_install_details.cc",
56 "setup_install_details.h",
53 "setup_singleton.cc", 57 "setup_singleton.cc",
54 "setup_singleton.h", 58 "setup_singleton.h",
55 "setup_util.cc", 59 "setup_util.cc",
56 "setup_util.h", 60 "setup_util.h",
57 "update_active_setup_version_work_item.cc", 61 "update_active_setup_version_work_item.cc",
58 "update_active_setup_version_work_item.h", 62 "update_active_setup_version_work_item.h",
59 "user_hive_visitor.cc", 63 "user_hive_visitor.cc",
60 "user_hive_visitor.h", 64 "user_hive_visitor.h",
61 ] 65 ]
62 66
67 if (is_chrome_branded) {
68 sources += [ "google_chrome_constants.cc" ]
69 } else {
70 sources += [ "chromium_constants.cc" ]
71 }
72
63 public_deps = [ 73 public_deps = [
64 "//base", 74 "//base",
65 "//chrome/common:constants", 75 "//chrome/common:constants",
66 "//chrome/common:version_header", 76 "//chrome/common:version_header",
67 "//chrome/install_static:install_static_util", 77 "//chrome/install_static:install_static_util",
68 "//chrome/installer/util:with_rc_strings", 78 "//chrome/installer/util:with_rc_strings",
69 "//chrome_elf:constants", 79 "//chrome_elf:constants",
70 "//components/base32", 80 "//components/base32",
71 "//components/crash/content/app:app", 81 "//components/crash/content/app:app",
72 "//components/crash/content/app:lib", 82 "//components/crash/content/app:lib",
73 "//components/crash/core/common", 83 "//components/crash/core/common",
74 "//content/public/common:static_switches", 84 "//content/public/common:static_switches",
75 "//courgette:courgette_lib", 85 "//courgette:courgette_lib",
76 "//rlz:rlz_lib", 86 "//rlz:rlz_lib",
77 "//third_party/bspatch", 87 "//third_party/bspatch",
78 "//third_party/zlib", 88 "//third_party/zlib",
79 ] 89 ]
80 } 90 }
81 91
82 process_version_rc_template("setup_exe_version") { 92 process_version_rc_template("setup_exe_version") {
83 template_file = "setup_exe_version.rc.version" 93 template_file = "setup_exe_version.rc.version"
84 output = "$target_gen_dir/setup_exe_version.rc" 94 output = "$target_gen_dir/setup_exe_version.rc"
85 } 95 }
86 96
87 # This test covers the mini installer and setup tests. 97 # This test covers the mini installer and setup tests.
88 test("setup_unittests") { 98 test("setup_unittests") {
89 sources = [ 99 sources = [
90 "archive_patch_helper_unittest.cc", 100 "archive_patch_helper_unittest.cc",
101 "brand_constants_unittest.cc",
91 "install_unittest.cc", 102 "install_unittest.cc",
92 "install_worker_unittest.cc", 103 "install_worker_unittest.cc",
93 "memory_unittest.cc", 104 "memory_unittest.cc",
94 "run_all_unittests.cc", 105 "run_all_unittests.cc",
95 "setup_singleton_unittest.cc", 106 "setup_singleton_unittest.cc",
96 "setup_util_unittest.cc", 107 "setup_util_unittest.cc",
97 "setup_util_unittest.h", 108 "setup_util_unittest.h",
98 "update_active_setup_version_work_item_unittest.cc", 109 "update_active_setup_version_work_item_unittest.cc",
99 "user_hive_visitor_unittest.cc", 110 "user_hive_visitor_unittest.cc",
100 ] 111 ]
101 112
102 deps = [ 113 deps = [
103 ":lib", 114 ":lib",
104 "//base", 115 "//base",
105 "//base:i18n", 116 "//base:i18n",
106 "//base/test:test_support", 117 "//base/test:test_support",
107 "//chrome/install_static:install_static_util", 118 "//chrome/install_static:install_static_util",
108 "//chrome/installer/mini_installer:unit_tests", 119 "//chrome/installer/mini_installer:unit_tests",
109 "//testing/gmock", 120 "//testing/gmock",
110 "//testing/gtest", 121 "//testing/gtest",
111 ] 122 ]
112 123
113 data = [ 124 data = [
114 "//chrome/installer/test/data/", 125 "//chrome/installer/test/data/",
115 "//chrome/test/data/installer/", 126 "//chrome/test/data/installer/",
116 ] 127 ]
117 } 128 }
118 } 129 }
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/setup/DEPS » ('j') | chrome/installer/setup/brand_constants.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698