blob: a95d979a5a5cced266fc9562a9af00e783447010 [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
18 cflags: [
19 "-DADB_HOST=0",
20 "-Wall",
21 "-Werror",
22 ],
23
Tao Bao5de19e22019-01-02 09:35:59 -080024 cpp_std: "experimental",
25
Tao Bao8c7761e2017-11-15 11:45:23 -080026 include_dirs: [
Tao Bao8c7761e2017-11-15 11:45:23 -080027 "system/core/adb",
28 ],
29}
30
Tao Bao7d2a63a2018-08-13 11:15:29 -070031// `libminadbd_services` is analogous to the `libadbd_services` for regular `adbd`, but providing
32// the sideload service only.
33cc_library {
34 name: "libminadbd_services",
Tao Bao5fc72a12018-08-07 14:38:51 -070035 recovery_available: true,
Tao Bao8c7761e2017-11-15 11:45:23 -080036
37 defaults: [
38 "minadbd_defaults",
39 ],
40
41 srcs: [
42 "fuse_adb_provider.cpp",
43 "minadbd.cpp",
44 "minadbd_services.cpp",
45 ],
46
Tao Bao7d2a63a2018-08-13 11:15:29 -070047 shared_libs: [
48 "libadbd",
Tao Bao8c7761e2017-11-15 11:45:23 -080049 "libbase",
50 "libcrypto",
Tao Bao7d2a63a2018-08-13 11:15:29 -070051 "libfusesideload",
Tao Bao8c7761e2017-11-15 11:45:23 -080052 ],
53}
54
55cc_test {
56 name: "minadbd_test",
Christopher Ferris272467d2018-08-22 19:38:49 -070057 isolated: true,
Tao Bao8c7761e2017-11-15 11:45:23 -080058
59 defaults: [
60 "minadbd_defaults",
61 ],
62
63 srcs: [
64 "fuse_adb_provider_test.cpp",
65 ],
66
67 static_libs: [
Tao Bao7d2a63a2018-08-13 11:15:29 -070068 "libminadbd_services",
69 "libadbd",
Tao Bao8c7761e2017-11-15 11:45:23 -080070 ],
71
72 shared_libs: [
73 "libbase",
74 "libcutils",
75 "liblog",
76 ],
77
78 test_suites: [
79 "device-tests",
80 ],
81}