1f6603c60Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2f6603c60Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3f6603c60Sopenharmony_ci# you may not use this file except in compliance with the License. 4f6603c60Sopenharmony_ci# You may obtain a copy of the License at 5f6603c60Sopenharmony_ci# 6f6603c60Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7f6603c60Sopenharmony_ci# 8f6603c60Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9f6603c60Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10f6603c60Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11f6603c60Sopenharmony_ci# See the License for the specific language governing permissions and 12f6603c60Sopenharmony_ci# limitations under the License. 13f6603c60Sopenharmony_ci 14f6603c60Sopenharmony_ciimport("//foundation/multimedia/av_codec/config.gni") 15f6603c60Sopenharmony_ciimport("//test/xts/tools/build/suite.gni") 16f6603c60Sopenharmony_ci 17f6603c60Sopenharmony_ciMEDIA_ROOT_DIR = "//foundation/multimedia/av_codec/" 18f6603c60Sopenharmony_ciTHIRD_ROOT_DIR = "//third_party/" 19f6603c60Sopenharmony_cimodule_output_path = "acts/ActsCapabilityTest" 20f6603c60Sopenharmony_ci 21f6603c60Sopenharmony_ciohos_moduletest_suite("ActsCapabilityTest") { 22f6603c60Sopenharmony_ci module_out_path = module_output_path 23f6603c60Sopenharmony_ci sources = [ "./src/cap_test.cpp" ] 24f6603c60Sopenharmony_ci 25f6603c60Sopenharmony_ci include_dirs = [ 26f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/test/moduletest/vcodec/encoder/include", 27f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/test/nativedemo/avmuxer", 28f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/interfaces/kits/c", 29f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/interfaces/inner_api/native", 30f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/services/factory", 31f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/engine/plugin/common", 32f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/engine/plugin/core", 33f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/engine/plugin/interface", 34f6603c60Sopenharmony_ci "$THIRD_ROOT_DIR/ffmpeg", 35f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/frameworks/native/capi/common", 36f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/dfx/include", 37f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/engine/base/include", 38f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/engine/codec/include/video", 39f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/engine/common/include", 40f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/engine/source/hst_releated", 41f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/services/factory", 42f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/services/utils/include", 43f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/test/nativedemo/include", 44f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/../../../third_party/openssl/ohos_lite/include", 45f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/../../graphic/graphic_2d/interfaces/inner_api", 46f6603c60Sopenharmony_ci ] 47f6603c60Sopenharmony_ci 48f6603c60Sopenharmony_ci cflags = [ 49f6603c60Sopenharmony_ci "-std=c++17", 50f6603c60Sopenharmony_ci "-fno-rtti", 51f6603c60Sopenharmony_ci "-fno-exceptions", 52f6603c60Sopenharmony_ci "-Wall", 53f6603c60Sopenharmony_ci "-fno-common", 54f6603c60Sopenharmony_ci "-fstack-protector-strong", 55f6603c60Sopenharmony_ci "-Wshadow", 56f6603c60Sopenharmony_ci "-FPIC", 57f6603c60Sopenharmony_ci "-FS", 58f6603c60Sopenharmony_ci "-O2", 59f6603c60Sopenharmony_ci "-D_FORTIFY_SOURCE=2", 60f6603c60Sopenharmony_ci "-fvisibility=hidden", 61f6603c60Sopenharmony_ci "-Wformat=2", 62f6603c60Sopenharmony_ci "-Wdate-time", 63f6603c60Sopenharmony_ci "-Werror", 64f6603c60Sopenharmony_ci "-Wextra", 65f6603c60Sopenharmony_ci "-Wimplicit-fallthrough", 66f6603c60Sopenharmony_ci "-Wsign-compare", 67f6603c60Sopenharmony_ci "-Wunused-parameter", 68f6603c60Sopenharmony_ci ] 69f6603c60Sopenharmony_ci 70f6603c60Sopenharmony_ci deps = [ 71f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/interfaces/inner_api/native:av_codec_client", 72f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_codecbase", 73f6603c60Sopenharmony_ci "$MEDIA_ROOT_DIR/interfaces/kits/c:native_media_venc", 74f6603c60Sopenharmony_ci ] 75f6603c60Sopenharmony_ci 76f6603c60Sopenharmony_ci external_deps = [ 77f6603c60Sopenharmony_ci "c_utils:utils", 78f6603c60Sopenharmony_ci "graphic_2d:libgraphic_utils", 79f6603c60Sopenharmony_ci "graphic_2d:librender_service_client", 80f6603c60Sopenharmony_ci "graphic_surface:surface", 81f6603c60Sopenharmony_ci "hilog:libhilog", 82f6603c60Sopenharmony_ci "ipc:ipc_core", 83f6603c60Sopenharmony_ci "media_foundation:media_foundation", 84f6603c60Sopenharmony_ci "media_foundation:native_media_core", 85f6603c60Sopenharmony_ci "window_manager:libwm", 86f6603c60Sopenharmony_ci ] 87f6603c60Sopenharmony_ci 88f6603c60Sopenharmony_ci part_name = "av_codec" 89f6603c60Sopenharmony_ci subsystem_name = "multimedia" 90f6603c60Sopenharmony_ci} 91