• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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### SDK Build
23
24[SDK build refer](https://gitee.com/openharmony/build/blob/master/README.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-f if output path exists,force override it
42-m module name, can add more, split by ','(like entry1,entry2,...)
43-j config.json path
44-e start id mask, e.g 0x01000000, in [0x01000000, 0x06FFFFFF),[0x08000000, 0x41FFFFFF)
45
46```
47entry Directory Structure
48|    |----resource
49|    |----config.json or 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##  Related to the storehouse
54
55**global_resource_tool**
56
57[third_party_libxml2](https://gitee.com/openharmony/third_party_libxml2/README.md)
58
59[third_party_jsoncpp](https://gitee.com/openharmony/third_party_jsoncpp/README.md)
60
61[third_party_sqlite](https://gitee.com/openharmony/third_party_sqlite/README.md)
62
63[third_party_bounds_checking_function](https://gitee.com/openharmony/third_party_bounds_checking_function/README.md)
64
65