1/* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17// Targets for the Audio Test Harness Client Libraries. 18// Clients can be used host or device side to communicate with an Audio 19// Test Harness Server. 20// LIBRARIES ============================================================== 21 22package { 23 default_applicable_licenses: ["Android-Apache-2.0"], 24} 25 26java_library { 27 name: "audiotestharness-client-clientlib", 28 host_supported: true, 29 srcs: [ 30 "src/main/java/com/android/media/audiotestharness/client/*.java", 31 ], 32 sdk_version: "current", 33} 34 35java_library { 36 name: "audiotestharness-client-corelib", 37 host_supported: true, 38 srcs: [ 39 "src/main/java/com/android/media/audiotestharness/client/core/*.java", 40 ], 41 static_libs: [ 42 "audiotestharness-commonlib-lite", 43 "audiotestharness-commonprotolib-lite", 44 ], 45 sdk_version: "current", 46} 47 48java_library { 49 name: "audiotestharness-client-grpclib", 50 host_supported: true, 51 srcs: [ 52 "src/main/java/com/android/media/audiotestharness/client/grpc/*.java", 53 ], 54 static_libs: [ 55 "audiotestharness-client-corelib", 56 "grpc-java-okhttp-client-lite", 57 "audiotestharness-servicegrpclib-lite", 58 "guava", 59 ], 60 sdk_version: "current", 61} 62 63// TESTS ============================================================== 64 65java_test { 66 name: "audiotestharness-client-grpclib-tests", 67 test_suites: ["general-tests"], 68 host_supported: true, 69 srcs: [ 70 "src/test/java/com/android/media/audiotestharness/client/grpc/*.java", 71 ], 72 static_libs: [ 73 "audiotestharness-client-grpclib", 74 "grpc-java-core-inprocess", 75 "junit", 76 "junit-params", 77 "mockito", 78 "objenesis", 79 ], 80 sdk_version: "current", 81 test_options: { 82 unit_test: true, 83 }, 84} 85