• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//test/xts/tools/build/suite.gni")
15
16module_output_path = "acts/ActsAvcodecNdkTest"
17MEDIA_ROOT_DIR = "//foundation/multimedia/player_framework/"
18
19ohos_moduletest_suite("ActsAvcodecNdkTest") {
20  module_out_path = module_output_path
21  sources = [
22    "audioDecEncNdk/src/ADecEncNdkSample.cpp",
23    "audioDecEncNdk/src/ActsAudioDecEncNdkTest.cpp",
24    "codecFormatNdk/ActsCodecFormatNdkTest.cpp",
25    "videoDecEncNdk/src/ActsVideoDecEncNdkTest.cpp",
26    "videoDecEncNdk/src/VDecEncNdkSample.cpp",
27  ]
28  include_dirs = [
29    "include",
30    "audioDecEncNdk/include",
31    "videoDecEncNdk/include",
32    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
33    "//foundation/graphic/graphic_2d/frameworks/surface/include",
34    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
35    "//foundation/graphic/graphic_2d/interfaces/inner_api/common",
36    "//foundation//window/window_manager/interfaces/innerkits/wm",
37    "//graphic/graphic_2d/interfaces/kits/surface",
38    "//graphic/graphic_2d/interfaces/inner_api/surface",
39    "//base/startup/init/interfaces/kits/syscap/include",
40    "$MEDIA_ROOT_DIR/interfaces/inner_api/native",
41    "$MEDIA_ROOT_DIR/interfaces/kits/c",
42    "$MEDIA_ROOT_DIR/frameworks/native/capi/common",
43    "$MEDIA_ROOT_DIR/interfaces/kits/c",
44    "$MEDIA_ROOT_DIR/interfaces/inner_api/native",
45  ]
46
47  cflags = [
48    "-Werror",
49    "-fno-rtti",
50    "-fno-exceptions",
51    "-Wall",
52    "-fno-common",
53    "-fstack-protector-strong",
54    "-Wshadow",
55    "-FPIC",
56    "-FS",
57    "-O2",
58    "-D_FORTIFY_SOURCE=2",
59    "-fvisibility=hidden",
60    "-Wformat=2",
61    "-Wdate-time",
62    "",
63  ]
64
65  deps = [
66    "$MEDIA_ROOT_DIR/interfaces/inner_api/native:media_client",
67    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_adec",
68    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_aenc",
69    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_codecbase",
70    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_core",
71    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_vdec",
72    "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_venc",
73    "//base/startup/init/interfaces/kits/syscap:deviceinfo_ndk",
74    "//foundation/graphic/graphic_2d:libsurface",
75    "//foundation/graphic/graphic_2d/frameworks/surface:surface",
76    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
77    "//foundation/window/window_manager/wm:libwm",
78  ]
79  external_deps = [
80    "c_utils:utils",
81    "hiviewdfx_hilog_native:libhilog",
82  ]
83
84  part_name = "multimedia_player_framework"
85  subsystem_name = "multimedia"
86}
87