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_team: "trendy_team_android_video_image_codecs",
24    default_applicable_licenses: ["Android-Apache-2.0"],
25}
26
27java_library {
28    name: "audiotestharness-client-clientlib",
29    host_supported: true,
30    srcs: [
31        "src/main/java/com/android/media/audiotestharness/client/*.java",
32    ],
33    sdk_version: "current",
34}
35
36java_library {
37    name: "audiotestharness-client-corelib",
38    host_supported: true,
39    srcs: [
40        "src/main/java/com/android/media/audiotestharness/client/core/*.java",
41    ],
42    static_libs: [
43        "audiotestharness-commonlib-lite",
44        "audiotestharness-commonprotolib-lite",
45    ],
46    sdk_version: "current",
47}
48
49java_library {
50    name: "audiotestharness-client-grpclib",
51    host_supported: true,
52    srcs: [
53        "src/main/java/com/android/media/audiotestharness/client/grpc/*.java",
54    ],
55    static_libs: [
56        "audiotestharness-client-corelib",
57        "grpc-java-okhttp-client-lite",
58        "audiotestharness-servicegrpclib-lite",
59        "audiotestharness-commonlib-lite",
60        "guava",
61    ],
62    sdk_version: "current",
63}
64
65// TESTS ==============================================================
66
67java_test_host {
68    name: "audiotestharness-client-grpclib-tests",
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        "grpc-java-testing",
76        "junit",
77        "junit-params",
78        "mockito",
79        "objenesis",
80    ],
81    test_options: {
82        unit_test: false,
83    },
84}
85