diff --git a/BUILD.gn b/BUILD.gn deleted file mode 100755 index 06ad71cdb06edfa94806f30c1d4c7e3cd426225b..0000000000000000000000000000000000000000 --- a/BUILD.gn +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") - -################################################################################ - -group("time_native_packages") { - if (is_standard_system) { - deps = [ - "etc/init:timeservice.rc", - "interfaces/kits/js/declaration:time", - "interfaces/kits/js/napi/system_time:systemtime", - "interfaces/kits/js/napi/system_timer:systemtimer", - "profile:miscservices_time_sa_profiles", - "services:time_service", - ] - } -} diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..5c63f31f94ec33c2717972cc2d7e1e4faa189dbe --- /dev/null +++ b/bundle.json @@ -0,0 +1,67 @@ +{ + "name": "@ohos/time", + "description": "Allowing apps to use OS time get/set functions", + "version": "3.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "base/miscservices/time" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "time_native", + "subsystem": "miscservices", + "syscap": [ + "SystemCapability.Miscservices.Time" + ], + "features": [ + ], + "adapted_system_type": [ + "standard" + ], + "rom":"300KB", + "ram":"1024KB", + "deps": { + "components": [ + "ability_manager", + "aafwk_standard", + "appexecfwk_standard", + "ans_standard", + "ces_standard", + "distributeddatamgr", + "hisysevent_native", + "hiviewdfx_hilog_native", + "ipc", + "permission_standard", + "safwk", + "samgr_standard", + "startup_l2", + "utils_base" + ], + "third_party": [ + "jsoncpp" + ] + }, + "build": { + "sub_component": [ + "//base/miscservices/time:time_native_packages" + ], + "inner_kits": [ + { + "name": "//base/miscservices/time/services:time_service", + "header": { + "header_files": [ + "itimer_info.h", + "time_service_client.h" + ], + "header_base":"//base/miscservices/time/interfaces/innerkits/include" + } + } + ], + "test": [ + "//base/miscservices/time/services/time_manager/test:TimeServiceTest" + ] + } + } +} \ No newline at end of file diff --git a/ohos.build b/ohos.build deleted file mode 100755 index f96f7921a639e8f4ff31218fb4f10feac36cd55a..0000000000000000000000000000000000000000 --- a/ohos.build +++ /dev/null @@ -1,18 +0,0 @@ -{ - "subsystem": "miscservices", - "parts": { - "time_native": { - "variants": [ - "phone", - "wearable", - "ivi" - ], - "module_list": [ - "//base/miscservices/time:time_native_packages" - ], - "test_list": [ - "//base/miscservices/time/services/time_manager/test:TimeServiceTest" - ] - } - } -} diff --git a/time.gni b/time.gni index c20574fc766b310df81fed9850f842917f405260..df2dde859776c6d781752cf8db3a376979b51c51 100755 --- a/time.gni +++ b/time.gni @@ -14,7 +14,7 @@ import("//build/ohos.gni") time_root_path = "//base/miscservices/time" -kits_path = "${time_root_path}/interface/kits" +kits_path = "${time_root_path}/interfaces/kits" innerkits_path = "${time_root_path}/interfaces/innerkits"