Skip to contentSkip to conversation

importing variable into meson

DISCUSSION Zane Shelley 1 participant 1 message Jun 5, 2019

lore
Share & tools
lore
#0 lore raw

I have a piece of code that will be included in multiple build environments: GNU make, ODE make (POWER FSP specific), and whatever we decide to use for OpenBMC. Previously, we have been able to manage which source files to build with a .mk file that simply has variables defined like:

src_files += source1.cpp
src_files += source2.cpp
src_files += source3.cpp
...

Then all we have to do is include those files in the makefiles. I am trying to find if tools like meson, or maybe cmake, can include the same files. Thoughts?

Signature · 1 line
- Zane