CGKit Plugin sample code show development of plugin. It provides many sample programs for your reference or usage.
The following describes heads files of sample code.
SDK Archive(SDK DOWNLOAD):
[cgsdk-plugin-base SDK] in cgsdk-plugin.zip/cgsdk-plugin-base.zip/cgsdk-plugin-base/
File | Description |
---|---|
Include/Core: | Head file of instantiate apis. |
Include/Math: | Head file of math apis. |
Include/nlohmann: | Head file of json apis. |
Include/PluginManager: | Head file of PluginManager apis. |
Include/Utils: | Head file of Param apis. |
libs/arm64-v8a/libPluginInterface.so: | 64 bit |
libs/armeabi-v7a/libPluginInterface.so: | 32 bit |
-
Add cgsdk-plugin-base SDK to to your own project(PluginSdk).
(1) Add include directory in SDK to your own project(PluginSdk/Include).
(2) Addlibs/arm64-v8a/libPluginInterface.so
in SDK to your own project(PluginSdk/libs/arm64-v8a).
(3) Addlibs/armeabi-v7a/libPluginInterface.so
in SDK to your own project(PluginSdk/libs/armeabi-v7a). -
Check whether the NDK development environment is ready, recommand version r21 or higher.
-
Configure the build.bat, set your own NDK_TOOLS path.
-
Execute build.bat to generate the plugin.
- Devices with Android 8.0 or later.
- Devices with EMUI Vulkan1.0 or Vulkan1.1.
The sample of CGKit Plugin has obtained the Apache 2.0 license.