Skip to content

Latest commit

 

History

History

huawei-cg-plugin-cpp-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CGKit Plugin sample

Table of Contents

Introduction

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

Getting Started

  1. Add cgsdk-plugin-base SDK to to your own project(PluginSdk).
    (1) Add include directory in SDK to your own project(PluginSdk/Include).
    (2) Add libs/arm64-v8a/libPluginInterface.so in SDK to your own project(PluginSdk/libs/arm64-v8a).
    (3) Add libs/armeabi-v7a/libPluginInterface.so in SDK to your own project(PluginSdk/libs/armeabi-v7a).

  2. Check whether the NDK development environment is ready, recommand version r21 or higher.

  3. Configure the build.bat, set your own NDK_TOOLS path.

  4. Execute build.bat to generate the plugin.

Supported Environments

  1. Devices with Android 8.0 or later.
  2. Devices with EMUI Vulkan1.0 or Vulkan1.1.

License

The sample of CGKit Plugin has obtained the Apache 2.0 license.