forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
76 lines (67 loc) · 1.63 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
73
74
75
76
# 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("//build/config/chrome_build.gni")
import("//build/config/ui.gni")
import("//chrome/version.gni")
import("//testing/test.gni")
executable("delegate_execute") {
sources = [
"delegate_execute.cc",
"delegate_execute.rc",
]
configs -= [ "//build/config/win:console" ]
configs += [ "//build/config/win:windowed" ]
deps = [
":lib",
":version_resources",
"//base:base_static",
]
}
source_set("lib") {
visibility = [ ":*" ]
sources = [
"chrome_util.cc",
"chrome_util.h",
"command_execute_impl.cc",
"command_execute_impl.h",
"command_execute_impl.rgs",
"crash_server_init.cc",
"crash_server_init.h",
"delegate_execute_operation.cc",
"delegate_execute_operation.h",
"delegate_execute_util.cc",
"delegate_execute_util.h",
"resource.h",
]
public_deps = [
"//base",
"//breakpad:breakpad_handler",
"//chrome/common:constants",
"//chrome/installer/util:with_no_strings",
"//ui/base",
"//ui/gfx",
"//ui/gfx/geometry",
]
if (is_chrome_branded) {
public_deps += [ "//google_update" ]
}
}
process_version("version_resources") {
visibility = [ ":*" ]
sources = [
"delegate_execute_exe.ver",
]
output = "$target_gen_dir/delegate_execute_exe.rc"
template_file = chrome_version_rc_template
}
test("delegate_execute_unittests") {
sources = [
"delegate_execute_util_unittest.cc",
]
deps = [
":lib",
"//base/test:run_all_unittests",
"//testing/gtest",
]
}