From 0abe10d6cb4b091f0afbd56bed890a6c485d340c Mon Sep 17 00:00:00 2001 From: z00797030 Date: Tue, 18 Jul 2023 21:56:17 +0800 Subject: [PATCH] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: z00797030 --- README.md | 18 ++++++++++++++++++ README_zh.md | 14 ++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/README.md b/README.md index 493df21..1aac929 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_zh.md b/README_zh.md index 2b4796f..5803865 100644 --- a/README_zh.md +++ b/README_zh.md @@ -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的使用文档)