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 16ohos_ndk_library("libpixelmap_ndk") { 17 ndk_description_file = "./libimage_pixelmap_napi.ndk.json" 18 min_compact_version = "1" 19 output_name = "pixelmap_ndk" 20} 21 22ohos_ndk_headers("image_header") { 23 dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" 24 sources = [ 25 "./include/image_pixel_map_mdk.h", 26 "./include/image_pixel_map_napi.h", 27 ] 28} 29 30ohos_ndk_library("libimage_ndk") { 31 ndk_description_file = "./libimage_ndk.ndk.json" 32 min_compact_version = "1" 33 output_name = "image_ndk" 34} 35 36ohos_ndk_headers("image_ndk_header") { 37 dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" 38 sources = [ 39 "./include/image_mdk.h", 40 "./include/image_mdk_common.h", 41 ] 42} 43 44ohos_ndk_library("libimage_receiver_ndk") { 45 ndk_description_file = "./libimage_receiver_ndk.ndk.json" 46 min_compact_version = "1" 47 output_name = "image_receiver_ndk" 48} 49 50ohos_ndk_headers("image_receiver_ndk_header") { 51 dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" 52 sources = [ "./include/image_receiver_mdk.h" ] 53} 54 55ohos_ndk_library("libimage_source_ndk") { 56 ndk_description_file = "./libimage_source_ndk.ndk.json" 57 min_compact_version = "1" 58 output_name = "image_source_ndk" 59} 60 61ohos_ndk_headers("image_source_ndk_header") { 62 dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" 63 sources = [ "./include/image_source_mdk.h" ] 64} 65