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("socperf_plugin_config") { 19 include_dirs = [ 20 "include/", 21 "//base/notification/eventhandler/interfaces/inner_api", 22 "//commonlibrary/c_utils/base/include", 23 "//foundation/ability/ability_runtime/interfaces/inner_api/app_manager/include/appmgr", 24 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 25 "//foundation/systemabilitymgr/safwk/services/safwk/include", 26 ] 27} 28 29ohos_shared_library("socperf_plugin") { 30 configs = [ 31 ":socperf_plugin_config", 32 "${ressched_services}:ressched_config", 33 "${ressched_interfaces}/innerkits/ressched_client:client_public_config", 34 ] 35 36 sources = [ "src/socperf_plugin.cpp" ] 37 38 deps = [ 39 "${ressched_services}:resschedsvc", 40 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 41 "//foundation/resourceschedule/resource_schedule_service/soc_perf:socperf_client", 42 ] 43 44 subsystem_name = "resourceschedule" 45 part_name = "resource_schedule_service" 46} 47