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