• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2017 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
17cc_defaults {
18    name: "VtsHalAudioTargetTest_defaults",
19    defaults: ["VtsHalTargetTestDefaults"],
20    static_libs: [
21        "android.hardware.audio.common.test.utility",
22        "libaudiopolicycomponents",
23        "libmedia_helper",
24        "libxml2",
25    ],
26    shared_libs: [
27        "libfmq",
28    ],
29    header_libs: [
30        "android.hardware.audio.common.util@all-versions",
31    ],
32    test_suites: ["general-tests"],
33}
34
35cc_test {
36    name: "VtsHalAudioV2_0TargetTest",
37    defaults: ["VtsHalAudioTargetTest_defaults"],
38    srcs: [
39        "2.0/AudioPrimaryHidlHalTest.cpp",
40    ],
41    static_libs: [
42        "android.hardware.audio@2.0",
43        "android.hardware.audio.common@2.0",
44    ],
45    cflags: [
46        "-DMAJOR_VERSION=2",
47        "-DMINOR_VERSION=0",
48        "-include common/all-versions/VersionMacro.h",
49    ]
50}
51
52cc_test {
53    name: "VtsHalAudioV4_0TargetTest",
54    defaults: ["VtsHalAudioTargetTest_defaults"],
55    srcs: [
56        "4.0/AudioPrimaryHidlHalTest.cpp",
57    ],
58    static_libs: [
59        "android.hardware.audio@4.0",
60        "android.hardware.audio.common@4.0",
61    ],
62    cflags: [
63        "-DMAJOR_VERSION=4",
64        "-DMINOR_VERSION=0",
65        "-include common/all-versions/VersionMacro.h",
66    ]
67}
68
69cc_test {
70    name: "VtsHalAudioV5_0TargetTest",
71    defaults: ["VtsHalAudioTargetTest_defaults"],
72    srcs: [
73        "5.0/AudioPrimaryHidlHalTest.cpp",
74    ],
75    static_libs: [
76        "android.hardware.audio@5.0",
77        "android.hardware.audio.common@5.0",
78    ],
79    cflags: [
80        "-DMAJOR_VERSION=5",
81        "-DMINOR_VERSION=0",
82        "-include common/all-versions/VersionMacro.h",
83    ]
84}
85