• 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
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