forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
72 lines (66 loc) · 1.65 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chrome/process_version_rc_template.gni")
import("//testing/test.gni")
source_set("client") {
sources = [
"chrome_watcher_main_api.cc",
"chrome_watcher_main_api.h",
]
deps = [
"//base",
]
}
source_set("hang_util") {
sources = [
"system_load_estimator.cc",
"system_load_estimator.h",
]
deps = [
"//base",
]
libs = [ "pdh.lib" ] # Used by system_load_estimator.h.
ldflags = [ "/DELAYLOAD:pdh.dll" ] # Only used on report capture.
}
test("system_load_estimator_unittests") {
sources = [
"system_load_estimator_unittest.cc",
]
deps = [
":client",
":hang_util",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//testing/gtest",
]
}
process_version_rc_template("chrome_watcher_resources") {
sources = [
"chrome_watcher.ver",
]
output = "$target_gen_dir/chrome_watcher_version.rc"
}
shared_library("chrome_watcher") {
sources = [
"chrome_watcher_main.cc",
]
inputs = [
"chrome_watcher.def",
]
deps = [
":chrome_watcher_resources",
":client",
"//base",
"//base:base_static",
"//build/config:exe_and_shlib_deps",
"//chrome/common:non_code_constants",
"//chrome/install_static:secondary_module",
"//chrome_elf",
"//components/browser_watcher",
"//content/public/common:static_switches",
]
ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ]
configs -= [ "//build/config/win:console" ]
configs += [ "//build/config/win:windowed" ]
}