OLD | NEW |
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/version.gni") | 5 import("//chrome/version.gni") |
| 6 import("//third_party/kasko/kasko.gni") |
6 | 7 |
7 source_set("client") { | 8 source_set("client") { |
8 sources = [ | 9 sources = [ |
9 "chrome_watcher_main_api.cc", | 10 "chrome_watcher_main_api.cc", |
10 "chrome_watcher_main_api.h", | 11 "chrome_watcher_main_api.h", |
11 ] | 12 ] |
12 deps = [ | 13 deps = [ |
13 "//base", | 14 "//base", |
14 ] | 15 ] |
15 } | 16 } |
16 | 17 |
| 18 if (enable_kasko) { |
| 19 source_set("kasko_util") { |
| 20 sources = [ |
| 21 "kasko_util.cc", |
| 22 "kasko_util.h", |
| 23 ] |
| 24 deps = [ |
| 25 "//base", |
| 26 "//components/crash/content/app", |
| 27 "//third_party/kasko", |
| 28 ] |
| 29 } |
| 30 } else { |
| 31 group("kasko_util") { |
| 32 public_deps = [ |
| 33 "//third_party/kasko:kasko_features", |
| 34 ] |
| 35 } |
| 36 } |
| 37 |
17 process_version("chrome_watcher_resources") { | 38 process_version("chrome_watcher_resources") { |
18 template_file = chrome_version_rc_template | 39 template_file = chrome_version_rc_template |
19 sources = [ | 40 sources = [ |
20 "chrome_watcher.ver", | 41 "chrome_watcher.ver", |
21 ] | 42 ] |
22 output = "$target_gen_dir/chrome_watcher_version.rc" | 43 output = "$target_gen_dir/chrome_watcher_version.rc" |
23 } | 44 } |
24 | 45 |
25 shared_library("chrome_watcher") { | 46 shared_library("chrome_watcher") { |
26 sources = [ | 47 sources = [ |
27 "chrome_watcher_main.cc", | 48 "chrome_watcher_main.cc", |
28 ] | 49 ] |
29 inputs = [ | 50 inputs = [ |
30 "chrome_watcher.def", | 51 "chrome_watcher.def", |
31 ] | 52 ] |
32 deps = [ | 53 deps = [ |
33 ":chrome_watcher_resources", | 54 ":chrome_watcher_resources", |
34 ":client", | 55 ":client", |
| 56 ":kasko_util", |
35 "//base", | 57 "//base", |
36 "//base:base_static", | 58 "//base:base_static", |
37 "//build/config/sanitizers:deps", | 59 "//build/config/sanitizers:deps", |
38 "//chrome/installer/util:with_no_strings", | 60 "//chrome/installer/util:with_no_strings", |
39 "//components/browser_watcher", | 61 "//components/browser_watcher", |
40 "//components/crash/content/app", | |
41 "//third_party/kasko", | |
42 ] | 62 ] |
43 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ] | 63 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ] |
44 configs -= [ "//build/config/win:console" ] | 64 configs -= [ "//build/config/win:console" ] |
45 configs += [ "//build/config/win:windowed" ] | 65 configs += [ "//build/config/win:windowed" ] |
46 } | 66 } |
OLD | NEW |