1# Copyright (c) 2022 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") 16import("//foundation/multimedia/image_framework/ide/image_decode_config.gni") 17 18## Build libskeffectchain.so 19 20config("effect_SKeffectChian_config") { 21 cflags = [ 22 "-Wall", 23 "-Werror", 24 "-g3", 25 "-Wall", 26 "-Wno-pointer-arith", 27 "-Wno-non-virtual-dtor", 28 "-Wno-missing-field-initializers", 29 "-Wno-c++11-narrowing", 30 ] 31 include_dirs = 32 [ "$graphic_2d_root/rosen/modules/render_service_base/include" ] 33} 34 35config("effect_SKeffectChian_public_config") { 36 include_dirs = [ 37 "../effectChain/include", 38 "../egl/include", 39 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 40 "$graphic_2d_root/utils/log", 41 "include", 42 ] 43} 44 45ohos_shared_library("skeffectchain") { 46 public_deps = [ 47 "$graphic_2d_root:libsurface", 48 "$graphic_2d_root/rosen/modules/effect/egl:libegl_effect", 49 ] 50 51 if (ace_enable_gpu) { 52 defines = gpu_defines 53 public_deps += [ "$graphic_2d_root:libgl" ] 54 } 55 56 public_deps += [ "//third_party/skia:skia_ohos" ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "hilog:libhilog", 61 "hitrace:hitrace_meter", 62 "image_framework:image", 63 "image_framework:image_native", 64 "image_framework:pixelconvertadapter", 65 "init:libbegetutil", 66 "ipc:ipc_core", 67 "napi:ace_napi", 68 "samgr:samgr_proxy", 69 ] 70 71 sources = [ 72 "src/sk_image_chain.cpp", 73 "src/sk_image_filter_factory.cpp", 74 ] 75 76 configs = [ ":effect_SKeffectChian_config" ] 77 78 public_configs = [ 79 ":effect_SKeffectChian_public_config", 80 "//commonlibrary/c_utils/base:utils_config", 81 ] 82 83 deps = [ 84 "$graphic_2d_root/rosen/modules/render_service_base:librender_service_base", 85 ] 86 87 cflags_cc = [ "-std=c++17" ] 88 89 install_enable = true 90 innerapi_tags = [ "platformsdk" ] 91 part_name = "graphic_2d" 92 subsystem_name = "graphic" 93} 94