• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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/graphic/graphic_2d/graphic_config.gni")
16
17ohos_shared_library("effect_common") {
18  sanitize = {
19    cfi = true
20    cfi_cross_dso = true
21    cfi_vcall_icall_only = true
22    debug = false
23  }
24  include_dirs = [
25    "$graphic_2d_root/rosen/modules/effect/color_picker/include",
26    "$graphic_2d_root/rosen/modules/effect/effect_common/include",
27    "$graphic_2d_root/rosen/modules/effect/egl/include",
28    "$graphic_2d_root/rosen/modules/effect/skia_effectChain/include",
29    "$graphic_2d_root/utils/color_manager/export",
30  ]
31
32  if (!defined(defines)) {
33    defines = []
34  }
35
36  deps = [
37    "$graphic_2d_root/rosen/modules/effect/color_picker:color_picker",
38    "$graphic_2d_root/rosen/modules/effect/skia_effectChain:skeffectchain",
39  ]
40  external_deps = [
41    "c_utils:utils",
42    "hilog:libhilog",
43    "image_framework:image_native",
44  ]
45  sources = [
46    "src/color_picker_common.cpp",
47    "src/filter_common.cpp",
48  ]
49
50  innerapi_tags = [ "platformsdk" ]
51  subsystem_name = "graphic"
52  part_name = "graphic_2d"
53}
54