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 | |
| 29 | cc_library_static { |
| 30 | name: "libminadbd", |
| 31 | |
| 32 | defaults: [ |
| 33 | "minadbd_defaults", |
| 34 | ], |
| 35 | |
| 36 | srcs: [ |
| 37 | "fuse_adb_provider.cpp", |
| 38 | "minadbd.cpp", |
| 39 | "minadbd_services.cpp", |
| 40 | ], |
| 41 | |
| 42 | static_libs: [ |
Tao Bao | 4b51c3a | 2018-03-06 22:05:25 -0800 | [diff] [blame] | 43 | "libfusesideload", |
Jerry Zhang | c936a69 | 2018-07-17 14:20:55 -0700 | [diff] [blame] | 44 | "libbase", |
| 45 | "libcrypto", |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 46 | ], |
Hridya Valsaraju | b6b129b | 2018-07-23 17:43:59 +0000 | [diff] [blame] | 47 | |
| 48 | whole_static_libs: [ |
| 49 | "libadbd", |
| 50 | ], |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | cc_test { |
| 54 | name: "minadbd_test", |
| 55 | |
| 56 | defaults: [ |
| 57 | "minadbd_defaults", |
| 58 | ], |
| 59 | |
| 60 | srcs: [ |
| 61 | "fuse_adb_provider_test.cpp", |
| 62 | ], |
| 63 | |
| 64 | static_libs: [ |
| 65 | "libBionicGtestMain", |
| 66 | "libminadbd", |
| 67 | ], |
| 68 | |
| 69 | shared_libs: [ |
Tao Bao | 8c7761e | 2017-11-15 11:45:23 -0800 | [diff] [blame] | 70 | "libbase", |
| 71 | "libcutils", |
| 72 | "liblog", |
| 73 | ], |
| 74 | |
| 75 | test_suites: [ |
| 76 | "device-tests", |
| 77 | ], |
| 78 | } |