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("//base/miscservices/time/time.gni") 14import("//build/ohos.gni") 15 16config("time_client_config") { 17 visibility = [ ":*" ] 18 include_dirs = [ 19 "${time_service_path}/time_manager/include", 20 "include", 21 "//utils/native/base/include", 22 "${time_utils_path}/native/include", 23 ] 24} 25 26ohos_shared_library("time_client") { 27 sources = [ 28 "${time_service_path}/time_manager/src/itimer_info.cpp", 29 "${time_service_path}/time_manager/src/time_service_client.cpp", 30 "${time_service_path}/time_manager/src/time_service_proxy.cpp", 31 "${time_service_path}/time_manager/src/time_service_stub.cpp", 32 "${time_service_path}/time_manager/src/timer_call_back.cpp", 33 "${time_service_path}/time_manager/src/timer_call_back_proxy.cpp", 34 "${time_service_path}/time_manager/src/timer_call_back_stub.cpp", 35 ] 36 37 configs = [ ":time_client_config" ] 38 public_configs = [ ":time_client_config" ] 39 deps = [ 40 "${time_utils_path}:time_utils", 41 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 42 "//foundation/aafwk/standard/interfaces/innerkits/base:base", 43 "//foundation/aafwk/standard/interfaces/innerkits/intent:intent", 44 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 45 "//third_party/jsoncpp:jsoncpp", 46 "//utils/native/base:utils", 47 ] 48 external_deps = [ 49 "ability_runtime:runtime", 50 "ability_runtime:wantagent_innerkits", 51 "ces_standard:cesfwk_innerkits", 52 "eventhandler:libeventhandler", 53 "hiviewdfx_hilog_native:libhilog", 54 "ipc:ipc_core", 55 "safwk:system_ability_fwk", 56 "samgr_standard:samgr_proxy", 57 ] 58 subsystem_name = "miscservices" 59 part_name = "time_native" 60} 61