• Home
Name
Date
Size
#Lines
LOC

..--

build/12-May-2024-467439

include/12-May-2024-2,5351,658

src/12-May-2024-7,9546,567

test/12-May-2024-9275

BUILD.gnD12-May-20243.1 KiB10596

CMakeLists.txtD12-May-20241.6 KiB3833

LICENSED12-May-20249.9 KiB177150

OAT.xmlD12-May-20241.8 KiB4021

README.mdD12-May-20241.7 KiB6142

README_zh.mdD12-May-20241.8 KiB6444

bundle.jsonD12-May-2024838 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         #Header file
12|    |----src             #source code file
13|    |----test            #Test case
14|    |----build           #Depending on the third-party library compilation script
15|    |----BUILD.gn        #Compile script
16|    |----CMakeLists.txt  #CMake file
17|    |----win32.cmake     #Windows cross compilation script
18```
19
20## Instructions
21
22### Test
23
24In PC, run `python test.py ./restool ./out`
25
26### Help
27
28resource tool usually integrate to IDE, OpenHarmony compile system.
29
30resource tool command e.g:
31
32-v version
33-i input resource path
34-o output resource path
35-r resource ID header file path
36-p package name
37-f if output path exists,force override it
38-m module name, can add more, split by ','(like entry1,entry2,...)
39-j config.json path
40-e start id mask, e.g 0x01000000, in [0x01000000, 0x06FFFFFF),[0x08000000, 0x41FFFFFF)
41
42```
43entry Directory Structure
44|    |----resource
45|    |----config.json or module.json
46```
47`./restool -i entry1 -i entry2 -j xxx/module.json -p ohos.demo.xxx -o out -r out/ResourceTable.h `
48
49##  Related to the storehouse
50
51**global_resource_tool**
52
53[third_party_libxml2](https://gitee.com/openharmony/third_party_libxml2/blob/master/README.md)
54
55[third_party_jsoncpp](https://gitee.com/openharmony/third_party_jsoncpp/blob/master/README.md)
56
57[third_party_sqlite](https://gitee.com/openharmony/third_party_sqlite/blob/master/README.md)
58
59[third_party_bounds_checking_function](https://gitee.com/openharmony/third_party_bounds_checking_function/blob/master/README.en.md)
60
61

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  #CMake文件
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-f 如果输出目录中已经存在结果,强制覆盖
42-m 编译多hap包,输入多个hap包的编译结果路径,例如:entry1,entry2,..
43-j 编译多hap包+多har时,合并后config.json的文件路径
44-e Id的开始标记
45
46```
47entry目录结构
48|    |----resource
49|    |----config.json 或者 module.json 都兼容
50```
51`./restool -i entry1 -i entry2 -j xxx/module.json -p ohos.demo.xxx -o out -r out/ResourceTable.h `
52
53## 相关仓
54
55**global_resource_tool**
56
57[third_party_libxml2](https://gitee.com/openharmony/third_party_libxml2/blob/master/README.md)
58
59[third_party_jsoncpp](https://gitee.com/openharmony/third_party_jsoncpp/blob/master/README.md)
60
61[third_party_sqlite](https://gitee.com/openharmony/third_party_sqlite/blob/master/README.md)
62
63[third_party_bounds_checking_function](https://gitee.com/openharmony/third_party_bounds_checking_function/blob/master/README.md )
64