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