• 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("component_sched_plugin_config") {
19  include_dirs = [
20    "include",
21    "//base/notification/eventhandler/interfaces/inner_api",
22    "//commonlibrary/c_utils/base/include",
23    "//foundation/communication/bluetooth/interfaces/inner_api/include",
24  ]
25}
26
27ohos_shared_library("component_sched_plugin") {
28  configs = [
29    ":component_sched_plugin_config",
30    "${ressched_services}:ressched_config",
31    "${ressched_interfaces}/innerkits/ressched_client:client_public_config",
32  ]
33
34  sources = [ "src/component_sched_plugin.cpp" ]
35
36  deps = [ "${ressched_services}:resschedsvc" ]
37
38  external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
39
40  defines = []
41
42  if (component_sched_enable) {
43    external_deps += [
44      "efficiency_manager:component_sched_client",
45      "ipc:ipc_core",
46    ]
47    defines += [ "COMPONENT_SCHED_ENABLE" ]
48  }
49
50  subsystem_name = "resourceschedule"
51  part_name = "resource_schedule_service"
52}
53