1// Copyright (C) 2019 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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_defaults {
20    name: "cts_mediav2_jni_defaults",
21    shared_libs: [
22        "libmediandk",
23        "liblog",
24        "libandroid",
25        "libz",
26    ],
27    srcs: [
28        "NativeMediaCommon.cpp",
29    ],
30    header_libs: ["liblog_headers"],
31    stl: "libc++_static",
32    cflags: [
33        "-Werror",
34        "-Wall",
35    ],
36    gtest: false,
37    sdk_version: "29",
38}
39
40cc_test_library {
41    name: "libctsmediav2muxer_jni",
42    defaults: [
43        "cts_mediav2_jni_defaults",
44    ],
45    srcs: [
46        "NativeMuxerTest.cpp",
47        "NativeMuxerUnitTest.cpp",
48    ],
49}
50
51cc_test_library {
52    name: "libctsmediav2extractor_jni",
53    defaults: [
54        "cts_mediav2_jni_defaults",
55    ],
56    srcs: [
57        "NativeExtractorTest.cpp",
58        "NativeExtractorUnitTest.cpp",
59    ],
60}
61
62cc_test_library {
63    name: "libctsmediav2codecapiunit_jni",
64    defaults: [
65        "cts_mediav2_jni_defaults",
66    ],
67    srcs: [
68        "NativeCodecTestBase.cpp",
69        "NativeCodecUnitTest.cpp",
70    ],
71}
72
73cc_test_library {
74    name: "libctsmediav2codecdec_jni",
75    defaults: [
76        "cts_mediav2_jni_defaults",
77    ],
78    srcs: [
79        "NativeCodecDecoderTestCommon.cpp",
80        "NativeCodecDecoderTest.cpp",
81        "NativeCodecTestBase.cpp",
82    ],
83}
84
85cc_test_library {
86    name: "libctsmediav2codecdecsurface_jni",
87    defaults: [
88        "cts_mediav2_jni_defaults",
89    ],
90    srcs: [
91        "NativeCodecDecoderTestCommon.cpp",
92        "NativeCodecDecoderSurfaceTest.cpp",
93        "NativeCodecTestBase.cpp",
94    ],
95}
96
97cc_test_library {
98    name: "libctsmediav2codecenc_jni",
99    defaults: [
100        "cts_mediav2_jni_defaults",
101    ],
102    srcs: [
103        "NativeCodecEncoderTest.cpp",
104        "NativeCodecTestBase.cpp",
105    ],
106}
107
108cc_test_library {
109    name: "libctsmediav2codecencsurface_jni",
110    defaults: [
111        "cts_mediav2_jni_defaults",
112    ],
113    srcs: [
114        "NativeCodecTestBase.cpp",
115        "NativeCodecEncoderSurfaceTest.cpp",
116    ],
117}
118
119cc_test_library {
120    name: "libctsmediav2utils_jni",
121    defaults: [
122        "cts_mediav2_jni_defaults",
123    ],
124    srcs: [
125        "NativeMediaFormatUnitTest.cpp",
126    ],
127}
128