Annotate GN executables and shared_libraries with sanitizer deps.
[chromium-blink-merge.git] / chrome / installer / setup / BUILD.gn
blob3f59861c946afbad9fc269f39b3fd58236fffb40
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       "//build/config/sanitizers:deps",
26     ]
27   }
29   source_set("lib") {
30     sources = [
31       "app_launcher_installer.cc",
32       "app_launcher_installer.h",
33       "archive_patch_helper.cc",
34       "archive_patch_helper.h",
35       "install.cc",
36       "install.h",
37       "install_worker.cc",
38       "install_worker.h",
39       "setup_constants.cc",
40       "setup_constants.h",
41       "setup_util.cc",
42       "setup_util.h",
43       "update_active_setup_version_work_item.cc",
44       "update_active_setup_version_work_item.h",
45     ]
47     public_deps = [
48       "//base",
49       "//breakpad:breakpad_handler",
50       "//chrome/common:constants",
51       "//chrome/installer/util",
52       "//chrome_elf:constants",
53       "//rlz:rlz_lib",
54       "//third_party/zlib",
55     ]
56   }
58   # This test covers the mini installer and setup tests.
59   test("setup_unittests") {
60     sources = [
61       "archive_patch_helper_unittest.cc",
62       "install_unittest.cc",
63       "install_worker_unittest.cc",
64       "run_all_unittests.cc",
65       "setup_util_unittest.cc",
66       "setup_util_unittest.h",
67       "update_active_setup_version_work_item_unittest.cc",
68     ]
70     deps = [
71       ":lib",
72       "//base",
73       "//base:i18n",
74       "//base/test:test_support",
75       "//chrome/installer/mini_installer:unit_tests",
76       "//chrome/installer/util:strings",
77       "//chrome/installer/util:util",
78       "//testing/gmock",
79       "//testing/gtest",
80     ]
81   }