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/media_foundation/config.gni") 15import("//test/xts/tools/build/suite.gni") 16 17module_output_path = "acts/ActsDetailEnhancerVideoNdkUnitTest" 18 19################################################################################################################# 20detail_enhancer_video_ndk_unit_test_cflags = [ 21 "-std=c++17", 22 "-fno-rtti", 23 "-fexceptions", 24 "-Wall", 25 "-fno-common", 26 "-fstack-protector-strong", 27 "-Wshadow", 28 "-FPIC", 29 "-FS", 30 "-O2", 31 "-D_FORTIFY_SOURCE=2", 32 "-fvisibility=hidden", 33 "-Wformat=2", 34 "-Wdate-time", 35 "-Wextra", 36 "-Wimplicit-fallthrough", 37 "-Wsign-compare", 38 "-Dprivate=public", 39 "-Dprotected=public", 40] 41 42ohos_moduletest_suite("ActsDetailEnhancerVideoNdkUnitTest") { 43 module_out_path = module_output_path 44 45 sanitize = { 46 cfi = true 47 cfi_cross_dso = true 48 debug = false 49 } 50 51 include_dirs = [ 52 "$histreamer_root_dir/video_processing_engine/interface/kits/c", 53 "$histreamer_root_dir/video_processing_engine/interface/inner_api", 54 "$histreamer_root_dir/video_processing_engine/framework/algorithm/include", 55 "$histreamer_root_dir/video_processing_engine/framework/dfx/include", 56 "$histreamer_root_dir/video_processing_engine/framework/capi/video_processing/include", 57 "$histreamer_root_dir/video_processing_engine/framework/capi/video_processing/detail_enhancer/include", 58 "$histreamer_root_dir/video_processing_engine/framework/algorithm/detail_enhancer/include", 59 "./include", 60 ] 61 62 sources = [ 63 "./src/detail_enhancer_video_ndk_unit_test.cpp", 64 "./src/video_sample.cpp", 65 ] 66 67 cflags = detail_enhancer_video_ndk_unit_test_cflags 68 69 defines = [] 70 71 deps = [ 72 "$histreamer_root_dir/interface/kits/ndk/core:libnative_media_core", 73 "$histreamer_root_dir/src:media_foundation", 74 "$histreamer_root_dir/video_processing_engine/framework:video_processing", 75 "$histreamer_root_dir/video_processing_engine/interface/kits/c/video_processing:libvideo_processing_ndk", 76 ] 77 78 external_deps = [ 79 "c_utils:utils", 80 "graphic_2d:libgraphic_utils", 81 "graphic_2d:librender_service_client", 82 "graphic_surface:surface", 83 "hilog:libhilog", 84 "hitrace:hitrace_meter", 85 "media_foundation:native_media_core", 86 ] 87 88 if (has_skia) { 89 defines += [ "SKIA_ENABLE" ] 90 include_dirs += [ "$histreamer_root_dir/video_processing_engine/framework/algorithm/detail_enhancer/skia/include" ] 91 } 92 93 part_name = "video_processing_engine" 94 subsystem_name = "multimedia" 95} 96