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 debug = false 36 } 37 install_enable = true 38 39 sources = [ "my_pixel_map.cpp" ] 40 41 include_dirs = [ 42 "include", 43 "//foundation/multimedia/image_framework/interfaces/kits/native/include", 44 ] 45 46 deps = [ 47 "//foundation/arkui/napi:ace_napi", 48 "//foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk:pixelmap_ndk", 49 ] 50 51 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 52 53 relative_install_dir = "module" 54 55 subsystem_name = "multimedia" 56 part_name = "multimedia_image" 57} 58