• 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.
13
14import("//base/time/time_service/time.gni")
15
16config("time_service_config") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    "${api_path}/include",
20    "../utils/native/include",
21    "time/include",
22    "timer/include",
23    "dfx/include",
24    "ipc/base",
25    "ipc/proxy",
26    "ipc/stub",
27    "${time_service_path}",
28    "//third_party/json/include",
29  ]
30}
31
32ohos_shared_library("time_service") {
33  configs = [ "${time_utils_path}:utils_config" ]
34
35  public_configs = [
36    ":time_service_config",
37  ]
38
39  sources = [
40    "./time_permission.cpp",
41    "./time_system_ability.cpp",
42    "dfx/src/time_cmd_dispatcher.cpp",
43    "dfx/src/time_cmd_parse.cpp",
44    "dfx/src/time_sysevent.cpp",
45    "ipc/proxy/timer_call_back_proxy.cpp",
46    "ipc/stub/time_service_stub.cpp",
47    "time/src/itimer_info.cpp",
48    "time/src/net_conn_callback_observer.cpp",
49    "time/src/nitz_subscriber.cpp",
50    "time/src/ntp_trusted_time.cpp",
51    "time/src/ntp_update_time.cpp",
52    "time/src/simple_timer_info.cpp",
53    "time/src/sntp_client.cpp",
54    "time/src/time_service_notify.cpp",
55    "time/src/time_tick_notify.cpp",
56    "time/src/time_zone_info.cpp",
57    "timer/src/batch.cpp",
58    "timer/src/timer_handler.cpp",
59    "timer/src/timer_info.cpp",
60    "timer/src/timer_manager.cpp",
61    "time/src/power_subscriber.cpp",
62  ]
63
64  deps = [
65    "//third_party/jsoncpp:jsoncpp",
66  ]
67  external_deps = [
68    "ability_base:want",
69    "ability_runtime:abilitykit_native",
70    "ability_runtime:wantagent_innerkits",
71    "access_token:libaccesstoken_sdk",
72    "bundle_framework:appexecfwk_core",
73    "c_utils:utils",
74    "common_event_service:cesfwk_innerkits",
75    "eventhandler:libeventhandler",
76    "hisysevent_native:libhisysevent",
77    "hiviewdfx_hilog_native:libhilog",
78    "ipc:ipc_core",
79    "netmanager_base:net_conn_manager_if",
80    "safwk:system_ability_fwk",
81    "samgr:samgr_proxy",
82  ]
83  part_name = "time_service"
84  subsystem_name = "time"
85}