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("//build/test.gni") 16import( 17 "//foundation/resourceschedule/resource_schedule_service/cgroup_sched/cgroup_sched.gni") 18import( 19 "//foundation/resourceschedule/resource_schedule_service/ressched/ressched.gni") 20import( 21 "//foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/sched_controller.gni") 22 23config("ressched_config") { 24 include_dirs = [ 25 "resschedservice/include", 26 "${ressched_common}/include", 27 "resschedmgr/resschedfwk/include", 28 "resschedmgr/pluginbase/include", 29 "${sched_controller_observer}/include", 30 "//utils/system/safwk/native/include", 31 "//commonlibrary/c_utils/base/include", 32 "//third_party/libxml2/include", 33 "${cgroup_sched_interfaces}/innerkits/include", 34 "${sched_controller_event}/include", 35 "//third_party/json/single_include", 36 "//base/customization/config_policy/interfaces/innerkits/include", 37 "//base//hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", 38 "//base/telephony/state_registry/frameworks/native/observer/include", 39 "${ressched_interfaces}/innerkits/ressched_client/include", 40 ] 41} 42 43ohos_shared_library("resschedsvc") { 44 configs = [ 45 ":ressched_config", 46 "${ressched_interfaces}/innerkits/ressched_client:client_public_config", 47 ] 48 49 sources = [ 50 "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/config_reader.cpp", 51 "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/plugin_mgr.cpp", 52 "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/plugin_switch.cpp", 53 "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/res_sched_mgr.cpp", 54 "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedservice/src/res_sched_service.cpp", 55 "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedservice/src/res_sched_service_ability.cpp", 56 "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedservice/src/res_sched_service_stub.cpp", 57 ] 58 59 deps = [ 60 "${cgroup_sched_framework}:cgroup_sched", 61 "${sched_controller_path}:sched_controller", 62 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 63 "//third_party/libxml2:xml2", 64 ] 65 66 external_deps = [ 67 "c_utils:utils", 68 "config_policy:configpolicy_util", 69 "eventhandler:libeventhandler", 70 "hisysevent_native:libhisysevent", 71 "hitrace_native:hitrace_meter", 72 "ipc:ipc_core", 73 "safwk:system_ability_fwk", 74 ] 75 76 subsystem_name = "resourceschedule" 77 part_name = "resource_schedule_service" 78} 79