cancel
Showing results for 
Search instead for 
Did you mean: 

How to make all projects in a solution built one after one automatically ? how to configurate the STM32cubeIDE?

slu.7
Associate II

we set up three projects for one solution . these projects share the same driver and third-party code. what we want to ​do is that ,when we build one project ,the other projects would be built one after one automatically after the first one . how to configurate the STM32cubeIDE? or any script ?

1 ACCEPTED SOLUTION

Accepted Solutions
mattias norlander
ST Employee

What Pavel suggests can work. It will build the active build configuration for all projects that are currently "open" in the workspace.

Another approach if you have more than the three projects in the workspace. But want to make sure that ONLY these three projects are built in a well-defined order is to setup dependencies between the projects.

Select the project which is built last in your chain. Properties > C/C++ General > Paths and Symbols > References.

Here you can select which project and which build configuration depend on and use "Move Up/Down" to select order.

That said, Pavels solution may be simpler assuming your workspace contains only those three projects or any other projects are "closed".

View solution in original post

3 REPLIES 3
Pavel A.
Evangelist III

Window -> Preferences -> General -> Workspace -> Build order

mattias norlander
ST Employee

What Pavel suggests can work. It will build the active build configuration for all projects that are currently "open" in the workspace.

Another approach if you have more than the three projects in the workspace. But want to make sure that ONLY these three projects are built in a well-defined order is to setup dependencies between the projects.

Select the project which is built last in your chain. Properties > C/C++ General > Paths and Symbols > References.

Here you can select which project and which build configuration depend on and use "Move Up/Down" to select order.

That said, Pavels solution may be simpler assuming your workspace contains only those three projects or any other projects are "closed".

slu.7
Associate II

thanks for your help