Building Matter SDK using GN on Nordic Devices

Hello, I am building a Matter application (based on the lightning app) for  the nRF7002-DK, and I would like to use part of the Matter SDK that is not included in the example application. The module that I want to use has many build dependencies which are described in .gn files (like most of the Matter SDK). However, I noticed that the Nordic examples don't use the Matter build system but instead west and cmake.  

If I understood correctly, at some point Cmake is used as a wrapper for GN to build the Matter SDK but I'm unable to figure out how to add further .gn files. Does anyone have advice as to how to manage this issue? 

Thanks!

Related