You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very interested in having a project A be able to specify information that project B can use to compile and link against project A, without having to repeat that information all over the place.
There have been discussions on forums new and old about this in the past; search for "usages". It would be great to pull those together here for reference if anyone gets a chance. In the meantime, feel free to add your approaches below.
@starkos: We use functions here. For specifying how to compile and link against a library:
-- How to declare itfunctionsomeLibrary(options)
defines { ... }
links { ... }
options=optionsor {}
ifoptions.someFlagthendefines { ... }
endend-- How to use itproject"someOtherProject"kind"ConsoleApp"someLibrary { someFlag="true" }