• 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  sources = [ "frame_trace.cpp" ]
42
43  cflags = [ "-fstack-protector-strong" ]
44
45  public_configs = [ ":frame_trace_intf_config" ]
46
47  subsystem_name = "resourceschedule"
48  innerapi_tags = [ "platformsdk_indirect" ]
49  part_name = "frame_aware_sched"
50}
51
52ohos_shared_library("frame_ui_intf") {
53  sources = [
54    "../../../frameworks/core/frame_aware_collector/src/frame_msg_mgr.cpp",
55    "../../../frameworks/core/frame_aware_collector/src/frame_window_mgr.cpp",
56    "../../../frameworks/core/frame_aware_collector/src/rme_core_sched.cpp",
57    "../../../frameworks/core/frame_aware_collector/src/rme_scene_sched.cpp",
58    "frame_ui_intf.cpp",
59    "rtg_interface.cpp",
60  ]
61
62  cflags = [
63    "-Wno-shift-negative-value",
64    "-fstack-protector-strong",
65  ]
66
67  configs = [ ":frame_ui_intf_config" ]
68
69  external_deps = [
70    "c_utils:utils",
71    "hilog:libhilog",
72    "hitrace:hitrace_meter",
73  ]
74
75  subsystem_name = "resourceschedule"
76  part_name = "frame_aware_sched"
77}
78
79config("frame_msg_intf_config") {
80  visibility = [ ":*" ]
81  visibility += [ "../../../test/*" ]
82
83  include_dirs = [
84    "./",
85    "../../../frameworks/core/frame_aware_policy/include",
86    "../../../common/include",
87    "../../../qos_manager/include",
88    "//third_party/libxml2/include",
89  ]
90}
91
92ohos_shared_library("frame_msg_intf") {
93  sources = [
94    "../../../frameworks/core/frame_aware_policy/src/app_info.cpp",
95    "../../../frameworks/core/frame_aware_policy/src/intellisense_server.cpp",
96    "../../../frameworks/core/frame_aware_policy/src/para_config.cpp",
97    "../../../qos_manager/src/qos_common.cpp",
98    "frame_msg_intf.cpp",
99    "rtg_interface.cpp",
100  ]
101
102  cflags = [
103    "-Wno-shift-negative-value",
104    "-fstack-protector-strong",
105  ]
106
107  public_configs = [ ":frame_msg_intf_config" ]
108
109  deps = [ "//third_party/libxml2:xml2" ]
110
111  external_deps = [
112    "c_utils:utils",
113    "eventhandler:libeventhandler",
114    "hilog:libhilog",
115    "hitrace:hitrace_meter",
116  ]
117
118  subsystem_name = "resourceschedule"
119  part_name = "frame_aware_sched"
120}
121
122ohos_shared_library("rtg_interface") {
123  sources = [ "rtg_interface.cpp" ]
124
125  cflags = [
126    "-Wno-shift-negative-value",
127    "-fstack-protector-strong",
128  ]
129
130  public_configs = [ ":rtg_interface_config" ]
131
132  include_dirs = [
133    "../../../common/include",
134    "//third_party/bounds_checking_function/include",
135  ]
136
137  deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
138
139  external_deps = [ "hilog:libhilog" ]
140
141  install_enable = true
142  subsystem_name = "resourceschedule"
143  part_name = "frame_aware_sched"
144}
145