Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / chrome / installer / setup / BUILD.gn
blobbff865f184ae0549a1a0e19553a0639972690746
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
3 # found in the LICENSE file.
5 import("//testing/test.gni")
7 if (is_win) {
8   executable("setup") {
9     sources = [
10       "setup.ico",
11       "setup.rc",
12       "setup_exe_version.rc.version",
13       "setup_main.cc",
14       "setup_main.h",
15       "setup_resource.h",
16       "uninstall.cc",
17       "uninstall.h",
18     ]
20     configs -= [ "//build/config/win:console" ]
21     configs += [ "//build/config/win:windowed" ]
23     deps = [
24       ":lib",
25     ]
26   }
28   source_set("lib") {
29     sources = [
30       "app_launcher_installer.cc",
31       "app_launcher_installer.h",
32       "archive_patch_helper.cc",
33       "archive_patch_helper.h",
34       "install.cc",
35       "install.h",
36       "install_worker.cc",
37       "install_worker.h",
38       "setup_constants.cc",
39       "setup_constants.h",
40       "setup_util.cc",
41       "setup_util.h",
42       "update_active_setup_version_work_item.cc",
43       "update_active_setup_version_work_item.h",
44     ]
46     public_deps = [
47       "//base",
48       "//breakpad:breakpad_handler",
49       "//chrome/common:constants",
50       "//chrome/installer/util",
51       "//chrome_elf:constants",
52       "//rlz:rlz_lib",
53       "//third_party/zlib",
54     ]
55   }
57   # This test covers the mini installer and setup tests.
58   test("setup_unittests") {
59     sources = [
60       "archive_patch_helper_unittest.cc",
61       "install_unittest.cc",
62       "install_worker_unittest.cc",
63       "run_all_unittests.cc",
64       "setup_util_unittest.cc",
65       "setup_util_unittest.h",
66       "update_active_setup_version_work_item_unittest.cc",
67     ]
69     deps = [
70       ":lib",
71       "//base",
72       "//base:i18n",
73       "//base/test:test_support",
74       "//chrome/installer/mini_installer:unit_tests",
75       "//chrome/installer/util:strings",
76       "//chrome/installer/util:util",
77       "//testing/gmock",
78       "//testing/gtest",
79     ]
80   }