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 | |
Tao Bao | 5de19e2 | 2019-01-02 09:35:59 -0800 | [diff] [blame] | 24 | cpp_std: "experimental", |
| 25 | |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 26 | include_dirs: [ |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 27 | "system/core/adb", |
| 28 | ], |
| 29 | } |
| 30 | |
Tao Bao | 7d2a63a | 2018-08-13 11:15:29 -0700 | [diff] [blame] | 31 | // `libminadbd_services` is analogous to the `libadbd_services` for regular `adbd`, but providing |
| 32 | // the sideload service only. |
| 33 | cc_library { |
| 34 | name: "libminadbd_services", |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 35 | recovery_available: true, |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 36 | |
| 37 | defaults: [ |
| 38 | "minadbd_defaults", |
| 39 | ], |
| 40 | |
| 41 | srcs: [ |
| 42 | "fuse_adb_provider.cpp", |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 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 | |
xunchang | 34690ce | 2019-04-05 16:16:07 -0700 | [diff] [blame] | 54 | cc_library_headers { |
| 55 | name: "libminadbd_headers", |
| 56 | recovery_available: true, |
| 57 | // TODO create a include dir |
| 58 | export_include_dirs: [ |
| 59 | ".", |
| 60 | ], |
| 61 | } |
| 62 | |
| 63 | cc_binary { |
| 64 | name: "minadbd", |
| 65 | recovery: true, |
| 66 | |
| 67 | defaults: [ |
| 68 | "minadbd_defaults", |
| 69 | ], |
| 70 | |
| 71 | srcs: [ |
| 72 | "minadbd.cpp", |
| 73 | ], |
| 74 | |
| 75 | shared_libs: [ |
| 76 | "libadbd", |
| 77 | "libbase", |
| 78 | "libcrypto", |
xunchang | 34690ce | 2019-04-05 16:16:07 -0700 | [diff] [blame] | 79 | "libminadbd_services", |
| 80 | ], |
| 81 | } |
| 82 | |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 83 | cc_test { |
| 84 | name: "minadbd_test", |
Christopher Ferris | 272467d | 2018-08-22 19:38:49 -0700 | [diff] [blame] | 85 | isolated: true, |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 86 | |
| 87 | defaults: [ |
| 88 | "minadbd_defaults", |
| 89 | ], |
| 90 | |
| 91 | srcs: [ |
| 92 | "fuse_adb_provider_test.cpp", |
| 93 | ], |
| 94 | |
| 95 | static_libs: [ |
Tao Bao | 7d2a63a | 2018-08-13 11:15:29 -0700 | [diff] [blame] | 96 | "libminadbd_services", |
xunchang | ea2912f | 2019-03-17 16:45:12 -0700 | [diff] [blame] | 97 | "libfusesideload", |
Tao Bao | 7d2a63a | 2018-08-13 11:15:29 -0700 | [diff] [blame] | 98 | "libadbd", |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 99 | ], |
| 100 | |
| 101 | shared_libs: [ |
| 102 | "libbase", |
| 103 | "libcutils", |
| 104 | "liblog", |
| 105 | ], |
| 106 | |
| 107 | test_suites: [ |
| 108 | "device-tests", |
| 109 | ], |
| 110 | } |