• Home
Name
Date
Size
#Lines
LOC

..--

build/12-May-2024-1,667988

include/12-May-2024-2,3181,492

src/12-May-2024-6,9245,695

test/12-May-2024-9275

BUILD.gnD12-May-20242.6 KiB8882

CMakeLists.txtD12-May-20241.6 KiB3833

LICENSED12-May-20249.9 KiB177150

OAT.xmlD12-May-20241.8 KiB4021

README.mdD12-May-20241 KiB5134

README_zh.mdD12-May-20241 KiB5034

bundle.jsonD12-May-2024812 3433

win32.cmakeD12-May-2024409 119

README.md

1# OpenHarmony resource compile tool
2
3## Description
4resource tool is used in computer.In OpenHarmony SDK toolchain.Provide to IDE.Support Windows, Linux, MacOS platform.
5
6## Directory Structure
7
8```
9/developtools
10|----global_resource_tool
11|    |----include
12|    |----src
13|    |----test
14|    |----build dependence third patry lib make script
15|    |----CMakeLists.txt
16|    |----BUILD.gn
17|    |----win32.cmake Windows cross compile script
18```
19
20## Instructions
21
22### SDK Build
23
24[SDK build refer](https://gitee.com/openharmony/build/blob/master/README_zh.md)
25
26### Test
27
28In PC, run `python test.py ./restool ./out`
29
30### Help
31
32resource tool usually integrate to IDE, OpenHarmony compile system.
33
34resource tool command e.g:
35
36-v version
37-i input resource path
38-o output resource path
39-r resource ID header file path
40-p package name
41
42`./restool -i main -o out -r out/ResourceTable.h -p ohos.demo`
43
44##  Related to the storehouse
45
46third_party_libxml2
47third_party_jsoncpp
48third_party_sqlite
49third_party_bounds_checking_function
50
51

README_zh.md

1# OpenHarmony资源编译工具
2
3## 介绍
4资源编译工具属于PC端工具,在OpenHarmony SDK中toolchain目录下,提供给IDE使用,支持Windows, Linux, MacOS平台。
5
6## 目录
7
8```
9/developtools
10|----global_resource_tool
11|    |----include
12|    |----src
13|    |----test
14|    |----build 依赖三方库编译脚本
15|    |----BUILD.gn
16|    |----CMakeLists.txt
17|    |----win32.cmake Windows交叉编译脚本
18```
19
20## 使用说明
21
22### SDK编译命令
23
24[SDK编译命令参考](https://gitee.com/openharmony/build/blob/master/README_zh.md)
25
26### 测试用例
27
28PC 上运行 `python test.py ./restool  ./out`
29
30### 命令帮助
31
32本工具由IDE和OpenHarmony编译系统集成调用。
33
34支持的命令行参数,例如:
35
36-v 显示工具版本号
37-i 资源输入目录
38-o 资源输出目录
39-r 资源ID头文件
40-p 应用包名
41
42`./restool -i main -o out -r out/ResourceTable.h -p ohos.demo`
43
44## 相关仓
45
46third_party_libxml2
47third_party_jsoncpp
48third_party_sqlite
49third_party_bounds_checking_function
50