Creating a native component

Just to clarify: I can do it from C++ code, what I need is to wrap that C++ code as a Defold component.