Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | 12-May-2024 | - | 69 | 41 | ||
BUILD.gn | D | 12-May-2024 | 1.9 KiB | 60 | 51 | |
LICENSE | D | 12-May-2024 | 10.1 KiB | 177 | 150 | |
README.md | D | 12-May-2024 | 2.5 KiB | 67 | 49 | |
README_zh.md | D | 12-May-2024 | 2.3 KiB | 67 | 49 | |
bundle.json | D | 12-May-2024 | 1.3 KiB | 48 | 48 |
README.md
1# safwk\_lite<a name="EN-US_TOPIC_0000001081445008"></a> 2 3- [Introduction](#section11660541593) 4- [Directory Structure](#section1464106163817) 5- [Usage](#section10729231131110) 6- [Repositories Involved](#section176111311166) 7 8## Introduction<a name="section11660541593"></a> 9 10The **safwk\_lite** module provides an empty process for running basic services. 11 12## Directory Structure<a name="section1464106163817"></a> 13 14The following table describes the directory structure of the Distributed Scheduler. 15 16**Table 1** Directory structure of the major source code 17 18<a name="table43531856201716"></a> 19<table><thead align="left"><tr id="row20416556201718"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p10416456121716"><a name="p10416456121716"></a><a name="p10416456121716"></a>Directory</p> 20</th> 21<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1841645631717"><a name="p1841645631717"></a><a name="p1841645631717"></a>Description</p> 22</th> 23</tr> 24</thead> 25<tbody><tr id="row104169564177"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p17416125614179"><a name="p17416125614179"></a><a name="p17416125614179"></a>safwk_lite</p> 26</td> 27<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p04163569170"><a name="p04163569170"></a><a name="p04163569170"></a>Implementation of the foundation process</p> 28</td> 29</tr> 30</tbody> 31</table> 32 33The source code directory structure of the **safwk\_lite** module is as follows: 34 35``` 36├── BUILD.gn 37├── readme.md 38├── LICENSE 39├── src 40 └── main.c 41``` 42 43## Usage<a name="section10729231131110"></a> 44 45Add a service to the foundation process. 46 47After writing the service based on the service template, add the dependencies to the **BUILD.gn** file. 48 49``` 50deps = [ 51 "${aafwk_lite_path}/services/abilitymgr_lite:abilityms", 52 "${appexecfwk_lite_path}/services/bundlemgr_lite:bundlems", 53 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 54 "//base/security/permission/services/permission_lite/ipc_auth:ipc_auth_target", 55 "//base/security/permission/services/permission_lite/pms:pms_target", 56 "//foundation/distributedschedule/dmsfwk_lite:dtbschedmgr", 57 "//foundation/distributedschedule/samgr_lite/samgr_server:server", 58] 59``` 60 61## Repositories Involved<a name="section176111311166"></a> 62 63[Distributed Scheduler subsystem](en-us_topic_0000001115719369.md) 64 65**[safwk\_lite](https://gitee.com/openharmony/distributedschedule_services_safwk_lite)** 66 67
README_zh.md
1# 介绍<a name="ZH-CN_TOPIC_0000001081445008"></a> 2 3- [简介](#section11660541593) 4- [目录](#section1464106163817) 5- [使用](#section10729231131110) 6- [涉及仓](#section176111311166) 7 8## 简介<a name="section11660541593"></a> 9 10safwklite模块负责提供基础服务运行的空进程。 11 12## 目录<a name="section1464106163817"></a> 13 14分布式任务调度源代码目录结构如下表所示: 15 16**表1 **主要源代码目录结构 17 18<a name="table43531856201716"></a> 19<table><thead align="left"><tr id="row20416556201718"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p10416456121716"><a name="p10416456121716"></a><a name="p10416456121716"></a>名称</p> 20</th> 21<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1841645631717"><a name="p1841645631717"></a><a name="p1841645631717"></a>描述</p> 22</th> 23</tr> 24</thead> 25<tbody><tr id="row104169564177"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p17416125614179"><a name="p17416125614179"></a><a name="p17416125614179"></a>safwk_lite</p> 26</td> 27<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p04163569170"><a name="p04163569170"></a><a name="p04163569170"></a>foundation进程实现</p> 28</td> 29</tr> 30</tbody> 31</table> 32 33其中分布式任务调度safwk\_lite组件的源代码目录结构如下: 34 35``` 36├── BUILD.gn 37├── readme.md 38├── LICENSE 39├── src 40 └── main.c 41``` 42 43## 使用<a name="section10729231131110"></a> 44 45在foundation进程中添加服务 46 47按照服务的模板写完服务后在BUILD.gn中添加依赖即可: 48 49``` 50deps = [ 51 "${aafwk_lite_path}/services/abilitymgr_lite:abilityms", 52 "${appexecfwk_lite_path}/services/bundlemgr_lite:bundlems", 53 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 54 "//base/security/permission/services/permission_lite/ipc_auth:ipc_auth_target", 55 "//base/security/permission/services/permission_lite/pms:pms_target", 56 "//foundation/distributedschedule/dmsfwk_lite:dtbschedmgr", 57 "//foundation/distributedschedule/samgr_lite/samgr_server:server", 58] 59``` 60 61## 涉及仓<a name="section176111311166"></a> 62 63**[分布式任务调度子系统](zh-cn_topic_0000001115719369.md)** 64 65[safwk\_lite](https://gitee.com/openharmony/distributedschedule_services_safwk_lite) 66 67