• 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/miscservices/time/time.gni")
15
16ohos_shared_library("systemtime") {
17  include_dirs = [
18    "//base/miscservices/time/interfaces/innerkits/include",
19    "include",
20    "//third_party/node/src",
21    "//foundation/ace/napi/interfaces/kits",
22  ]
23
24  configs = [ "${time_utils_path}:utils_config" ]
25
26  cflags = [
27    "-fPIC",
28    "-g3",
29  ]
30
31  sources = [ "src/js_systemtime.cpp" ]
32
33  deps = [
34    "//base/miscservices/time/services:time_service",
35    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
36    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
37    "//foundation/aafwk/standard/interfaces/innerkits/intent:intent",
38    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
39    "//foundation/ace/napi/:ace_napi",
40    "//utils/native/base:utils",
41  ]
42
43  external_deps = [
44    "ability_runtime:runtime",
45    "ability_runtime:wantagent_innerkits",
46    "hiviewdfx_hilog_native:libhilog",
47    "ipc:ipc_core",
48  ]
49
50  relative_install_dir = "module"
51
52  subsystem_name = "miscservices"
53  part_name = "time_native"
54}
55