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