-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different configurations of different build-types to support in multproject csolution #355
Comments
@tcsunhao this is a good use case we should further think about. At this point e.g. the defines can be set on a cproject level for the whole project but not for a specific build- or target-type. This can only be done for individual components, groups or files. Good catch. |
@tcsunhao I guess a way to do would be (not supported right now) if Such said I'm not fully comfortable with.
To me your highlight is not a corner case but a common case ... today nothing sounds impossible but requires to get proper understanding of under the hood mechanism. I'm asking myself a bit a bout UX ([projmgr] Do we foresee GUI based proposal on YML specification integration ? . |
According to yesterday meeting, setups can be a way to support such case that projects inside one solution don't share the same configuration(Marco, compiler flags)
In hello_world_cm0plus yml
This is the only way which I think which can work for NXP multiproject example case based on existing Open-CMSIS-Pack mechanism.
|
@tcsunhao thanks for raising it. I think we should clearify that setups are additive. This simplifies it to:
However in principal your solution works too. |
Thank you @ReinhardKeil for pointing duplication linker data. I will use setup for such cases then until we have a better one. |
@tcsunhao, I cannot see how the for-project construct would solve your problem. If I understand your request correctly you want to be able to define a named "group" for a set of contexts. |
@jkrech yes you are right, just "for-project" cannot meet my requirement. What I need, as you tell, it is the relationship between build-types of 2 projects(under one solution). |
@jkrech & @tcsunhao please comment if off track myself. I may have same concerns as you @tcsunhao.
If self contain I'm thinking we have to find a way to host |
could we continue discussing this under #450 |
Closing this issue in favor of #450 |
For csolution yml with multi projects, build-types are shared and can only be shared.
NXP data for multiproject example, each project has its own data suit copy, to map into csolution/cproject, then we need merge hello_world_cm4 and hello_world_cm0plus data into one copy. This requests 2 projects data should be mergeable which means they shouldn't have its own data related to build-types.
If one project has its individual different build-type settings which the other project doesn't have. Then existing csolution yml cannot specify it.
For example, project1 and project2 are in one csolution.yml, project1 needs to include bin of project2. project1 depends on a special component, for its configuration, XXDEBUG is needed under "Debug" build-target, XXNDEBUG is needed under "Release" build-target, there is no such XXDEBUG/XXNDEBUG macro definition needed in project2. It looks like there is no good way to support such case in existing csolution/cproject mechanism. If you record XXDEBUG under "Debug" build-type, then both project1 and project2 will get it.
This is kind of corner case, but it may happen.
The text was updated successfully, but these errors were encountered: