• 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("bmpplugin") {
18  sources = [
19    "//foundation/multimedia/image_standard/plugins/common/libs/image/libbmpplugin/src/bmp_decoder.cpp",
20    "//foundation/multimedia/image_standard/plugins/common/libs/image/libbmpplugin/src/bmp_stream.cpp",
21    "//foundation/multimedia/image_standard/plugins/common/libs/image/libbmpplugin/src/plugin_export.cpp",
22  ]
23
24  include_dirs = [
25    "//foundation/multimedia/utils/include",
26    "//foundation/multimedia/image_standard/plugins/manager/include",
27    "//foundation/multimedia/image_standard/plugins/manager/include/image",
28    "//foundation/multimedia/image_standard/plugins/manager/include/pluginbase",
29    "//foundation/multimedia/image_standard/plugins/common/libs/image/libbmpplugin/include",
30    "//foundation/multimedia/image_standard/interfaces/innerkits/include",
31    "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/include",
32    "//third_party/flutter/skia/include/core",
33    "//third_party/flutter/skia/include/codec",
34    "//third_party/flutter/skia",
35  ]
36  if (use_mingw_win) {
37    defines = image_decode_windows_defines
38    include_dirs += [
39      "//foundation/multimedia/image_standard/mock/native/include",
40      "//foundation/multimedia/image_standard/mock/native/include/secure",
41      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/codec",
42      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/core",
43      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/config/win",
44      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/config",
45    ]
46    deps = [
47      "//foundation/ace/ace_engine/build/external_config/flutter/skia:ace_skia_core",
48      "//foundation/graphic/ide/libs/skia:skia",
49      "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils:image_utils_static",
50      "//foundation/multimedia/image_standard/mock/native:log_mock_static",
51      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager_static",
52    ]
53
54    #libs = [ "//foundation/multimedia/image/libskia.lib" ]
55  } else if (use_clang_mac) {
56    defines = image_decode_mac_defines
57    include_dirs += [
58      "//foundation/multimedia/image_standard/mock/native/include",
59      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/codec",
60      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/core",
61      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/config/mac",
62      "${asdk_dir}/static_library/${target_os}_${target_cpu}/include/external/skia/include/config",
63      "//utils/native/base/include",
64    ]
65    deps = [
66      "//foundation/graphic/ide/libs/skia:skia",
67      "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils:image_utils_static",
68      "//foundation/multimedia/image_standard/mock/native:log_mock_static",
69      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager_static",
70      "//utils/native/base:utilsecurec",
71    ]
72  } else {
73    include_dirs += [ "//utils/native/base/include" ]
74    deps = [
75      "//foundation/ace/ace_engine/build/external_config/flutter/skia:ace_skia_ohos",
76      "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils:image_utils",
77      "//foundation/multimedia/image_standard/plugins/manager:pluginmanager",
78      "//utils/native/base:utils",
79    ]
80
81    external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
82
83    #aosp_deps = [ "shared_library:libhwui" ]
84  }
85  subsystem_name = "multimedia"
86  part_name = "multimedia_image_standard"
87}
88
89ohos_prebuilt_etc("bmppluginmetadata") {
90  source = "bmpplugin.pluginmeta"
91  relative_install_dir = "multimediaplugin/image"
92  subsystem_name = "multimedia"
93  part_name = "multimedia_image_standard"
94}
95