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