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/config/components/ets_frontend/ets2abc_config.gni") 15import("//build/ohos.gni") 16import("//foundation/graphic/graphic_2d/graphic_config.gni") 17 18config("graphic_ani_ui_effect_config") { 19 visibility = [ ":*" ] 20 21 cflags = [ 22 "-Wall", 23 "-Werror", 24 "-g3", 25 "-Wno-pointer-arith", 26 "-Wno-non-virtual-dtor", 27 "-Wno-missing-field-initializers", 28 "-Wno-c++11-narrowing", 29 "-Wno-unused-but-set-variable", 30 ] 31 32 defines = [ "EGL_EGLEXT_PROTOTYPES" ] 33} 34 35ohos_shared_library("uiEffect_ani") { 36 branch_protector_ret = "pac_ret" 37 38 sanitize = { 39 cfi = true 40 cfi_cross_dso = true 41 cfi_vcall_icall_only = true 42 debug = false 43 } 44 45 include_dirs = [ 46 "include", 47 "$graphic_2d_root/rosen/modules/2d_graphics/include", 48 "$graphic_2d_root/rosen/modules/render_service_client/core/ui_effect", 49 "$graphic_2d_root/utils/log", 50 ] 51 52 public_configs = [] 53 54 configs = [ ":graphic_ani_ui_effect_config" ] 55 56 sources = [ "./src/ani_uieffect.cpp" ] 57 58 deps = [ 59 "$graphic_2d_root/rosen/modules/2d_graphics:2d_graphics", 60 "$graphic_2d_root/rosen/modules/render_service_client:librender_service_client", 61 ] 62 63 external_deps = [ 64 "c_utils:utils", 65 "hilog:libhilog", 66 "runtime_core:ani", 67 "runtime_core:libarkruntime", 68 ] 69 70 part_name = "graphic_2d" 71 subsystem_name = "graphic" 72 output_extension = "so" 73} 74 75generate_static_abc("uiEffect") { 76 base_url = "./ets" 77 files = [ "./ets/@ohos.graphics.uiEffect.ets" ] 78 is_boot_abc = "True" 79 device_dst_file = "/system/framework/uiEffect.abc" 80} 81ohos_prebuilt_etc("uiEffect_etc") { 82 source = "$target_out_dir/uiEffect.abc" 83 module_install_dir = "framework" 84 part_name = "graphic_2d" 85 subsystem_name = "graphic" 86 deps = [ ":uiEffect" ] 87} 88