1# Copyright (c) 2020-2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//foundation/multimedia/media_foundation/config.gni")
15import("//test/xts/tools/build/suite.gni")
16
17module_output_path = "acts/ActsAvcodecNdkTest"
18MEDIA_ROOT_DIR = "//foundation/multimedia/av_codec/"
19MEDIA_FOUNDATION_ROOT_DIR = histreamer_root_dir
20
21ohos_moduletest_suite("ActsAvcodecNdkTest") {
22  module_out_path = module_output_path
23  sources = [
24    "audioDecEncNdk/src/ADecEncNdkSample.cpp",
25    "audioDecEncNdk/src/ActsAudioDecEncNdkTest.cpp",
26    "codecFormatNdk/ActsCodecFormatNdkTest.cpp",
27    "videoDecEncNdk/src/ActsVideoDecEncNdkTest.cpp",
28    "videoDecEncNdk/src/VDecEncNdkSample.cpp",
29  ]
30  include_dirs = [
31    "include",
32    "audioDecEncNdk/include",
33    "videoDecEncNdk/include",
34    "../../../../../../foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
35    "../../../../../../foundation/multimedia/drm_framework/services/drm_service/ipc/",
36    "../../../../../../foundation/graphic/graphic_2d/interfaces/inner_api/surface",
37    "../../../../../../foundation/graphic/graphic_2d/interfaces/inner_api/common",
38    "../../../../../../foundation/window/window_manager/interfaces/innerkits/wm",
39    "../../../../../../foundation/graphic/graphic_2d/interfaces/kits/surface",
40    "../../../../../../foundation/graphic/graphic_2d/interfaces/inner_api/surface",
41    "../../../../../../base/startup/init/interfaces/kits/syscap/include",
42    "$MEDIA_ROOT_DIR/interfaces/inner_api/native",
43    "$MEDIA_ROOT_DIR/interfaces/kits/c",
44  ]
45
46  cflags = [
47    "-Werror",
48    "-fno-rtti",
49    "-fno-exceptions",
50    "-Wall",
51    "-fno-common",
52    "-fstack-protector-strong",
53    "-Wshadow",
54    "-FPIC",
55    "-FS",
56    "-O2",
57    "-D_FORTIFY_SOURCE=2",
58    "-fvisibility=hidden",
59    "-Wformat=2",
60    "-Wdate-time",
61    "",
62  ]
63
64  deps = [
65    "$MEDIA_FOUNDATION_ROOT_DIR/src:media_foundation",
66    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_adec",
67    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_aenc",
68    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_codecbase",
69    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_vdec",
70    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_venc",
71    "../../../../../../base/startup/init/interfaces/kits/syscap:deviceinfo_ndk",
72    "../../../../../../foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
73    "../../../../../../foundation/multimedia/media_foundation/src/capi:native_media_core",
74    "../../../../../../foundation/window/window_manager/wm:libwm",
75  ]
76
77  external_deps = [
78    "c_utils:utils",
79    "graphic_surface:surface",
80    "hilog:libhilog",
81  ]
82
83  part_name = "av_codec"
84  subsystem_name = "multimedia"
85}
86