Version: 1.3
语言 : 中文
OpenHarmony App Module
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:

  1. 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.
  2. Tuanjie adds and updates values inside Hvigor templates and module files based on the Tuanjie project’s Player Settings and Build Settings.
  3. 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.
  4. Tuanjie calls OnPostGenerateOpenHarmonyProject for all IPostGenerateOpenHarmonyProject interfaces. You can use this callback to modify or move files before Hvigor builds the application.
  5. 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.

OpenHarmony App Module
Getting started with OpenHarmony