mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-18 17:24:42 -04:00
3b0d7d19da8def9675def881a813dcf32ef0505e
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
| |----third_party dependence third patry lib make script
| |----CMakeLists.txt
| |----win32.cmake windows cross compile script
Instructions
Compile
- gcc/g++ version 9.3.0 required
- cmake version mini 3.15 required
- mkdir build
- cd build
- cmake ../restool_standard
- make
- compile result restool binary
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
Description
Languages
C++
99.4%
CMake
0.4%
Python
0.2%