1# Copyright (c) 2022-2024 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("../../../ressched.gni") 17 18config("client_private_config") { 19 include_dirs = [ "${ressched_common}/include" ] 20} 21 22config("client_public_config") { 23 include_dirs = [ "include" ] 24} 25 26ohos_shared_library("ressched_client") { 27 configs = [ ":client_private_config" ] 28 29 public_configs = [ ":client_public_config" ] 30 31 sources = [ 32 "src/res_sched_client.cpp", 33 "src/res_sched_common_death_recipient.cpp", 34 "src/res_sched_event_listener_proxy.cpp", 35 "src/res_sched_event_listener_stub.cpp", 36 "src/res_sched_service_proxy.cpp", 37 "src/res_sched_systemload_notifier_proxy.cpp", 38 "src/res_sched_systemload_notifier_stub.cpp", 39 ] 40 41 external_deps = [ 42 "c_utils:utils", 43 "ffrt:libffrt", 44 "hilog:libhilog", 45 "ipc:ipc_single", 46 "samgr:samgr_proxy", 47 ] 48 49 public_external_deps = [ "json:nlohmann_json_static" ] 50 51 install_images = [ 52 system_base_dir, 53 updater_base_dir, 54 ] 55 56 innerapi_tags = [ "platformsdk" ] 57 version_script = "libressched_client.versionscript" 58 59 sanitize = { 60 cfi = true 61 cfi_cross_dso = true 62 debug = false 63 } 64 branch_protector_ret = "pac_ret" 65 66 subsystem_name = "resourceschedule" 67 part_name = "resource_schedule_service" 68} 69