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("//build/test.gni") 16 17config("client_private_config") { 18 cflags_cc = [ "-fexceptions" ] 19 include_dirs = [ 20 "../../include", 21 "../../services/include", 22 ] 23} 24 25config("client_public_config") { 26 visibility = [ ":*" ] 27 cflags = [ "-fstack-protector-strong" ] 28 include_dirs = [ 29 "include", 30 "../../interfaces/inner_api/", 31 ] 32} 33 34ohos_shared_library("concurrent_task_client") { 35 branch_protector_ret = "pac_ret" 36 configs = [ ":client_private_config" ] 37 38 public_configs = [ ":client_public_config" ] 39 40 cflags_cc = [ 41 "-fomit-frame-pointer", 42 "-fdata-sections", 43 "-ffunction-sections", 44 "-fno-unroll-loops", 45 "-fno-exceptions", 46 "-fno-unwind-tables", 47 "-fno-asynchronous-unwind-tables", 48 "-g0", 49 "-Os", 50 ] 51 52 ldflags = [ "-Wl,--exclude-libs=ALL" ] 53 sources = [ 54 "src/concurrent_task_client.cpp", 55 "src/concurrent_task_service_proxy.cpp", 56 ] 57 58 public_external_deps = [ "jsoncpp:jsoncpp" ] 59 60 external_deps = [ 61 "c_utils:utils", 62 "hilog:libhilog", 63 "ipc:ipc_single", 64 "samgr:samgr_proxy", 65 ] 66 67 subsystem_name = "resourceschedule" 68 part_name = "qos_manager" 69} 70