Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / installer / setup / BUILD.gn
blob73c751961039818f18949a9b6619beaafc4a35fc
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       "//chrome:version_header",
27     ]
28   }
30   source_set("lib") {
31     sources = [
32       "app_launcher_installer.cc",
33       "app_launcher_installer.h",
34       "archive_patch_helper.cc",
35       "archive_patch_helper.h",
36       "install.cc",
37       "install.h",
38       "install_worker.cc",
39       "install_worker.h",
40       "setup_constants.cc",
41       "setup_constants.h",
42       "setup_util.cc",
43       "setup_util.h",
44       "update_active_setup_version_work_item.cc",
45       "update_active_setup_version_work_item.h",
46     ]
48     public_deps = [
49       "//base",
50       "//breakpad:breakpad_handler",
51       "//chrome/common:constants",
52       "//chrome/installer/util",
53       "//chrome_elf:constants",
54       "//rlz:rlz_lib",
55       "//third_party/zlib",
56     ]
57   }
59   # This test covers the mini installer and setup tests.
60   test("setup_unittests") {
61     sources = [
62       "archive_patch_helper_unittest.cc",
63       "install_unittest.cc",
64       "install_worker_unittest.cc",
65       "run_all_unittests.cc",
66       "setup_util_unittest.cc",
67       "setup_util_unittest.h",
68       "update_active_setup_version_work_item_unittest.cc",
69     ]
71     deps = [
72       ":lib",
73       "//base",
74       "//base:i18n",
75       "//base/test:test_support",
76       "//chrome/installer/mini_installer:unit_tests",
77       "//chrome/installer/util:strings",
78       "//chrome/installer/util:util",
79       "//testing/gmock",
80       "//testing/gtest",
81     ]
82   }