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