readme修改

Signed-off-by: z00797030 <zhuchengli@huawei.com>
This commit is contained in:
z00797030
2023-07-18 21:56:17 +08:00
parent 910c7a8a69
commit 0abe10d6cb
2 changed files with 32 additions and 0 deletions
+18
View File
@@ -44,6 +44,8 @@ As a built-in basic application, Calendar implements basic user operations such
## How to Use
### Building based on IDE
Open a project in DevEco Studio and choose **Build > Build Haps(s)/APP(s) > Build Hap(s)**.
![](./figures/build_haps.png)
@@ -56,6 +58,22 @@ Run the **hdc_std install "*hap package address*"** command to install the compi
![](./figures/calendar_install.png)
### Building based OpenHarmony version
In the root directory of the OpenHarmony source code, run the following command to build the CalendarData separately:
```
./build.sh --product-name rk3568 --ccache --build-target calendar_data
```
> **NOTE**
>
> --**product-name** specifies the product name, for example, **rk3568**.
>
> --**ccache** specifies the cache function used during the compilation.
>
> --**build-target** specifies the component to build.
## Constraints
- Development environments
- DevEco Studio for OpenHarmony: version later than 3.1.1.101
+14
View File
@@ -44,6 +44,8 @@ Calendar作为内建基础应用,实现日月视图查看、日程创建查看
## 使用说明
### 基于IDE构建
在DevEco Studio打开项目工程,选择Build → Build Haps(s)/APP(s) → Build Hap(s)。
![](./figures/build_haps.png)
@@ -56,6 +58,18 @@ Calendar作为内建基础应用,实现日月视图查看、日程创建查看
![](./figures/calendar_install.png)
### 基于OpenHarmony版本构建
在OpenHarmony源码目录下,调用一下命令,单独编译calendar_data
```
./build.sh --product-name rk3568 --ccache --build-target calendar_data
```
> **说明:**
--product-name:产品名称,例如Hi3516DV300、rk3568等。
--ccache:编译时使用缓存功能。
--build-target: 编译的部件名称。
## 约束
- 开发环境
- **DevEco Studio for OpenHarmony**: 版本号大于3.1.1.101,下载安装OpenHarmony SDK API Version 10。(初始的IDE配置可以参考IDE的使用文档)