Kode / kmake

Meta build system
Other
12 stars 14 forks source link

Feature Request: Enable passing parameters to `addProject` calls #28

Closed tcdude closed 2 years ago

tcdude commented 2 years ago

Please extend the addProject method to accept optional parameter(s) that can be used in the kfile.js of the added project.

This would allow the user to handle setup of a project depending on whether arguments were passed or not.

In my specific use case it would serve to avoid adding the same project multiple times due to nested dependencies when the project is being used as a sub-project, compared to when it is used as standalone project.

RobDangerous commented 2 years ago

Oh, that already exists. addProject('whereever', {a: 1, b: 2}) should get you Options.a and Options.b in the subproject.