-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.gn
49 lines (44 loc) · 1.08 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
# Copyright 2018 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 = [ ":libpasswordprovider" ]
if (use.test) {
deps += [ ":password_provider_test" ]
}
}
pkg_config("target_defaults") {
pkg_deps = [ "libchrome" ]
}
shared_library("libpasswordprovider") {
sources = [
"password.cc",
"password.h",
"password_provider.cc",
"password_provider.h",
]
configs += [ ":target_defaults" ]
libs = [ "keyutils" ]
}
if (use.test) {
executable("password_provider_test") {
sources = [
"password.cc",
"password_provider.cc",
"password_provider_test.cc",
"password_test.cc",
]
configs += [
# //common-mk:test should be at the top. crbug.com/887845
# TODO(crbug.com/887845): Remove this note after library order issue is resolved.
"//common-mk:test",
":target_defaults",
]
libs = [ "keyutils" ]
deps = [
":libpasswordprovider",
"//common-mk/testrunner",
]
}
}