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
15cc_test_library {
16    name: "libctsmediav2muxer_jni",
17    srcs: [
18        "NativeMediaCommon.cpp",
19        "NativeMuxerTest.cpp",
20        "NativeMuxerUnitTest.cpp",
21    ],
22    shared_libs: [
23        "libmediandk",
24        "liblog",
25    ],
26    include_dirs: [
27        "frameworks/av/media/ndk/include/media",
28        "system/core/include"
29    ],
30    stl: "libc++_static",
31    cflags: [
32        "-Werror",
33        "-Wall",
34    ],
35    gtest: false,
36    sdk_version: "29",
37}
38
39cc_test_library {
40    name: "libctsmediav2extractor_jni",
41    srcs: [
42        "NativeMediaCommon.cpp",
43        "NativeExtractorTest.cpp",
44        "NativeExtractorUnitTest.cpp",
45    ],
46    shared_libs: [
47        "libmediandk",
48        "liblog",
49    ],
50    include_dirs: [
51        "frameworks/av/media/ndk/include/media",
52        "system/core/include"
53    ],
54    stl: "libc++_static",
55    cflags: [
56        "-Werror",
57        "-Wall",
58    ],
59    gtest: false,
60    sdk_version: "29",
61}
62
63cc_test_library {
64    name: "libctsmediav2codec_jni",
65    srcs: [
66        "NativeMediaCommon.cpp",
67        "NativeCodecDecoderTest.cpp",
68        "NativeCodecEncoderTest.cpp",
69        "NativeCodecTestBase.cpp",
70        "NativeCodecUnitTest.cpp",
71        "NativeCodecEncoderSurfaceTest.cpp",
72    ],
73    shared_libs: [
74        "libmediandk",
75        "liblog",
76        "libandroid",
77    ],
78    include_dirs: [
79        "frameworks/av/media/ndk/include/media",
80        "system/core/include"
81    ],
82    stl: "libc++_static",
83    cflags: [
84        "-Werror",
85        "-Wall",
86    ],
87    gtest: false,
88    sdk_version: "29",
89}
90