1fa7767c5Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2fa7767c5Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3fa7767c5Sopenharmony_ci# you may not use this file except in compliance with the License. 4fa7767c5Sopenharmony_ci# You may obtain a copy of the License at 5fa7767c5Sopenharmony_ci# 6fa7767c5Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7fa7767c5Sopenharmony_ci# 8fa7767c5Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9fa7767c5Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10fa7767c5Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11fa7767c5Sopenharmony_ci# See the License for the specific language governing permissions and 12fa7767c5Sopenharmony_ci# limitations under the License. 13fa7767c5Sopenharmony_ci 14fa7767c5Sopenharmony_ciimport("//build/test.gni") 15fa7767c5Sopenharmony_ciimport("//foundation/multimedia/media_foundation/config.gni") 16fa7767c5Sopenharmony_ci 17fa7767c5Sopenharmony_civideo_moduletest_native_include_dirs = [ 18fa7767c5Sopenharmony_ci "$histreamer_root_dir/video_processing_engine/interface/kits/c", 19fa7767c5Sopenharmony_ci "$histreamer_root_dir/video_processing_engine/../../../graphic/graphic_2d/interfaces/inner_api", 20fa7767c5Sopenharmony_ci "$histreamer_root_dir/video_processing_engine/../../../window/window_manager/interfaces/innerkits", 21fa7767c5Sopenharmony_ci] 22fa7767c5Sopenharmony_ci 23fa7767c5Sopenharmony_civideo_moduletest_cflags = [ 24fa7767c5Sopenharmony_ci "-std=c++17", 25fa7767c5Sopenharmony_ci "-fno-rtti", 26fa7767c5Sopenharmony_ci "-fno-exceptions", 27fa7767c5Sopenharmony_ci "-Wall", 28fa7767c5Sopenharmony_ci "-fno-common", 29fa7767c5Sopenharmony_ci "-fstack-protector-strong", 30fa7767c5Sopenharmony_ci "-Wshadow", 31fa7767c5Sopenharmony_ci "-FPIC", 32fa7767c5Sopenharmony_ci "-FS", 33fa7767c5Sopenharmony_ci "-O2", 34fa7767c5Sopenharmony_ci "-D_FORTIFY_SOURCE=2", 35fa7767c5Sopenharmony_ci "-fvisibility=hidden", 36fa7767c5Sopenharmony_ci "-Wformat=2", 37fa7767c5Sopenharmony_ci "-Wdate-time", 38fa7767c5Sopenharmony_ci "-Werror", 39fa7767c5Sopenharmony_ci "-Wextra", 40fa7767c5Sopenharmony_ci "-Wimplicit-fallthrough", 41fa7767c5Sopenharmony_ci "-Wsign-compare", 42fa7767c5Sopenharmony_ci "-Wunused-parameter", 43fa7767c5Sopenharmony_ci] 44fa7767c5Sopenharmony_ci 45fa7767c5Sopenharmony_ci################################################################################################################## 46fa7767c5Sopenharmony_ciohos_unittest("vpe_video_native_module_test") { 47fa7767c5Sopenharmony_ci module_out_path = "media_foundation/moduletest" 48fa7767c5Sopenharmony_ci include_dirs = video_moduletest_native_include_dirs 49fa7767c5Sopenharmony_ci include_dirs += [ "./" ] 50fa7767c5Sopenharmony_ci cflags = video_moduletest_cflags 51fa7767c5Sopenharmony_ci 52fa7767c5Sopenharmony_ci sources = [ "./video/api_test.cpp" ] 53fa7767c5Sopenharmony_ci 54fa7767c5Sopenharmony_ci deps = [ 55fa7767c5Sopenharmony_ci "$histreamer_root_dir/video_processing_engine/framework:video_processing", 56fa7767c5Sopenharmony_ci ] 57fa7767c5Sopenharmony_ci 58fa7767c5Sopenharmony_ci external_deps = [ 59fa7767c5Sopenharmony_ci "c_utils:utils", 60fa7767c5Sopenharmony_ci "graphic_2d:libgraphic_utils", 61fa7767c5Sopenharmony_ci "graphic_2d:librender_service_client", 62fa7767c5Sopenharmony_ci "graphic_surface:surface", 63fa7767c5Sopenharmony_ci "hilog:libhilog", 64fa7767c5Sopenharmony_ci "media_foundation:media_foundation", 65fa7767c5Sopenharmony_ci "media_foundation:native_media_core", 66fa7767c5Sopenharmony_ci "window_manager:libwm", 67fa7767c5Sopenharmony_ci ] 68fa7767c5Sopenharmony_ci} 69