Create a library linking legato APIs

Please let me know how to create a library in legato which can be used to link while building applications.

You can use component shared with different apps.