• 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/cgroup_sched/cgroup_sched.gni")
17import(
18    "//foundation/resourceschedule/resource_schedule_service/ressched/ressched.gni")
19import(
20    "//foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/sched_controller.gni")
21
22ohos_shared_library("sched_controller") {
23  include_dirs = [
24    "common_event/include",
25    "observer/include",
26    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include",
27    "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr",
28    "//foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include",
29    "//foundation/resourceschedule/device_scheduler/common/include",
30    "//foundation/resourceschedule/resource_schedule_service/ressched/common/include",
31    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
32    "//base/telephony/core_service/interfaces/innerkits/include",
33    "//base/telephony/state_registry/frameworks/native/observer/include",
34    "${cgroup_sched_framework}/process_group/include",
35    "${cgroup_sched_framework}/sched_controller/include",
36    "${cgroup_sched_framework}/utils/include",
37    "${cgroup_sched_common}/include",
38    "${ressched_common}/include",
39    "${ressched_interfaces}/innerkits/ressched_client/include",
40  ]
41
42  sources = [
43    "${cgroup_sched_common}/cgroup_sched_log.cpp",
44    "${cgroup_sched_framework}/utils/ressched_utils.cpp",
45    "common_event/src/event_controller.cpp",
46    "observer/src/audio_observer.cpp",
47    "observer/src/camera_observer.cpp",
48    "observer/src/observer_manager.cpp",
49    "observer/src/sched_telephony_observer.cpp",
50  ]
51
52  deps = [ "//base/telephony/state_registry/frameworks/native/observer:tel_state_registry_api" ]
53
54  external_deps = [
55    "ability_base:want",
56    "bundle_framework:appexecfwk_base",
57    "c_utils:utils",
58    "common_event_service:cesfwk_innerkits",
59    "hisysevent_native:libhisyseventmanager",
60    "hiviewdfx_hilog_native:libhilog",
61    "init:libbegetutil",
62    "ipc:ipc_core",
63    "multimedia_audio_framework:audio_client",
64    "samgr:samgr_proxy",
65  ]
66
67  defines = []
68
69  configs = []
70
71  if (device_movement_perception_enable) {
72    configs += [ "//base/msdp/movement/utils:movement_utils_config" ]
73    defines += [ "DEVICE_MOVEMENT_PERCEPTION_ENABLE" ]
74    external_deps += [ "movement:movement_client" ]
75    sources += [ "observer/src/device_movement_observer.cpp" ]
76  }
77
78  part_name = "resource_schedule_service"
79  subsystem_name = "resourceschedule"
80}
81