# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//build/test.gni") import( "//foundation/resourceschedule/resource_schedule_service/cgroup_sched/cgroup_sched.gni") import( "//foundation/resourceschedule/resource_schedule_service/ressched/ressched.gni") import( "//foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/sched_controller.gni") config("ressched_config") { include_dirs = [ "resschedservice/include", "${ressched_common}/include", "resschedmgr/resschedfwk/include", "resschedmgr/pluginbase/include", "${sched_controller_observer}/include", "//utils/system/safwk/native/include", "//commonlibrary/c_utils/base/include", "//third_party/libxml2/include", "${cgroup_sched_interfaces}/innerkits/include", "${sched_controller_event}/include", "//third_party/json/single_include", "//base/customization/config_policy/interfaces/innerkits/include", "//base//hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", "//base/telephony/state_registry/frameworks/native/observer/include", "${ressched_interfaces}/innerkits/ressched_client/include", ] } ohos_shared_library("resschedsvc") { configs = [ ":ressched_config", "${ressched_interfaces}/innerkits/ressched_client:client_public_config", ] sources = [ "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/config_reader.cpp", "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/plugin_mgr.cpp", "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/plugin_switch.cpp", "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/res_sched_mgr.cpp", "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedservice/src/res_sched_service.cpp", "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedservice/src/res_sched_service_ability.cpp", "//foundation/resourceschedule/resource_schedule_service/ressched/services/resschedservice/src/res_sched_service_stub.cpp", ] deps = [ "${cgroup_sched_framework}:cgroup_sched", "${sched_controller_path}:sched_controller", "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", "//third_party/libxml2:xml2", ] external_deps = [ "c_utils:utils", "config_policy:configpolicy_util", "eventhandler:libeventhandler", "hisysevent_native:libhisysevent", "hitrace_native:hitrace_meter", "ipc:ipc_core", "safwk:system_ability_fwk", ] subsystem_name = "resourceschedule" part_name = "resource_schedule_service" }