Getting started with OpenHarmony
How Tuanjie builds OpenHarmony applications
Tuanjie uses Hvigor to build OpenHarmony applications so it is useful to understand the build process and how Tuanjie interacts with Hvigor. Hvigor lets you use Player Settings and other Tuanjie windows to configure most aspects of the final build, however for more control, you must overwrite module and hvigor files, or export your project and edit it in DevEco Studio.
The build process
To build OpenHarmony applications:
- Tuanjie collects project resources, code libraries, plug-ins, Hvigor templates, and module templates from your Tuanjie project and uses them to create a valid Hvigor project.
- Tuanjie adds and updates values inside Hvigor templates and module files based on the Tuanjie project’s Player Settings and Build Settings.
- If you chose to export the project and not build it, and use the IL2CPP scripting backend, Tuanjie places C++ source files produced from your C# scripts into the Hvigor project. Otherwise, if you chose to build the project, Tuanjie places the
libil2cpp.so
library into the Hvigor project.
- Tuanjie calls OnPostGenerateOpenHarmonyProject for all IPostGenerateOpenHarmonyProject interfaces. You can use this callback to modify or move files before Hvigor builds the application.
- Tuanjie runs Hvigor to build the application from the Hvigor project. Hvigor merges the Tuanjie Library Module, Tuanjie Launcher Module, and plug-in modules into one OpenHarmony App Module file.
Getting started with OpenHarmony