Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_defaults { |
| 16 | name: "minadbd_defaults", |
| 17 | |
| 18 | cflags: [ |
| 19 | "-DADB_HOST=0", |
| 20 | "-Wall", |
| 21 | "-Werror", |
| 22 | ], |
| 23 | |
| 24 | include_dirs: [ |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 25 | "system/core/adb", |
| 26 | ], |
| 27 | } |
| 28 | |
Tao Bao | 7d2a63a | 2018-08-13 11:15:29 -0700 | [diff] [blame] | 29 | // `libminadbd_services` is analogous to the `libadbd_services` for regular `adbd`, but providing |
| 30 | // the sideload service only. |
| 31 | cc_library { |
| 32 | name: "libminadbd_services", |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 33 | recovery_available: true, |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 34 | |
| 35 | defaults: [ |
| 36 | "minadbd_defaults", |
| 37 | ], |
| 38 | |
| 39 | srcs: [ |
| 40 | "fuse_adb_provider.cpp", |
| 41 | "minadbd.cpp", |
| 42 | "minadbd_services.cpp", |
| 43 | ], |
| 44 | |
Tao Bao | 7d2a63a | 2018-08-13 11:15:29 -0700 | [diff] [blame] | 45 | shared_libs: [ |
| 46 | "libadbd", |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 47 | "libbase", |
| 48 | "libcrypto", |
Tao Bao | 7d2a63a | 2018-08-13 11:15:29 -0700 | [diff] [blame] | 49 | "libfusesideload", |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 50 | ], |
| 51 | } |
| 52 | |
| 53 | cc_test { |
| 54 | name: "minadbd_test", |
Christopher Ferris | 272467d | 2018-08-22 19:38:49 -0700 | [diff] [blame] | 55 | isolated: true, |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 56 | |
| 57 | defaults: [ |
| 58 | "minadbd_defaults", |
| 59 | ], |
| 60 | |
| 61 | srcs: [ |
| 62 | "fuse_adb_provider_test.cpp", |
| 63 | ], |
| 64 | |
| 65 | static_libs: [ |
Tao Bao | 7d2a63a | 2018-08-13 11:15:29 -0700 | [diff] [blame] | 66 | "libminadbd_services", |
| 67 | "libadbd", |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 68 | ], |
| 69 | |
| 70 | shared_libs: [ |
| 71 | "libbase", |
| 72 | "libcutils", |
| 73 | "liblog", |
| 74 | ], |
| 75 | |
| 76 | test_suites: [ |
| 77 | "device-tests", |
| 78 | ], |
| 79 | } |