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