• 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("cj_effect_kit_ffi") {
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/effect_common:effect_common",
39    "$graphic_2d_root/rosen/modules/effect/skia_effectChain:skeffectchain",
40  ]
41  external_deps = [
42    "bundle_framework:appexecfwk_core",
43    "bundle_framework:cj_bundle_manager_ffi",
44    "c_utils:utils",
45    "hilog:libhilog",
46    "image_framework:cj_image_ffi",
47    "image_framework:image_native",
48    "napi:cj_bind_ffi",
49    "napi:cj_bind_native",
50  ]
51  sources = [
52    "cj_color_picker.cpp",
53    "cj_filter.cpp",
54    "effect_kit_ffi.cpp",
55  ]
56
57  innerapi_tags = [ "platformsdk" ]
58  subsystem_name = "graphic"
59  part_name = "graphic_2d"
60}
61