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("//build/ohos.gni") 15import("//foundation/multimedia/image_framework/ide/image_decode_config.gni") 16 17config("native_public_config") { 18 include_dirs = [ 19 "include", 20 "${image_subsystem}/interfaces/kits/native/include/image", 21 "${image_subsystem}/frameworks/innerkitsimpl/receiver/include", 22 ] 23} 24 25ohos_shared_library("ohimage") { 26 sanitize = { 27 cfi = true 28 cfi_cross_dso = true 29 cfi_vcall_icall_only = true 30 debug = false 31 } 32 output_name = "ohimage" 33 output_extension = "so" 34 35 sources = [ "image_native.cpp" ] 36 public_configs = [ ":native_public_config" ] 37 deps = [ 38 "${image_subsystem}/frameworks/innerkitsimpl/utils:image_utils", 39 "${image_subsystem}/interfaces/innerkits:image_native", 40 ] 41 42 external_deps = [ 43 "c_utils:utils", 44 "graphic_surface:surface", 45 "hilog:libhilog", 46 "ipc:ipc_single", 47 ] 48 49 innerapi_tags = [ "ndk" ] 50 subsystem_name = "multimedia" 51 part_name = "image_framework" 52} 53 54ohos_shared_library("image_receiver") { 55 sanitize = { 56 cfi = true 57 cfi_cross_dso = true 58 cfi_vcall_icall_only = true 59 debug = false 60 } 61 output_name = "image_receiver" 62 output_extension = "so" 63 64 sources = [ "image_receiver_native.cpp" ] 65 public_configs = [ ":native_public_config" ] 66 deps = [ 67 "${image_subsystem}/frameworks/innerkitsimpl/utils:image_utils", 68 "${image_subsystem}/interfaces/innerkits:image_native", 69 ] 70 71 external_deps = [ 72 "c_utils:utils", 73 "drivers_peripheral_display:hdi_gralloc_client", 74 "graphic_surface:surface", 75 "hilog:libhilog", 76 "ipc:ipc_single", 77 ] 78 79 innerapi_tags = [ "ndk" ] 80 subsystem_name = "multimedia" 81 part_name = "image_framework" 82} 83