From 38d6c9088a70c7c0d14fe0f0a5dc70188fad8993 Mon Sep 17 00:00:00 2001 From: chencheng31 Date: Fri, 11 Mar 2022 12:11:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chencheng31 --- README.md | 30 ++++++------------------------ README_zh.md | 34 ++++++++-------------------------- 2 files changed, 14 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index d00f1c7..5e78897 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # OpenHarmony resource compile tool ## Description -resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Support window,linux, macos platform. +resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Support Window,Linux, MacOS platform. ## Directory Structure @@ -14,41 +14,24 @@ resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Su | |----build dependence third patry lib make script | |----CMakeLists.txt | |----BUILD.gn -| |----win32.cmake windows cross compile script +| |----win32.cmake Windows cross compile script ``` ## Instructions -### Quickly Build - -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 -``` -7. compile result restool binary - ### SDK Build -1. ` ./build.sh --product-name ohos-sdk ` - -[SDK build refer]( https://gitee.com/openharmony/build/blob/master/README_zh.md ) +[SDK build refer](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 +In PC, run `python test/test.py ./restool ./out` ### Help -restool usually integrate to IDE, OpenHarmony compile system. +resource tool usually integrate to IDE, OpenHarmony compile system. -run ./restool, show command: +resouce tool command e.g: -v version -i input resource path @@ -58,7 +41,6 @@ run ./restool, show command: `./restool -i main -o out -r out/ResourceTable.h -p ohos.demo` -using IDE(recommonded) ## Related to the storehouse third_party_libxml2 diff --git a/README_zh.md b/README_zh.md index 51fd061..ce870a1 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,7 +1,7 @@ -# OpenHarmony 应用资源编译工具 +# OpenHarmony资源编译工具 ## 介绍 -资源编译工具属于PC端工具,在OpenHarmony SDK中 toolchain 目录下。 提供给IDE使用,支持window, linux, macos平台。 +资源编译工具属于PC端工具,在OpenHarmony SDK中toolchain目录下,提供给IDE使用,支持Window, Linux, MacOS平台。 ## 目录 @@ -14,40 +14,24 @@ | |----build 依赖三方库编译脚本 | |----BUILD.gn | |----CMakeLists.txt -| |----win32.cmake windows交叉编译脚本 +| |----win32.cmake Windows交叉编译脚本 ``` ## 使用说明 -### 快速调试编译 - -1. ubuntu 18 系统预装 gcc/g++ -2. cmake 版本最低3.15 -3. 与global_resource_tool同级目录新建build -``` -4. cd build -5. cmake ../global_resource_tool -6. make -``` -7. 编译结果输出restool - ### SDK编译命令 -1. `./build.sh --product-nane ohos-sdk` -[SDK 编译参考](https://gitee.com/openharmony/build/blob/master/README_zh.md) +[SDK编译命令参考](https://gitee.com/openharmony/build/blob/master/README_zh.md) ### 测试用例 -1.PC 上运行 `python test/test.py 参数1 参数2` - -参数1 restool 命令路径 -参数2 输出结果路径 - +PC 上运行 `python test/test.py ./restool ./out` + ### 命令帮助 -本工具一般被IDE 和OpenHarmony 编译系统集成调用。 +本工具由IDE和OpenHarmony编译系统集成调用。 -手动执行./restool 会提示支持的命令行参数。简单命令参数如下: +支持的命令行参数,例如: -v 显示工具版本号 -i 资源输入目录 @@ -57,8 +41,6 @@ `./restool -i main -o out -r out/ResourceTable.h -p ohos.demo` -推荐使用IDE工具。 - ## 相关仓 third_party_libxml2 From 4aac1f1b82f0c87a98e1538b3d8767efb4873de3 Mon Sep 17 00:00:00 2001 From: chencheng31 Date: Fri, 11 Mar 2022 12:47:10 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chencheng31 --- README.md | 2 +- README_zh.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e78897..267cf82 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Su ### Test -In PC, run `python test/test.py ./restool ./out` +In PC, run `python test.py ./restool ./out` ### Help diff --git a/README_zh.md b/README_zh.md index ce870a1..0550dce 100644 --- a/README_zh.md +++ b/README_zh.md @@ -25,7 +25,7 @@ ### 测试用例 -PC 上运行 `python test/test.py ./restool ./out` +PC 上运行 `python test.py ./restool ./out` ### 命令帮助 From 4ed4ed2fafd0ebdb491b655ba1d7d5118e9efa8a Mon Sep 17 00:00:00 2001 From: chencheng31 Date: Fri, 11 Mar 2022 14:32:21 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chencheng31 --- README.md | 4 ++-- README_zh.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 267cf82..e0e0d14 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # OpenHarmony resource compile tool ## Description -resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Support Window,Linux, MacOS platform. +resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Support Windows, Linux, MacOS platform. ## Directory Structure @@ -31,7 +31,7 @@ In PC, run `python test.py ./restool ./out` resource tool usually integrate to IDE, OpenHarmony compile system. -resouce tool command e.g: +resource tool command e.g: -v version -i input resource path diff --git a/README_zh.md b/README_zh.md index 0550dce..13ab6d0 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,7 +1,7 @@ # OpenHarmony资源编译工具 ## 介绍 -资源编译工具属于PC端工具,在OpenHarmony SDK中toolchain目录下,提供给IDE使用,支持Window, Linux, MacOS平台。 +资源编译工具属于PC端工具,在OpenHarmony SDK中toolchain目录下,提供给IDE使用,支持Windows, Linux, MacOS平台。 ## 目录