-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.gn
102 lines (91 loc) · 1.84 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright 2019 The Chromium OS 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("//common-mk/pkg_config.gni")
group("all") {
deps = [
":sealed_storage",
":sealed_storage_tool",
":sealed_storage_wrapper",
]
if (use.test) {
deps += [ ":sealed_storage_testrunner" ]
}
}
config("target_defaults") {
}
pkg_config("cli_defaults") {
pkg_deps = [
"libbrillo",
"libchrome",
]
}
pkg_config("test_defaults") {
pkg_deps = [
"libbrillo-test",
"libchrome-test",
]
}
pkg_config("sealed_storage_dependent_config") {
# NOSORT
pkg_deps = [
"libbrillo",
"libchrome",
"openssl",
# per tpm_manager/BUILD.gn, system_api should go before protobuf
"system_api",
"protobuf",
]
}
static_library("sealed_storage") {
sources = [
"sealed_storage.cc",
"wrapper.cc",
]
configs += [
":target_defaults",
"//common-mk:nouse_thin_archive",
"//common-mk:pic",
]
configs -= [
"//common-mk:pie",
"//common-mk:use_thin_archive",
]
libs = [
"trunks",
"tpm_manager",
]
all_dependent_configs = [ ":sealed_storage_dependent_config" ]
}
shared_library("sealed_storage_wrapper") {
deps = [ ":sealed_storage" ]
}
executable("sealed_storage_tool") {
sources = [ "sealed_storage_tool.cc" ]
configs += [
":cli_defaults",
":target_defaults",
]
deps = [ ":sealed_storage" ]
}
if (use.test) {
executable("sealed_storage_testrunner") {
sources = [
"sealed_storage_testrunner.cc",
"sealed_storage_unittests.cc",
]
configs += [
"//common-mk:test",
":target_defaults",
":test_defaults",
]
libs = [
"tpm_manager_test",
"trunks_test",
]
deps = [
":sealed_storage",
"//common-mk/testrunner",
]
}
}