Can I integrate extension in LibreOffice build?

I am newbie in building a LibreOffice.

  1. Can I integrate extension/ plugin in the build of LibreOffice?
  2. If yes How to integrate extension in LibreOffice build. So that a single installer of Libre Office will be available for user that will install LibreOffice along with the extension.
  3. Kindly indicate Procedure to integrate extension while compilation of LibreOffice .
  4. Is there any flag to be set for this while compilation/building the LibO?
  5. only .otx extension can be supported?
  6. Further I would like to have auto-update feature for that plug-in or extension.
    Kindly guide me in preparing requirement/specification list for integration of plugin/ extension into LibreOffice build.

Thank you !!