• 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")
15
16ohos_shared_library("heifplugin") {
17  defines = [ "DUAL_ADAPTER" ]
18  DUAL_ADAPTER = true
19
20  sources = [
21#    "//foundation/multimedia/image_standard/plugins/common/libs/image/libheifplugin/src/heif_decoder.cpp",
22#    "//foundation/multimedia/image_standard/plugins/common/libs/image/libheifplugin/src/heif_decoder_wrapper.cpp",
23    "//foundation/multimedia/image_standard/plugins/common/libs/image/libheifplugin/src/plugin_export.cpp",
24  ]
25
26  include_dirs = [
27    "//utils/native/base/include",
28    "//foundation/multimedia/image_standard/frameworks/innerkitsimpl/utils/include",
29    "//foundation/multimedia/utils/include",
30    "//foundation/multimedia/image_standard/plugins/manager/include",
31    "//foundation/multimedia/image_standard/plugins/manager/include/image",
32    "//foundation/multimedia/image_standard/plugins/manager/include/pluginbase",
33    "//foundation/multimedia/image_standard/plugins/common/libs/image/libheifplugin/include",
34    "//foundation/multimedia/image_standard/interfaces/innerkits/include",
35    "//foundation/multimedia/image_standard/adapter/frameworks/heifcodec/include",
36    "//third_party/flutter/skia/third_party/libjpeg-turbo",
37  ]
38
39  deps = [
40    "//foundation/multimedia/image_standard/plugins/manager:pluginmanager",
41    "//utils/native/base:utils",
42  ]
43
44  if (DUAL_ADAPTER) {
45    deps += [
46#      "//foundation/multimedia/image_standard/adapter/frameworks/heifcodec:heifadapter",
47    ]
48  }
49
50  external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
51
52  part_name = "multimedia_image"
53
54  subsystem_name = "multimedia"
55}
56
57ohos_prebuilt_etc("heifpluginmetadata") {
58  source = "heifplugin.pluginmeta"
59  relative_install_dir = "multimediaplugin/image"
60  subsystem_name = "multimedia"
61  part_name = "multimedia_image"
62}
63