• 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")
15import("//foundation/multimedia/image_framework/ide/image_decode_config.gni")
16
17SEPARATOR = "/"
18BASE_DIR = "$SEPARATOR/foundation"
19THIRD_DIR = "$SEPARATOR/third_party"
20
21config("native_public_config") {
22  include_dirs = [
23    "include",
24    "$BASE_DIR/arkui/napi/interfaces/inner_api",
25    "$BASE_DIR/arkui/napi/interfaces/kits",
26    "$BASE_DIR/multimedia/image_framework/interfaces/kits/native/include",
27    "$THIRD_DIR/node/src",
28    "$resource_management_subsystem/interfaces/native/resource/include",
29  ]
30}
31
32ohos_shared_library("image_ndk") {
33  sanitize = {
34    cfi = true
35    cfi_cross_dso = true
36    debug = false
37  }
38
39  sources = [ "image_mdk.cpp" ]
40  public_configs = [ ":native_public_config" ]
41  deps = [ "$image_subsystem/interfaces/kits/js/common:image" ]
42
43  innerapi_tags = [ "ndk" ]
44  subsystem_name = "multimedia"
45  part_name = "image_framework"
46}
47
48ohos_shared_library("image_receiver_ndk") {
49  sanitize = {
50    cfi = true
51    cfi_cross_dso = true
52    debug = false
53  }
54
55  sources = [ "image_receiver_mdk.cpp" ]
56  public_configs = [ ":native_public_config" ]
57  deps = [ "$image_subsystem/interfaces/kits/js/common:image" ]
58
59  innerapi_tags = [ "ndk" ]
60  subsystem_name = "multimedia"
61  part_name = "image_framework"
62}
63
64ohos_shared_library("image_source_ndk") {
65  sanitize = {
66    cfi = true
67    cfi_cross_dso = true
68    debug = false
69  }
70
71  sources = [ "image_source_mdk.cpp" ]
72  public_configs = [ ":native_public_config" ]
73  deps = [ "$image_subsystem/interfaces/kits/js/common:image" ]
74
75  innerapi_tags = [ "ndk" ]
76  subsystem_name = "multimedia"
77  part_name = "image_framework"
78}
79
80ohos_shared_library("image_packer_ndk") {
81  sanitize = {
82    cfi = true
83    cfi_cross_dso = true
84    debug = false
85  }
86
87  sources = [ "image_packer_mdk.cpp" ]
88  public_configs = [ ":native_public_config" ]
89  deps = [ "$image_subsystem/interfaces/kits/js/common:image" ]
90
91  innerapi_tags = [ "ndk" ]
92  subsystem_name = "multimedia"
93  part_name = "image_framework"
94}
95