1# Copyright (c) 2024 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/" 18THIRD_ROOT_DIR = "//third_party/" 19module_output_path = "acts/ActsCapabilityTest" 20 21ohos_moduletest_suite("ActsCapabilityTest") { 22 module_out_path = module_output_path 23 sources = [ "./src/cap_test.cpp" ] 24 25 include_dirs = [ 26 "$MEDIA_ROOT_DIR/test/moduletest/vcodec/encoder/include", 27 "$MEDIA_ROOT_DIR/test/nativedemo/avmuxer", 28 "$MEDIA_ROOT_DIR/interfaces/kits/c", 29 "$MEDIA_ROOT_DIR/interfaces/inner_api/native", 30 "$MEDIA_ROOT_DIR/services/services/factory", 31 "$MEDIA_ROOT_DIR/services/engine/plugin/common", 32 "$MEDIA_ROOT_DIR/services/engine/plugin/core", 33 "$MEDIA_ROOT_DIR/services/engine/plugin/interface", 34 "$THIRD_ROOT_DIR/ffmpeg", 35 "$MEDIA_ROOT_DIR/frameworks/native/capi/common", 36 "$MEDIA_ROOT_DIR/services/dfx/include", 37 "$MEDIA_ROOT_DIR/services/engine/base/include", 38 "$MEDIA_ROOT_DIR/services/engine/codec/include/video", 39 "$MEDIA_ROOT_DIR/services/engine/common/include", 40 "$MEDIA_ROOT_DIR/services/engine/source/hst_releated", 41 "$MEDIA_ROOT_DIR/services/services/factory", 42 "$MEDIA_ROOT_DIR/services/utils/include", 43 "$MEDIA_ROOT_DIR/test/nativedemo/include", 44 "$MEDIA_ROOT_DIR/../../../third_party/openssl/ohos_lite/include", 45 "$MEDIA_ROOT_DIR/../../graphic/graphic_2d/interfaces/inner_api", 46 ] 47 48 cflags = [ 49 "-std=c++17", 50 "-fno-rtti", 51 "-fno-exceptions", 52 "-Wall", 53 "-fno-common", 54 "-fstack-protector-strong", 55 "-Wshadow", 56 "-FPIC", 57 "-FS", 58 "-O2", 59 "-D_FORTIFY_SOURCE=2", 60 "-fvisibility=hidden", 61 "-Wformat=2", 62 "-Wdate-time", 63 "-Werror", 64 "-Wextra", 65 "-Wimplicit-fallthrough", 66 "-Wsign-compare", 67 "-Wunused-parameter", 68 ] 69 70 deps = [ 71 "$MEDIA_ROOT_DIR/interfaces/inner_api/native:av_codec_client", 72 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_codecbase", 73 "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_venc", 74 ] 75 76 external_deps = [ 77 "c_utils:utils", 78 "graphic_2d:libgraphic_utils", 79 "graphic_2d:librender_service_client", 80 "graphic_surface:surface", 81 "hilog:libhilog", 82 "ipc:ipc_core", 83 "media_foundation:media_foundation", 84 "media_foundation:native_media_core", 85 "window_manager:libwm", 86 ] 87 88 part_name = "av_codec" 89 subsystem_name = "multimedia" 90} 91