• 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    "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/simple_timer_info.cpp",
31    "${time_service_path}/time/src/timer_call_back.cpp",
32  ]
33  configs = [ ":time_client_config" ]
34  configs += [ "//build/config/gcc:symbol_visibility_hidden" ]
35  public_configs = [
36    ":time_client_config",
37    "${time_service_path}:time_service_gen_config",
38  ]
39  innerapi_tags = [
40    "platformsdk",
41    "sasdk",
42  ]
43  deps = [ "${time_service_path}:timeservice_proxy" ]
44  external_deps = [
45    "ability_runtime:wantagent_innerkits",
46    "c_utils:utils",
47    "hilog:libhilog",
48    "ipc:ipc_single",
49    "samgr:samgr_proxy",
50  ]
51  branch_protector_ret = "pac_ret"
52  sanitize = {
53    integer_overflow = true
54    ubsan = true
55    boundary_sanitize = true
56    cfi = true
57    cfi_cross_dso = true
58    debug = time_sanitize_debug
59  }
60  subsystem_name = "time"
61  part_name = "time_service"
62}
63