esrlabs / bake

C++ build tool
http://esrlabs.github.io/bake
Other
26 stars 11 forks source link

Add the Possibility to inherit configurations from an Adapt.meta file #167

Closed kafteji closed 5 years ago

kafteji commented 6 years ago

If we want to build unit tests for coverage for examples. we need to create another coverage/Adapt.meta file which contains the specific compile flags and use it along with the base gcc/Adapt.meta.

The bake command would be:

bake UnitTestBase --adapt coverage --adapt gcc

But it would be better to just use a coverage/Adapt.meta directly which already inherits configurations from gcc/Adapt.meta. Then, just execute:

bake UnitTestBase --adapt coverage

Thanks

aschaal commented 5 years ago

Inheritance over files is complex (it's also not possible for Project.meta). This would mean a lot of effort.

What you can do to make it a little bit easier:

Btw: usually you have two separate Adapt.meta if you want to use them independently, e.g. coverage with another compiler or gcc without coverage etc.

--> I will close this ticket, I hope this is okay for you.