blob: 7e33261eb49b2a1d12ee4c772b677f0591082f9f [file] [log] [blame]
Tao Bao8c7761e2017-11-15 11:45:23 -08001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_defaults {
16 name: "minadbd_defaults",
17
Josh Gao9828dc12018-11-13 14:19:04 -080018 cpp_std: "gnu++17",
Tao Bao8c7761e2017-11-15 11:45:23 -080019 cflags: [
20 "-DADB_HOST=0",
21 "-Wall",
22 "-Werror",
23 ],
24
25 include_dirs: [
Tao Bao8c7761e2017-11-15 11:45:23 -080026 "system/core/adb",
27 ],
28}
29
Tao Bao7d2a63a2018-08-13 11:15:29 -070030// `libminadbd_services` is analogous to the `libadbd_services` for regular `adbd`, but providing
31// the sideload service only.
32cc_library {
33 name: "libminadbd_services",
Tao Bao5fc72a12018-08-07 14:38:51 -070034 recovery_available: true,
Tao Bao8c7761e2017-11-15 11:45:23 -080035
36 defaults: [
37 "minadbd_defaults",
38 ],
39
40 srcs: [
41 "fuse_adb_provider.cpp",
42 "minadbd.cpp",
43 "minadbd_services.cpp",
44 ],
45
Tao Bao7d2a63a2018-08-13 11:15:29 -070046 shared_libs: [
47 "libadbd",
Tao Bao8c7761e2017-11-15 11:45:23 -080048 "libbase",
49 "libcrypto",
Tao Bao7d2a63a2018-08-13 11:15:29 -070050 "libfusesideload",
Tao Bao8c7761e2017-11-15 11:45:23 -080051 ],
52}
53
54cc_test {
55 name: "minadbd_test",
Christopher Ferris272467d2018-08-22 19:38:49 -070056 isolated: true,
Tao Bao8c7761e2017-11-15 11:45:23 -080057
58 defaults: [
59 "minadbd_defaults",
60 ],
61
62 srcs: [
63 "fuse_adb_provider_test.cpp",
64 ],
65
66 static_libs: [
Tao Bao7d2a63a2018-08-13 11:15:29 -070067 "libminadbd_services",
68 "libadbd",
Tao Bao8c7761e2017-11-15 11:45:23 -080069 ],
70
71 shared_libs: [
72 "libbase",
73 "libcutils",
74 "liblog",
75 ],
76
77 test_suites: [
78 "device-tests",
79 ],
80}