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 | 6 |
7 source_set("client") { | 7 source_set("client") { |
8 sources = [ | 8 sources = [ |
9 "chrome_watcher_main_api.cc", | 9 "chrome_watcher_main_api.cc", |
10 "chrome_watcher_main_api.h", | 10 "chrome_watcher_main_api.h", |
11 ] | 11 ] |
12 deps = [ | 12 deps = [ |
13 "//base", | 13 "//base", |
14 ] | 14 ] |
15 } | 15 } |
16 | 16 |
17 process_version("chrome_watcher_resources") { | 17 process_version("chrome_watcher_resources") { |
18 source = "//chrome/app/chrome_version.rc.version" | 18 source = "//chrome/app/chrome_version.rc.version" |
19 output = "$target_gen_dir/chrome_watcher_version.rc" | 19 output = "$target_gen_dir/chrome_watcher_version.rc" |
20 extra_args = [ | 20 extra_args = [ |
21 "-f", | 21 "-f", |
22 rebase_path("chrome_watcher.ver", root_build_dir), | 22 rebase_path("chrome_watcher.ver", root_build_dir), |
23 ] | 23 ] |
24 } | 24 } |
25 | 25 |
26 shared_library("chrome_watcher") { | 26 shared_library("chrome_watcher") { |
27 sources = [ | 27 sources = [ |
| 28 "$target_gen_dir/chrome_watcher_version.rc", |
28 "chrome_watcher_main.cc", | 29 "chrome_watcher_main.cc", |
29 "$target_gen_dir/chrome_watcher_version.rc", | |
30 ] | 30 ] |
31 inputs = [ | 31 inputs = [ |
32 "chrome_watcher.def", | 32 "chrome_watcher.def", |
33 ] | 33 ] |
34 deps = [ | 34 deps = [ |
35 ":chrome_watcher_resources", | 35 ":chrome_watcher_resources", |
36 "//base", | 36 "//base", |
37 "//components/browser_watcher", | 37 "//components/browser_watcher", |
38 ] | 38 ] |
39 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ] | 39 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ] |
40 configs -= [ "//build/config/win:console" ] | 40 configs -= [ "//build/config/win:console" ] |
41 configs += [ "//build/config/win:windowed" ] | 41 configs += [ "//build/config/win:windowed" ] |
42 } | 42 } |
OLD | NEW |