• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("libpixelmap") {
31  ndk_description_file = "./libpixelmap.ndk.json"
32  output_name = "pixelmap"
33  output_extension = "so"
34  min_compact_version = "12"
35  system_capability = "SystemCapability.Multimedia.Image.Core"
36  system_capability_headers = [
37    "multimedia/image_framework/image/pixelmap_native.h",
38    "multimedia/image_framework/image/image_common.h",
39  ]
40}
41
42ohos_ndk_headers("libpixelmap_header") {
43  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image"
44  sources = [ "./include/image/pixelmap_native.h" ]
45}
46
47ohos_ndk_library("libpicture") {
48  ndk_description_file = "./libpicture.ndk.json"
49  output_name = "picture"
50  output_extension = "so"
51  min_compact_version = "13"
52  system_capability = "SystemCapability.Multimedia.Image.Core"
53  system_capability_headers = [
54    "multimedia/image_framework/image/picture_native.h",
55    "multimedia/image_framework/image/image_common.h",
56  ]
57}
58
59ohos_ndk_headers("libpicture_header") {
60  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image"
61  sources = [ "./include/image/picture_native.h" ]
62}
63
64ohos_ndk_library("libimage_common") {
65  ndk_description_file = "./libimage_common.ndk.json"
66  output_name = "image_common"
67  output_extension = "so"
68  min_compact_version = "13"
69  system_capability = "SystemCapability.Multimedia.Image.Core"
70  system_capability_headers =
71      [ "multimedia/image_framework/image/image_common.h" ]
72}
73
74ohos_ndk_headers("libimage_common_header") {
75  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image"
76  sources = [ "./include/image/image_common.h" ]
77}
78
79ohos_ndk_library("libimage_ndk") {
80  ndk_description_file = "./libimage_ndk.ndk.json"
81  min_compact_version = "1"
82  output_name = "image_ndk"
83}
84
85ohos_ndk_headers("image_ndk_header") {
86  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework"
87  sources = [
88    "./include/image_mdk.h",
89    "./include/image_mdk_common.h",
90  ]
91}
92
93ohos_ndk_library("libimage_receiver_ndk") {
94  ndk_description_file = "./libimage_receiver_ndk.ndk.json"
95  min_compact_version = "1"
96  output_name = "image_receiver_ndk"
97}
98
99ohos_ndk_headers("image_receiver_ndk_header") {
100  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework"
101  sources = [ "./include/image_receiver_mdk.h" ]
102}
103
104ohos_ndk_library("libimage_source_ndk") {
105  ndk_description_file = "./libimage_source_ndk.ndk.json"
106  min_compact_version = "1"
107  output_name = "image_source_ndk"
108}
109
110ohos_ndk_headers("image_source_ndk_header") {
111  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework"
112  sources = [ "./include/image_source_mdk.h" ]
113}
114
115ohos_ndk_library("libimage_source") {
116  ndk_description_file = "./libimage_source.ndk.json"
117  output_name = "image_source"
118  output_extension = "so"
119  min_compact_version = "12"
120  system_capability = "SystemCapability.Multimedia.Image.ImageSource"
121  system_capability_headers = [
122    "multimedia/image_framework/image/image_source_native.h",
123    "multimedia/image_framework/image/image_common.h",
124  ]
125}
126
127ohos_ndk_headers("libimage_source_header") {
128  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image"
129  sources = [ "./include/image/image_source_native.h" ]
130}
131
132ohos_ndk_library("libimage_packer_ndk") {
133  ndk_description_file = "./libimage_packer_ndk.ndk.json"
134  output_name = "image_packer_ndk"
135}
136
137ohos_ndk_headers("image_packer_ndk_header") {
138  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework"
139  sources = [ "./include/image_packer_mdk.h" ]
140}
141
142ohos_ndk_library("libohimage") {
143  output_name = "ohimage"
144  output_extension = "so"
145  ndk_description_file = "./libohimage.ndk.json"
146  min_compact_version = "12"
147  system_capability = "SystemCapability.Multimedia.Image.Core"
148  system_capability_headers =
149      [ "multimedia/image_framework/image/image_native.h" ]
150}
151
152ohos_ndk_headers("ohimage_header") {
153  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image"
154  sources = [ "./include/image/image_native.h" ]
155}
156
157ohos_ndk_library("libimage_receiver") {
158  output_name = "image_receiver"
159  output_extension = "so"
160  ndk_description_file = "./libimage_receiver.ndk.json"
161  min_compact_version = "12"
162  system_capability = "SystemCapability.Multimedia.Image.ImageReceiver"
163  system_capability_headers =
164      [ "multimedia/image_framework/image/image_receiver_native.h" ]
165}
166
167ohos_ndk_headers("image_receiver_header") {
168  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image"
169  sources = [ "./include/image/image_receiver_native.h" ]
170}
171
172ohos_ndk_library("libimage_packer") {
173  ndk_description_file = "./libimage_packer.ndk.json"
174  output_name = "image_packer"
175  output_extension = "so"
176  min_compact_version = "12"
177  system_capability = "SystemCapability.Multimedia.Image.ImagePacker"
178  system_capability_headers = [
179    "multimedia/image_framework/image/image_packer_native.h",
180    "multimedia/image_framework/image/image_common.h",
181  ]
182}
183
184ohos_ndk_headers("libimage_packer_header") {
185  dest_dir = "$ndk_headers_out_dir/multimedia/image_framework/image"
186  sources = [ "./include/image/image_packer_native.h" ]
187}
188