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("//foundation/resourceschedule/work_scheduler/workscheduler.gni") 15 16config("worksched_private_config") { 17 include_dirs = [ "${worksched_service_path}/zidl/include" ] 18} 19 20config("worksched_public_config") { 21 include_dirs = [ 22 "include", 23 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 24 ] 25} 26 27ohos_shared_library("workschedclient") { 28 sources = [ 29 "${worksched_frameworks_path}/src/work_info.cpp", 30 "${worksched_frameworks_path}/src/workscheduler_srv_client.cpp", 31 "${worksched_service_path}/zidl/src/work_sched_service_proxy.cpp", 32 ] 33 34 configs = [ ":worksched_private_config" ] 35 36 public_configs = [ ":worksched_public_config" ] 37 38 deps = [ "${worksched_utils_path}:workschedutils" ] 39 40 external_deps = [ 41 "ability_base:want", 42 "hiviewdfx_hilog_native:libhilog", 43 "ipc:ipc_core", 44 "samgr:samgr_proxy", 45 ] 46 47 part_name = "${worksched_native_part_name}" 48} 49