Package openframeworks as a library

I want to package openframeworks as a library for my existing projects. Use it as a jar or aar package in my project. Does anyone know how to do it?
@arturo