Using MavSDK as c++ library instead of backend service

Hi, I’m beginner here with MavSDK. I’ve play around with mavSDK server and be able to run mavSDK-client and talk to mavsdk-server. However, in my use case, I would prefer I can’ use mavsdk without launching a separate server.

Is it possible to include c++ as a library, maybe potentially create a JNI to interact with it? Is there any obvious reason that’s prevent me from doing it? Is there any example that I can follow?

Thanks for answering my question.

Regards,
Audrey