blob: 36896795da86ae78a397cd0a85a0ae9087ab0ec7 [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
24 include_dirs: [
Tao Bao8c7761e2017-11-15 11:45:23 -080025 "system/core/adb",
26 ],
27}
28
Tao Baoc70446c2018-08-07 20:11:44 -070029cc_library_static {
30 name: "libminadbd",
Tao Bao5fc72a12018-08-07 14:38:51 -070031 recovery_available: true,
Tao Bao8c7761e2017-11-15 11:45:23 -080032
33 defaults: [
34 "minadbd_defaults",
35 ],
36
37 srcs: [
38 "fuse_adb_provider.cpp",
39 "minadbd.cpp",
40 "minadbd_services.cpp",
41 ],
42
Tao Baoc70446c2018-08-07 20:11:44 -070043 static_libs: [
44 "libfusesideload",
Tao Bao8c7761e2017-11-15 11:45:23 -080045 "libbase",
46 "libcrypto",
47 ],
48
Tao Baoc70446c2018-08-07 20:11:44 -070049 whole_static_libs: [
50 "libadbd",
Tao Bao8c7761e2017-11-15 11:45:23 -080051 ],
52}
53
54cc_test {
55 name: "minadbd_test",
56
57 defaults: [
58 "minadbd_defaults",
59 ],
60
61 srcs: [
62 "fuse_adb_provider_test.cpp",
63 ],
64
65 static_libs: [
66 "libBionicGtestMain",
Tao Baoc70446c2018-08-07 20:11:44 -070067 "libminadbd",
Tao Bao8c7761e2017-11-15 11:45:23 -080068 ],
69
70 shared_libs: [
71 "libbase",
72 "libcutils",
73 "liblog",
74 ],
75
76 test_suites: [
77 "device-tests",
78 ],
79}