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