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("//build/test.gni") 15import("//foundation/multimedia/media_foundation/config.gni") 16 17video_moduletest_native_include_dirs = [ 18 "$histreamer_root_dir/video_processing_engine/interface/kits/c", 19 "$histreamer_root_dir/video_processing_engine/../../../graphic/graphic_2d/interfaces/inner_api", 20 "$histreamer_root_dir/video_processing_engine/../../../window/window_manager/interfaces/innerkits", 21] 22 23video_moduletest_cflags = [ 24 "-std=c++17", 25 "-fno-rtti", 26 "-fno-exceptions", 27 "-Wall", 28 "-fno-common", 29 "-fstack-protector-strong", 30 "-Wshadow", 31 "-FPIC", 32 "-FS", 33 "-O2", 34 "-D_FORTIFY_SOURCE=2", 35 "-fvisibility=hidden", 36 "-Wformat=2", 37 "-Wdate-time", 38 "-Werror", 39 "-Wextra", 40 "-Wimplicit-fallthrough", 41 "-Wsign-compare", 42 "-Wunused-parameter", 43] 44 45################################################################################################################## 46ohos_unittest("vpe_video_native_module_test") { 47 module_out_path = "media_foundation/moduletest" 48 include_dirs = video_moduletest_native_include_dirs 49 include_dirs += [ "./" ] 50 cflags = video_moduletest_cflags 51 52 sources = [ "./video/api_test.cpp" ] 53 54 deps = [ 55 "$histreamer_root_dir/video_processing_engine/framework:video_processing", 56 ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "graphic_2d:libgraphic_utils", 61 "graphic_2d:librender_service_client", 62 "graphic_surface:surface", 63 "hilog:libhilog", 64 "media_foundation:media_foundation", 65 "media_foundation:native_media_core", 66 "window_manager:libwm", 67 ] 68} 69