-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.gn
75 lines (68 loc) · 1.44 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
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//common-mk/pkg_config.gni")
group("all") {
deps = [
":bootsplash",
":install_upstart_config",
]
if (use.test) {
deps += [ ":bootsplash_testrunner" ]
}
}
pkg_config("target_defaults") {
pkg_deps = [
"libbrillo",
"libchrome",
"re2",
]
}
static_library("libbootsplash") {
sources = [
"bootsplash_daemon.cc",
"frecon.cc",
"paths.cc",
"session_manager_client.cc",
"utils.cc",
]
configs += [ ":target_defaults" ]
libs = [ "bootstat" ]
}
executable("bootsplash") {
sources = [ "main.cc" ]
configs += [ ":target_defaults" ]
deps = [ ":libbootsplash" ]
}
# Install upstart configs and scripts.
install_config("install_upstart_config") {
sources = [ "init/upstart/bootsplash.conf" ]
install_path = "upstart"
}
if (use.test) {
pkg_config("libchrome_test_config") {
pkg_deps = [
"libbrillo-test",
"libchrome-test",
]
}
executable("bootsplash_testrunner") {
sources = [
"bootsplash_daemon_test.cc",
"frecon_test.cc",
"paths_test.cc",
"session_manager_client_test.cc",
"utils_test.cc",
]
run_test = true
configs += [
"//common-mk:test",
":libchrome_test_config",
":target_defaults",
]
deps = [
":libbootsplash",
"//common-mk/testrunner",
]
}
}