| Joshua Duong | 4293e32 | 2020-02-11 10:29:27 -0800 | [diff] [blame] | 1 | // Copyright (C) 2020 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: "libadb_tls_connection_defaults", | 
|  | 17 | cflags: [ | 
|  | 18 | "-Wall", | 
|  | 19 | "-Wextra", | 
|  | 20 | "-Wthread-safety", | 
|  | 21 | "-Werror", | 
|  | 22 | ], | 
|  | 23 |  | 
|  | 24 | compile_multilib: "both", | 
|  | 25 |  | 
|  | 26 | srcs: [ | 
|  | 27 | "adb_ca_list.cpp", | 
|  | 28 | "tls_connection.cpp", | 
|  | 29 | ], | 
|  | 30 | target: { | 
|  | 31 | windows: { | 
|  | 32 | compile_multilib: "first", | 
|  | 33 | enabled: true, | 
|  | 34 | }, | 
|  | 35 | }, | 
|  | 36 | export_include_dirs: ["include"], | 
|  | 37 |  | 
|  | 38 | host_supported: true, | 
|  | 39 | recovery_available: true, | 
|  | 40 |  | 
|  | 41 | visibility: [ | 
|  | 42 | "//system/core/adb:__subpackages__", | 
|  | 43 | ], | 
|  | 44 |  | 
|  | 45 | stl: "libc++_static", | 
|  | 46 |  | 
|  | 47 | static_libs: [ | 
|  | 48 | "libbase", | 
|  | 49 | ], | 
|  | 50 | shared_libs: [ | 
|  | 51 | "libcrypto", | 
|  | 52 | "liblog", | 
|  | 53 | "libssl", | 
|  | 54 | ], | 
|  | 55 | } | 
|  | 56 |  | 
|  | 57 | cc_library { | 
|  | 58 | name: "libadb_tls_connection", | 
|  | 59 | defaults: ["libadb_tls_connection_defaults"], | 
|  | 60 |  | 
|  | 61 | apex_available: [ | 
|  | 62 | "com.android.adbd", | 
|  | 63 | "test_com.android.adbd", | 
|  | 64 | ], | 
|  | 65 | } | 
|  | 66 |  | 
|  | 67 | // For running atest (b/147158681) | 
|  | 68 | cc_library_static { | 
|  | 69 | name: "libadb_tls_connection_static", | 
|  | 70 | defaults: ["libadb_tls_connection_defaults"], | 
|  | 71 |  | 
|  | 72 | apex_available: [ | 
|  | 73 | "//apex_available:platform", | 
|  | 74 | ], | 
|  | 75 | } |