1# Copyright (c) 2025 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/ohos.gni") 15import("//foundation/graphic/graphic_2d/graphic_config.gni") 16 17ohos_shared_library("cj_ui_effect_ffi") { 18 branch_protector_ret = "pac_ret" 19 sanitize = { 20 cfi = true 21 cfi_cross_dso = true 22 cfi_vcall_icall_only = true 23 debug = false 24 } 25 include_dirs = [ 26 "include", 27 "$graphic_2d_root/rosen/modules/2d_graphics/include", 28 "$graphic_2d_root/rosen/modules/render_service_client/core/ui_effect", 29 "$graphic_2d_root/utils/log", 30 ] 31 32 sources = [ 33 "src/cj_filter.cpp", 34 "src/cj_visual_effect.cpp", 35 "src/ui_effect_ffi.cpp", 36 ] 37 38 deps = [ 39 "$graphic_2d_root/rosen/modules/2d_graphics:2d_graphics", 40 "$graphic_2d_root/rosen/modules/render_service_client:librender_service_client", 41 ] 42 43 external_deps = [ 44 "bundle_framework:appexecfwk_core", 45 "c_utils:utils", 46 "hilog:libhilog", 47 "image_framework:cj_image_ffi", 48 "image_framework:image_native", 49 "napi:cj_bind_ffi", 50 "napi:cj_bind_native", 51 ] 52 53 defines = [ "ENABLE_IPC_SECURITY" ] 54 external_deps += [ 55 "access_token:libaccesstoken_sdk", 56 "ipc:ipc_core", 57 ] 58 59 cflags_cc = [ "-std=c++17" ] 60 61 innerapi_tags = [ "platformsdk" ] 62 part_name = "graphic_2d" 63 subsystem_name = "graphic" 64} 65