• 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_framework/ide/image_decode_config.gni")
16
17ohos_shared_library("svgplugin") {
18  if (!use_clang_android && !use_clang_ios) {
19    sanitize = {
20      cfi = true
21      cfi_cross_dso = true
22      debug = false
23    }
24  }
25
26  sources = [
27    "src/plugin_export.cpp",
28    "src/svg_decoder.cpp",
29  ]
30
31  include_dirs = [
32    "$graphic_subsystem/utils/color_manager/export",
33    "$image_subsystem/plugins/manager/include",
34    "$image_subsystem/plugins/manager/include/image",
35    "$image_subsystem/plugins/manager/include/pluginbase",
36    "$image_subsystem/plugins/common/libs/image/libsvgplugin/include",
37    "$image_subsystem/interfaces/innerkits/include",
38    "$image_subsystem/frameworks/innerkitsimpl/utils/include",
39    "${graphic_subsystem}/interfaces/inner_api/surface",
40    "$skia_root/skia",
41  ]
42
43  deps = [
44    "$image_subsystem/plugins/manager:pluginmanager",
45    "${image_subsystem}/frameworks/innerkitsimpl/utils:image_utils",
46  ]
47  deps += skia_platform
48
49  external_deps = [
50    "c_utils:utils",
51    "graphic_2d:color_manager",
52    "graphic_2d:surface",
53    "hilog:libhilog",
54  ]
55
56  cflags = [ "-DIMAGE_COLORSPACE_FLAG" ]
57
58  part_name = "image_framework"
59  subsystem_name = "multimedia"
60}
61
62ohos_prebuilt_etc("svgpluginmetadata") {
63  source = "svgplugin.pluginmeta"
64  relative_install_dir = "multimediaplugin/image"
65  subsystem_name = "multimedia"
66  part_name = "image_framework"
67}
68