1# Copyright (c) 2021 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. 13import("//build/ohos.gni") 14import("../../time.gni") 15 16config("time_client_config") { 17 include_dirs = [ 18 "include", 19 "${time_utils_path}/native/include", 20 "${time_service_path}/time/include", 21 "${time_service_path}/time/include/inner_api_include", 22 "${time_service_path}/timer/include", 23 ] 24} 25 26ohos_shared_library("time_client") { 27 sources = [ 28 "${api_path}/src/time_service_client.cpp", 29 "${time_service_path}/time/src/itimer_info.cpp", 30 "${time_service_path}/time/src/timer_call_back.cpp", 31 ] 32 configs = [ ":time_client_config" ] 33 configs += [ "//build/config/gcc:symbol_visibility_hidden" ] 34 public_configs = [ 35 ":time_client_config", 36 "${time_service_path}:time_service_gen_config", 37 ] 38 innerapi_tags = [ 39 "platformsdk", 40 "sasdk", 41 ] 42 deps = [ "${time_service_path}:timeservice_proxy" ] 43 external_deps = [ 44 "ability_runtime:wantagent_innerkits", 45 "c_utils:utils", 46 "hilog:libhilog", 47 "ipc:ipc_single", 48 "samgr:samgr_proxy", 49 ] 50 branch_protector_ret = "pac_ret" 51 sanitize = { 52 integer_overflow = true 53 ubsan = true 54 boundary_sanitize = true 55 cfi = true 56 cfi_cross_dso = true 57 debug = time_sanitize_debug 58 } 59 subsystem_name = "time" 60 part_name = "time_service" 61} 62