• 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(
16    "//foundation/resourceschedule/resource_schedule_service/ressched/ressched.gni")
17
18config("frame_aware_plugin_config") {
19  include_dirs = [
20    "include",
21    "//base/notification/eventhandler/interfaces/inner_api",
22    "//foundation/resourceschedule/frame_aware_sched/common/include",
23    "//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf",
24    "//commonlibrary/c_utils/base/include",
25  ]
26}
27
28ohos_shared_library("frame_aware_plugin") {
29  configs = [
30    ":frame_aware_plugin_config",
31    "${ressched_services}:ressched_config",
32    "${ressched_interfaces}/innerkits/ressched_client:client_public_config",
33  ]
34
35  sources = [
36    "src/frame_aware_plugin.cpp",
37    "src/network_latency_controller.cpp",
38  ]
39
40  deps = [
41    "${ressched_services}:resschedsvc",
42    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
43    "//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf:frame_msg_intf",
44  ]
45
46  subsystem_name = "resourceschedule"
47  part_name = "resource_schedule_service"
48}
49