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") 15 16config("concurrent_task_config") { 17 visibility = [ ":*" ] 18 cflags_cc = [ "-fexceptions" ] 19 cflags = [ 20 "-fstack-protector-strong", 21 "-Wno-shift-negative-value", 22 ] 23 include_dirs = [ 24 "include", 25 "../include", 26 "../frameworks/concurrent_task_client/include/", 27 "../interfaces/inner_api/", 28 "//foundation/resourceschedule/frame_aware_sched/common/include/", 29 "//utils/system/safwk/native/include", 30 "//commonlibrary/c_utils/base/include", 31 "//third_party/jsoncpp/include", 32 ] 33} 34 35ohos_shared_library("concurrentsvc") { 36 public_configs = [ ":concurrent_task_config" ] 37 branch_protector_ret = "pac_ret" 38 sanitize = { 39 cfi = true 40 cfi_cross_dso = true 41 debug = false 42 } 43 sources = [ 44 "src/concurrent_task_controller.cpp", 45 "src/concurrent_task_service.cpp", 46 "src/concurrent_task_service_ability.cpp", 47 "src/concurrent_task_service_stub.cpp", 48 "src/qos_interface.cpp", 49 "src/qos_policy.cpp", 50 ] 51 52 deps = [ 53 "../etc/param:ffrt_etc", 54 "//third_party/jsoncpp:jsoncpp", 55 ] 56 57 if (defined( 58 global_parts_info.hmosresourceschedule_frame_aware_sched_override)) { 59 defines = [ "QOS_EXT_ENABLE" ] 60 } 61 62 external_deps = [ 63 "access_token:libaccesstoken_sdk", 64 "c_utils:utils", 65 "frame_aware_sched:rtg_interface", 66 "hilog:libhilog", 67 "hitrace:hitrace_meter", 68 "init:libbegetutil", 69 "ipc:ipc_single", 70 "safwk:system_ability_fwk", 71 "samgr:samgr_proxy", 72 ] 73 74 subsystem_name = "resourceschedule" 75 part_name = "qos_manager" 76} 77