Native plug-ins for OpenHarmony
Create a native plug-in for OpenHarmony
Introducing native plug-ins for OpenHarmony
You can use native plug-ins in OpenHarmony applications. There are different types of native plug-in, and the project’s scripting backend determines which plug-in types Tuanjie supports. The possible plug-in types are:
-
Shared library: Plug-ins packaged in a shared library (
.so).
-
Static library: Plug-ins packaged in a static library (
.a).
-
C/C++ source files: C/C++ source files that Tuanjie compiles along with IL2CPP generated files. This includes all C/C++ source files with extensions
.c, .cc, .cpp and .h.
Scripting backend compatibility
The following table shows which scripting backends support the different types of native plug-ins.
| Scripting backend |
Shared library |
Static library |
C/C++ source files |
| IL2CPP |
Yes |
Yes |
Yes |
Other resource
Native plug-ins for OpenHarmony
Create a native plug-in for OpenHarmony