• 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
16ohos_shared_library("systemdatetime") {
17  include_dirs = [
18    "../common/include",
19    "../../../interfaces/inner_api/include",
20    "include",
21  ]
22
23  configs = [ "${time_utils_path}:utils_config" ]
24
25  cflags = [
26    "-fPIC",
27    "-g3",
28  ]
29
30  sources = [
31    "../common/src/napi_async_work.cpp",
32    "../common/src/napi_utils.cpp",
33    "src/date_time_init.cpp",
34    "src/napi_system_date_time.cpp",
35  ]
36
37  deps = [
38    "${api_path}:time_client",
39  ]
40
41  external_deps = [
42    "ability_base:want",
43    "ability_runtime:runtime",
44    "ability_runtime:wantagent_innerkits",
45    "c_utils:utils",
46    "hiviewdfx_hilog_native:libhilog",
47    "ipc:ipc_core",
48    "napi:ace_napi",
49  ]
50
51  relative_install_dir = "module"
52
53  subsystem_name = "time"
54  part_name = "time_service"
55}