更新readme

Signed-off-by: chencheng31 <chencheng8@huawei.com>
This commit is contained in:
chencheng31
2022-03-11 10:24:31 +08:00
parent e9e224a99b
commit 128220de09
2 changed files with 20 additions and 9 deletions
+10 -3
View File
@@ -1,7 +1,7 @@
# OpenHarmony resource compile tool
## Description
restool(resource tool) is used in computer.In OpenHarmony SDK toolchain.When IDE pack OpenHarmony application, application resources will be compiled by restool, then the result compiling will be passed to pack tool.Support window,linux, macos platform.
restool(resource tool) is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Support window,linux, macos platform.
## Directory Structure
@@ -23,21 +23,27 @@ restool(resource tool) is used in computer.In OpenHarmony SDK toolchain.When IDE
1. ubuntu 18 preinstalled gcc/g++
2. cmake version mini 3.15 required
```
3. mkdir build
4. cd build
5. cmake ../global_resource_tool
6. make
6. make
```
7. compile result restool binary
### SDK Build
```
1. ./build.sh --product-name ohos-sdk
```
SDK build refer to https://gitee.com/openharmony/build/blob/master/README_zh.md
### Test
```
1.in PC, run python test/test.py param1 param2
```
param1: restool path
param2: result path
@@ -54,8 +60,9 @@ run ./restool, show command:
-r resource ID header file path
-p package name
```
./restool -i main -o out -r out/ResourceTable.h -p ohos.demo
```
using IDE(recommonded)
## Related to the storehouse
+10 -6
View File
@@ -1,7 +1,7 @@
# OpenHarmony 应用资源编译工具
## 介绍
资源编译工具(resource tool, 缩写restool) 属于PC端工具,在OpenHarmony SDK中toolchain 目录下。在IDE生成 OpenHarmony 应用包过程中,调用restool 编译应用资源,编译结果传递给打包工具生成 OpenHarmony 应用包。支持window, linux, macos平台。
资源编译工具(resource tool)属于PC端工具,在OpenHarmony SDK中 toolchain 目录下。 提供给IDE使用,支持window, linux, macos平台。
## 目录
@@ -24,21 +24,25 @@
1. ubuntu 18 系统预装 gcc/g++
2. cmake 版本最低3.15
3. 与global_resource_tool同级目录新建build
```
4. cd build
5. cmake ../global_resource_tool
6. make
6. make
```
7. 编译结果输出restool
### SDK编译命令
```
1. ./build.sh --product-nane ohos-sdk
```
SDK 编译参考https://gitee.com/openharmony/build/blob/master/README_zh.md 仓编译sdk说明。
### 测试用例
```
1.PC 上运行 python test/test.py 参数1 参数2
```
参数1 restool 命令路径
参数2 输出结果路径
@@ -53,9 +57,9 @@ SDK 编译参考https://gitee.com/openharmony/build/blob/master/README_zh.md 仓
-o 资源输出目录
-r 资源ID头文件
-p 应用包名
```
./restool -i main -o out -r out/ResourceTable.h -p ohos.demo
```
推荐使用IDE工具。
## 相关仓