-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.gn
64 lines (57 loc) · 1.21 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
# Copyright 2018 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 = [
":easy_unlock",
":libeasyunlock",
]
if (use.test) {
deps += [ ":easy_unlock_test_runner" ]
}
}
pkg_config("target_defaults") {
pkg_deps = [
"easy-unlock-crypto",
"libbrillo",
"libchrome",
]
}
static_library("libeasyunlock") {
configs += [ ":target_defaults" ]
sources = [
"dbus_adaptor.cc",
"dbus_adaptor.h",
"easy_unlock_service.cc",
"easy_unlock_service.h",
]
if (use.test) {
sources += [
"fake_easy_unlock_service.cc",
"fake_easy_unlock_service.h",
]
}
}
executable("easy_unlock") {
configs += [ ":target_defaults" ]
sources = [ "main.cc" ]
deps = [ ":libeasyunlock" ]
}
if (use.test) {
pkg_config("test_config") {
pkg_deps = [ "libchrome-test" ]
}
executable("easy_unlock_test_runner") {
configs += [
"//common-mk:test",
":target_defaults",
":test_config",
]
sources = [ "easy_unlock_test.cc" ]
deps = [
":libeasyunlock",
"//common-mk/testrunner",
]
}
}