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/multimedia/image_framework/ide/image_decode_config.gni") 16 17SEPARATOR = "/" 18BASE_DIR = "$SEPARATOR/foundation" 19THIRD_DIR = "$SEPARATOR/third_party" 20 21config("native_public_config") { 22 include_dirs = [ 23 "include", 24 "$BASE_DIR/arkui/napi/interfaces/inner_api", 25 "$BASE_DIR/arkui/napi/interfaces/kits", 26 "$BASE_DIR/multimedia/image_framework/interfaces/kits/native/include", 27 "$THIRD_DIR/node/src", 28 ] 29} 30 31ohos_shared_library("image_ndk") { 32 sanitize = { 33 cfi = true 34 cfi_cross_dso = true 35 debug = false 36 } 37 38 sources = [ "image_mdk.cpp" ] 39 public_configs = [ ":native_public_config" ] 40 deps = [ "$image_subsystem/interfaces/kits/js/common:image" ] 41 42 innerapi_tags = [ "ndk" ] 43 subsystem_name = "multimedia" 44 part_name = "image_framework" 45} 46 47ohos_shared_library("image_receiver_ndk") { 48 sanitize = { 49 cfi = true 50 cfi_cross_dso = true 51 debug = false 52 } 53 54 sources = [ "image_receiver_mdk.cpp" ] 55 public_configs = [ ":native_public_config" ] 56 deps = [ "$image_subsystem/interfaces/kits/js/common:image" ] 57 58 innerapi_tags = [ "ndk" ] 59 subsystem_name = "multimedia" 60 part_name = "image_framework" 61} 62 63ohos_shared_library("image_source_ndk") { 64 sanitize = { 65 cfi = true 66 cfi_cross_dso = true 67 debug = false 68 } 69 70 sources = [ "image_source_mdk.cpp" ] 71 public_configs = [ ":native_public_config" ] 72 deps = [ "$image_subsystem/interfaces/kits/js/common:image" ] 73 74 subsystem_name = "multimedia" 75 part_name = "image_framework" 76} 77