• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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_standard/ide/image_decode_config.gni")
16
17ohos_shared_library("image_utils") {
18  include_dirs = [
19    "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/include",
20    "//foundation/multimedia/utils/include",
21    "//foundation/multimedia/image_standard/plugins/manager/include",
22    "//foundation/multimedia/image_standard/interfaces/innerkits/include",
23    "//utils/native/base/include",
24    "//foundation/multimedia/utils/lite/interfaces/kits",
25    "//foundation/communication/ipc/utils/include",
26  ]
27
28  sources = [
29    "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/src/image_trace.cpp",
30    "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/src/image_utils.cpp",
31  ]
32
33  if (use_mingw_win) {
34    defines = image_decode_windows_defines
35    sources -= [ "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/src/image_trace.cpp" ]
36    include_dirs +=
37        [ "//foundation/multimedia/image_standard/mock/native/include" ]
38    deps = [
39      "//foundation/multimedia/image_standard/mock/native:log_mock_static",
40      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager_static",
41    ]
42  } else if (use_clang_mac) {
43    defines = image_decode_mac_defines
44    sources -= [ "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/src/image_trace.cpp" ]
45    include_dirs += [
46      "//foundation/multimedia/image_standard/mock/native/include",
47      "//utils/native/base/include",
48    ]
49    deps = [
50      "//foundation/multimedia/image_standard/mock/native:log_mock_static",
51      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager_static",
52      "//utils/native/base:utilsecurec",
53    ]
54  } else {
55    defines = [ "DUAL_ADAPTER" ]
56
57    deps = [
58      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager",
59      "//utils/native/base:utils",
60    ]
61
62    external_deps = [
63      "bytrace_standard:bytrace_core",
64      "hiviewdfx_hilog_native:libhilog",
65    ]
66  }
67
68  #relative_install_dir = "module/multimedia"
69  subsystem_name = "multimedia"
70  part_name = "multimedia_image_standard"
71}
72
73ohos_static_library("image_utils_static") {
74  include_dirs = [
75    "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/include",
76    "//foundation/multimedia/utils/include",
77    "//foundation/multimedia/image_standard/plugins/manager/include",
78    "//foundation/multimedia/image_standard/interfaces/innerkits/include",
79    "//utils/native/base/include",
80  ]
81
82  sources = [ "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/src/image_utils.cpp" ]
83
84  if (use_mingw_win) {
85    defines = image_decode_windows_defines
86    include_dirs +=
87        [ "//foundation/multimedia/image_standard/mock/native/include" ]
88    deps = [
89      "//foundation/multimedia/image_standard/mock/native:log_mock_static",
90      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager_static",
91    ]
92  } else if (use_clang_mac) {
93    defines = image_decode_mac_defines
94    include_dirs += [
95      "//foundation/multimedia/image_standard/mock/native/include",
96      "//utils/native/base/include",
97    ]
98    deps = [
99      "//foundation/multimedia/image_standard/mock/native:log_mock_static",
100      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager_static",
101      "//utils/native/base:utilsecurec",
102    ]
103  } else {
104    sources += [ "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/src/image_trace.cpp" ]
105    deps = [
106      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager",
107      "//utils/native/base:utils",
108    ]
109
110    external_deps = [
111      "bytrace_standard:bytrace_core",
112      "hiviewdfx_hilog_native:libhilog",
113    ]
114  }
115  subsystem_name = "multimedia"
116  part_name = "multimedia_image_standard"
117}
118