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/av_codec/" 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 "../../../../../../foundation/graphic/graphic_2d/interfaces/kits/surface", 38 "../../../../../../foundation/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 ] 43 44 cflags = [ 45 "-Werror", 46 "-fno-rtti", 47 "-fno-exceptions", 48 "-Wall", 49 "-fno-common", 50 "-fstack-protector-strong", 51 "-Wshadow", 52 "-FPIC", 53 "-FS", 54 "-O2", 55 "-D_FORTIFY_SOURCE=2", 56 "-fvisibility=hidden", 57 "-Wformat=2", 58 "-Wdate-time", 59 "", 60 ] 61 62 deps = [ 63 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_adec", 64 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_aenc", 65 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_codecbase", 66 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_core", 67 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_vdec", 68 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_venc", 69 "../../../../../../base/startup/init/interfaces/kits/syscap:deviceinfo_ndk", 70 "../../../../../../foundation/graphic/graphic_2d:libsurface", 71 "../../../../../../foundation/graphic/graphic_2d/frameworks/surface:surface", 72 "../../../../../../foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 73 "../../../../../../foundation/window/window_manager/wm:libwm", 74 ] 75 external_deps = [ 76 "c_utils:utils", 77 "hilog:libhilog", 78 ] 79 80 part_name = "av_codec" 81 subsystem_name = "multimedia" 82} 83