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 "//utils/native/base/include", 22 ] 23} 24 25ohos_shared_library("socperf_plugin") { 26 configs = [ 27 ":socperf_plugin_config", 28 "${ressched_services}:ressched_config", 29 "${ressched_interfaces}/innerkits/ressched_client:client_public_config", 30 ] 31 32 sources = [ "src/socperf_plugin.cpp" ] 33 34 deps = [ 35 "${ressched_services}:resschedsvc", 36 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 37 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 38 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 39 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 40 "//foundation/resourceschedule/resource_schedule_service/soc_perf:socperf_client", 41 "//third_party/jsoncpp:jsoncpp", 42 "//utils/native/base:utils", 43 ] 44 45 external_deps = [ 46 "ability_runtime:app_manager", 47 "eventhandler:libeventhandler", 48 ] 49 50 subsystem_name = "resourceschedule" 51 part_name = "resource_schedule_service" 52} 53