• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "${time_service_path}/ipc/proxy/inner_api_include",
19    "${time_service_path}/ipc/stub/inner_api_include",
20    "${time_service_path}/ipc/base",
21    "include",
22    "${time_utils_path}/native/include",
23    "${time_service_path}/time/include/inner_api_include",
24  ]
25}
26
27ohos_shared_library("time_client") {
28  sources = [
29    "${api_path}/src/time_service_client.cpp",
30    "${time_service_path}/ipc/proxy/time_service_proxy.cpp",
31    "${time_service_path}/ipc/stub/timer_call_back_stub.cpp",
32    "${time_service_path}/ipc/stub/timer_notify_callback_stub.cpp",
33    "${time_service_path}/time/src/itimer_info.cpp",
34    "${time_service_path}/time/src/timer_call_back.cpp",
35    "${time_service_path}/time/src/timer_notify_callback.cpp",
36  ]
37  configs = [ ":time_client_config" ]
38  configs += [ "//build/config/gcc:symbol_visibility_hidden" ]
39  public_configs = [ ":time_client_config" ]
40  innerapi_tags = [
41    "platformsdk",
42    "sasdk",
43  ]
44  external_deps = [
45    "ability_runtime:abilitykit_native",
46    "ability_runtime:wantagent_innerkits",
47    "c_utils:utils",
48    "hilog:libhilog",
49    "ipc:ipc_single",
50    "samgr:samgr_proxy",
51  ]
52  subsystem_name = "time"
53  part_name = "time_service"
54}
55