• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 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("../../../frameaware.gni")
16
17config("frame_ui_intf_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "./",
22    "../../../common/include",
23    "../../../frameworks/core/frame_aware_collector/include",
24  ]
25}
26
27config("frame_trace_intf_config") {
28  visibility = [ ":*" ]
29  include_dirs = [ "./" ]
30}
31
32config("rtg_interface_config") {
33  visibility = [ ":*" ]
34  include_dirs = [
35    "./",
36    "../../../common/include",
37  ]
38}
39
40ohos_shared_library("frame_trace_intf") {
41  branch_protector_ret = "pac_ret"
42
43  sources = [ "frame_trace.cpp" ]
44
45  cflags = [ "-fstack-protector-strong" ]
46
47  public_configs = [ ":frame_trace_intf_config" ]
48
49  subsystem_name = "resourceschedule"
50  innerapi_tags = [ "platformsdk_indirect" ]
51  part_name = "frame_aware_sched"
52}
53
54ohos_shared_library("frame_ui_intf") {
55  branch_protector_ret = "pac_ret"
56
57  sources = [
58    "../../../frameworks/core/frame_aware_collector/src/frame_msg_mgr.cpp",
59    "../../../frameworks/core/frame_aware_collector/src/frame_window_mgr.cpp",
60    "../../../frameworks/core/frame_aware_collector/src/rme_core_sched.cpp",
61    "../../../frameworks/core/frame_aware_collector/src/rme_scene_sched.cpp",
62    "frame_ui_intf.cpp",
63    "rtg_interface.cpp",
64  ]
65
66  cflags = [
67    "-Wno-shift-negative-value",
68    "-fstack-protector-strong",
69  ]
70
71  configs = [ ":frame_ui_intf_config" ]
72
73  external_deps = [
74    "c_utils:utils",
75    "hilog:libhilog",
76    "hitrace:hitrace_meter",
77  ]
78
79  innerapi_tags = [ "platformsdk" ]
80  subsystem_name = "resourceschedule"
81  part_name = "frame_aware_sched"
82}
83
84config("frame_msg_intf_config") {
85  visibility = [ ":*" ]
86  visibility += [ "../../../test/*" ]
87
88  include_dirs = [
89    "./",
90    "../../../frameworks/core/frame_aware_policy/include",
91    "../../../common/include",
92    "../../../qos_manager/include",
93  ]
94}
95
96ohos_shared_library("frame_msg_intf") {
97  branch_protector_ret = "pac_ret"
98
99  sources = [
100    "../../../frameworks/core/frame_aware_policy/src/app_info.cpp",
101    "../../../frameworks/core/frame_aware_policy/src/intellisense_server.cpp",
102    "../../../frameworks/core/frame_aware_policy/src/para_config.cpp",
103    "../../../qos_manager/src/qos_common.cpp",
104    "frame_msg_intf.cpp",
105    "rtg_interface.cpp",
106  ]
107
108  cflags = [
109    "-Wno-shift-negative-value",
110    "-fstack-protector-strong",
111  ]
112
113  public_configs = [ ":frame_msg_intf_config" ]
114
115  external_deps = [
116    "c_utils:utils",
117    "eventhandler:libeventhandler",
118    "ffrt:libffrt",
119    "hilog:libhilog",
120    "hitrace:hitrace_meter",
121    "libxml2:libxml2",
122  ]
123
124  subsystem_name = "resourceschedule"
125  part_name = "frame_aware_sched"
126}
127
128ohos_shared_library("rtg_interface") {
129  branch_protector_ret = "pac_ret"
130
131  sources = [ "rtg_interface.cpp" ]
132
133  cflags = [
134    "-Wno-shift-negative-value",
135    "-fstack-protector-strong",
136  ]
137
138  public_configs = [ ":rtg_interface_config" ]
139
140  include_dirs = [ "../../../common/include" ]
141
142  external_deps = [
143    "bounds_checking_function:libsec_shared",
144    "hilog:libhilog",
145  ]
146
147  install_enable = true
148  subsystem_name = "resourceschedule"
149  part_name = "frame_aware_sched"
150}
151