# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") ohos_ndk_library("libpixelmap_ndk") { ndk_description_file = "./libimage_pixelmap_napi.ndk.json" min_compact_version = "1" output_name = "pixelmap_ndk" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image_pixel_map_mdk.h", "multimedia/image_framework/image_pixel_map_napi.h", ] } ohos_ndk_headers("image_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" sources = [ "./include/image_pixel_map_mdk.h", "./include/image_pixel_map_napi.h", ] } ohos_ndk_library("libpixelmap") { ndk_description_file = "./libpixelmap.ndk.json" output_name = "pixelmap" output_extension = "so" min_compact_version = "12" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image/pixelmap_native.h", "multimedia/image_framework/image/image_common.h", ] } ohos_ndk_headers("libpixelmap_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image" sources = [ "./include/image/pixelmap_native.h" ] } ohos_ndk_library("libpicture") { ndk_description_file = "./libpicture.ndk.json" output_name = "picture" output_extension = "so" min_compact_version = "13" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image/picture_native.h", "multimedia/image_framework/image/image_common.h", ] } ohos_ndk_headers("libpicture_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image" sources = [ "./include/image/picture_native.h" ] } ohos_ndk_library("libimage_common") { ndk_description_file = "./libimage_common.ndk.json" output_name = "image_common" output_extension = "so" min_compact_version = "13" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image/image_common.h" ] } ohos_ndk_headers("libimage_common_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image" sources = [ "./include/image/image_common.h" ] } ohos_ndk_library("libimage_ndk") { ndk_description_file = "./libimage_ndk.ndk.json" min_compact_version = "1" output_name = "image_ndk" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image_mdk.h", "multimedia/image_framework/image_mdk_common.h", ] } ohos_ndk_headers("image_ndk_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" sources = [ "./include/image_mdk.h", "./include/image_mdk_common.h", ] } ohos_ndk_library("libimage_receiver_ndk") { ndk_description_file = "./libimage_receiver_ndk.ndk.json" min_compact_version = "1" output_name = "image_receiver_ndk" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image_receiver_mdk.h" ] } ohos_ndk_headers("image_receiver_ndk_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" sources = [ "./include/image_receiver_mdk.h" ] } ohos_ndk_library("libimage_source_ndk") { ndk_description_file = "./libimage_source_ndk.ndk.json" min_compact_version = "1" output_name = "image_source_ndk" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image_source_mdk.h" ] } ohos_ndk_headers("image_source_ndk_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" sources = [ "./include/image_source_mdk.h" ] } ohos_ndk_library("libimage_source") { ndk_description_file = "./libimage_source.ndk.json" output_name = "image_source" output_extension = "so" min_compact_version = "12" system_capability = "SystemCapability.Multimedia.Image.ImageSource" system_capability_headers = [ "multimedia/image_framework/image/image_source_native.h", "multimedia/image_framework/image/image_common.h", ] } ohos_ndk_headers("libimage_source_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image" sources = [ "./include/image/image_source_native.h" ] } ohos_ndk_library("libimage_packer_ndk") { ndk_description_file = "./libimage_packer_ndk.ndk.json" output_name = "image_packer_ndk" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image_packer_mdk.h" ] } ohos_ndk_headers("image_packer_ndk_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework" sources = [ "./include/image_packer_mdk.h" ] } ohos_ndk_library("libohimage") { output_name = "ohimage" output_extension = "so" ndk_description_file = "./libohimage.ndk.json" min_compact_version = "12" system_capability = "SystemCapability.Multimedia.Image.Core" system_capability_headers = [ "multimedia/image_framework/image/image_native.h" ] } ohos_ndk_headers("ohimage_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image" sources = [ "./include/image/image_native.h" ] } ohos_ndk_library("libimage_receiver") { output_name = "image_receiver" output_extension = "so" ndk_description_file = "./libimage_receiver.ndk.json" min_compact_version = "12" system_capability = "SystemCapability.Multimedia.Image.ImageReceiver" system_capability_headers = [ "multimedia/image_framework/image/image_receiver_native.h" ] } ohos_ndk_headers("image_receiver_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image" sources = [ "./include/image/image_receiver_native.h" ] } ohos_ndk_library("libimage_packer") { ndk_description_file = "./libimage_packer.ndk.json" output_name = "image_packer" output_extension = "so" min_compact_version = "12" system_capability = "SystemCapability.Multimedia.Image.ImagePacker" system_capability_headers = [ "multimedia/image_framework/image/image_packer_native.h", "multimedia/image_framework/image/image_common.h", ] } ohos_ndk_headers("libimage_packer_header") { dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image" sources = [ "./include/image/image_packer_native.h" ] }