• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025-2025 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/config/components/ets_frontend/ets2abc_config.gni")
15import("//build/ohos.gni")
16import("../../../../windowmanager_aafwk.gni")
17
18config("display_common_config") {
19  visibility = [ ":*" ]
20
21  include_dirs = [
22    "../common",
23    "../../../../utils/include",
24    "../../../innerkits/wm",
25    "../../../innerkits/dm",
26    "../../../../wm/include",
27  ]
28}
29
30config("display_kit_public_config") {
31  visibility = [ ":*" ]
32
33  include_dirs = [ "display_ani/include" ]
34}
35
36# lib generate
37ohos_shared_library("displayani_kit") {
38  branch_protector_ret = "pac_ret"
39  sanitize = {
40    cfi = true
41    cfi_cross_dso = true
42    cfi_vcall_icall_only = true
43    debug = false
44  }
45  sources = [
46    "display_ani/src/ani_err_utils.cpp",
47    "display_ani/src/display_ani.cpp",
48    "display_ani/src/display_ani_listener.cpp",
49    "display_ani/src/display_ani_manager.cpp",
50    "display_ani/src/display_ani_utils.cpp",
51  ]
52
53  configs = [
54    ":display_common_config",
55    ":display_kit_public_config",
56    "../../../../resources/config/build:coverage_flags",
57  ]
58
59  public_configs = [ ":display_kit_public_config" ]
60
61  deps = [
62    "../../../../dm:libdm",
63    "../../../../utils:libwmutil",
64    "../../../../utils:libwmutil_base",
65  ]
66
67  external_deps = [
68    "ability_runtime:ability_manager",
69    "ability_runtime:runtime",
70    "c_utils:utils",
71    "eventhandler:libeventhandler",
72    "hilog:libhilog",
73    "hitrace:hitrace_meter",
74    "runtime_core:ani",
75  ]
76
77  innerapi_tags = [ "platformsdk" ]
78  part_name = "window_manager"
79  subsystem_name = "window"
80}
81
82group("display_ani") {
83  deps = [
84    ":displayani_kit",
85    "display_ani:display_etc",
86  ]
87}
88