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/av_codec/config.gni") 15import("//test/xts/tools/build/suite.gni") 16 17MEDIA_ROOT_DIR = "//foundation/multimedia/av_codec/" 18module_output_path = "acts/ActsAvbufferDecoderTest" 19AUDIO_ROOT_DIR = "//foundation/multimedia/audio_framework/" 20 21ohos_moduletest_suite("ActsAvbufferDecoderTest") { 22 sanitize = av_codec_test_sanitize 23 module_out_path = module_output_path 24 sources = [ 25 "./src/avcodec_audio_avbuffer_decoder_demo.cpp", 26 "./src/common_tool.cpp", 27 "./src/null_check_test.cpp", 28 "./src/param_check_test.cpp", 29 "./src/status_check_test.cpp", 30 ] 31 32 include_dirs = [ 33 "./include", 34 "$MEDIA_ROOT_DIR/test/nativedemo/avmuxer", 35 "$MEDIA_ROOT_DIR/interfaces/kits/c", 36 "$MEDIA_ROOT_DIR/interfaces/inner_api/native", 37 "$MEDIA_ROOT_DIR/services/services/factory", 38 "$MEDIA_ROOT_DIR/services/engine/plugin/common", 39 "$MEDIA_ROOT_DIR/services/engine/plugin/core", 40 "$MEDIA_ROOT_DIR/services/engine/plugin/interface", 41 "$MEDIA_ROOT_DIR/frameworks/native/capi/common", 42 "$MEDIA_ROOT_DIR/services/dfx/include", 43 "$MEDIA_ROOT_DIR/services/engine/base/include", 44 "$MEDIA_ROOT_DIR/services/engine/codec/include/video", 45 "$MEDIA_ROOT_DIR/services/engine/common/include", 46 "$MEDIA_ROOT_DIR/services/engine/source/hst_releated", 47 "$MEDIA_ROOT_DIR/services/services/factory", 48 "$MEDIA_ROOT_DIR/services/utils/include", 49 "$MEDIA_ROOT_DIR/test/nativedemo/include", 50 "$AUDIO_ROOT_DIR/frameworks/native/audiorenderer/include", 51 "$AUDIO_ROOT_DIR/frameworks/native/audiostream/include", 52 "$AUDIO_ROOT_DIR/interfaces/inner_api/native/audiorenderer/include", 53 "$AUDIO_ROOT_DIR/interfaces/inner_api/native/audiocommon/include", 54 "$AUDIO_ROOT_DIR/interfaces/inner_api/native/audiomanager/include", 55 "$AUDIO_ROOT_DIR/services/audio_service/clinet/include", 56 ] 57 58 cflags = [ 59 "-Wall", 60 "-fno-rtti", 61 "-fno-exceptions", 62 "-fno-common", 63 "-fstack-protector-strong", 64 "-Wshadow", 65 "-FPIC", 66 "-FS", 67 "-O2", 68 "-D_FORTIFY_SOURCE=2", 69 "-fvisibility=hidden", 70 "-Wformat=2", 71 "-Wdate-time", 72 "-Werror", 73 "-Wextra", 74 "-Wimplicit-fallthrough", 75 "-Wsign-compare", 76 "-Wunused-parameter", 77 "-Wno-deprecated-declarations", 78 ] 79 80 deps = [ 81 "$MEDIA_ROOT_DIR/interfaces/kits/c:capi_packages", 82 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_avmuxer", 83 "$MEDIA_ROOT_DIR/services/services:av_codec_service", 84 ] 85 86 external_deps = [ 87 "audio_framework:audio_renderer", 88 "bounds_checking_function:libsec_static", 89 "c_utils:utils", 90 "ffmpeg:libohosffmpeg", 91 "hilog:libhilog", 92 "ipc:ipc_core", 93 "media_foundation:media_foundation", 94 "media_foundation:native_media_core", 95 ] 96 97 if (av_codec_support_drm) { 98 external_deps += [ 99 "drm_framework:drm_framework", 100 "drm_framework:native_drm", 101 ] 102 } 103 part_name = "av_codec" 104 subsystem_name = "multimedia" 105} 106