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") 15 16############################################################################ 17# Debug Used : mypixelmap 18############################################################################ 19 20js_declaration("mypixelmap_js") { 21 part_name = "multimedia_image" 22 sources = [ "//foundation/multimedia/image_framework/interfaces/kits/native/ndk_test_example/@ohos.xtstest.mypixelmap.d.ts" ] 23} 24 25ohos_copy("mypixelmap_declaration") { 26 sources = [ "//foundation/multimedia/image_framework/interfaces/kits/native/ndk_test_example/@ohos.xtstest.mypixelmap.d.ts" ] 27 outputs = [ target_out_dir + "/$target_name/" ] 28 module_source_dir = target_out_dir + "/$target_name" 29 module_install_name = "" 30} 31 32ohos_shared_library("mypixelmap") { 33 sanitize = { 34 cfi = true 35 cfi_cross_dso = true 36 cfi_vcall_icall_only = true 37 debug = false 38 } 39 install_enable = true 40 41 sources = [ "my_pixel_map.cpp" ] 42 43 include_dirs = [ 44 "include", 45 "//foundation/multimedia/image_framework/interfaces/kits/native/include", 46 ] 47 48 deps = [ 49 "//foundation/arkui/napi:ace_napi", 50 "//foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk:pixelmap_ndk", 51 ] 52 53 external_deps = [ "hilog:libhilog" ] 54 55 relative_install_dir = "module" 56 57 subsystem_name = "multimedia" 58 part_name = "multimedia_image" 59} 60