[Native] Share compilation flags across independent projects

I am working on a project which source base is located in different SCM repositories, across which I want to share the compilation flags for native compilation by defining them in a kind of config. Can anyone shine some light on what is the best way to share compilation flags across independent projects within Gradle? Thanks