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("systemtime") { 17 include_dirs = [ 18 "../../../interfaces/inner_api/include", 19 "include", 20 "../common/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_utils.cpp", 32 "src/js_systemtime.cpp", 33 ] 34 35 deps = [ 36 "${api_path}:time_client", 37 ] 38 39 external_deps = [ 40 "ability_base:want", 41 "ability_runtime:runtime", 42 "ability_runtime:wantagent_innerkits", 43 "c_utils:utils", 44 "hiviewdfx_hilog_native:libhilog", 45 "ipc:ipc_core", 46 "napi:ace_napi", 47 ] 48 49 relative_install_dir = "module" 50 51 subsystem_name = "time" 52 part_name = "time_service" 53}