OpenHarmony resource compile tool
Description
restool(resource tool) is used in computer.In OpenHarmony SDK toolchain.When IDE pack OpenHarmony application, application resources will be compiled by restool, then the result compiling will be passed to pack tool.Support window,linux, macos platform.
Directory Structure
/developtools
|----global_resource_tool
| |----include
| |----src
| |----test
| |----build dependence third patry lib make script
| |----CMakeLists.txt
| |----BUILD.gn
| |----win32.cmake windows cross compile script
Instructions
Quickly Build
- ubuntu 18 preinstalled gcc/g++
- cmake version mini 3.15 required
- mkdir build
- cd build
- cmake ../global_resource_tool
- make
- compile result restool binary
SDK Build
- ./build.sh --product-name ohos-sdk
SDK build refer to 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
Help
restool usually integrate to IDE, OpenHarmony compile system.
run ./restool, show command:
-v version
-i input resource path
-o output resource path
-r resource ID header file path
-p package name
./restool -i main -o out -r out/ResourceTable.h -p ohos.demo
using IDE(recommonded)
Related to the storehouse
third_party_libxml2
third_party_jsoncpp
third_party_sqlite
third_party_bounds_checking_function