I have multiple projects where there are libraries need to be built.
for example, I need to build SQLite3 library before application.
How do i arrange project build order in a workspace?
Build Order - Multiple projects
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Build Order - Multiple projects
CodeLite 15.x
CodeLite is awesome, I just Love it!
-
- CodeLite Guru
- Posts: 351
- Joined: Mon Oct 20, 2008 7:26 pm
- Genuine User: Yes
- IDE Question: C++
- Location: France
- Contact:
Re: Build Order - Multiple projects
Hi
If you right clic on a project, you will see a [Build order ...] menu, let's clic on it :
Let's suppose a workspace with folowing dependancies :
Application (need Lib_1 and Lib_2)
Lib_1 (need Common_lib)
Lib_2 (need Common_lib)
Common_lib
At the top, you have all you projects. Select the one which have dependencies : Application.
Next, select the configuration where the dependancy is available (that is to say that if you may do the following step for each configuration).
You will see Lib_1, Lib_2 and Common_lib. Check Lib_1 and Lib_2.
Then, switch the top combo on Lib_1, and check Common_lib.
Switch the top combo on Lib_2 and check Common_lib.
Here it is, the dependanies are well configured. Just a remainder : Don't forget to define the build order for each configuration.
If you right clic on a project, you will see a [Build order ...] menu, let's clic on it :
Let's suppose a workspace with folowing dependancies :
Application (need Lib_1 and Lib_2)
Lib_1 (need Common_lib)
Lib_2 (need Common_lib)
Common_lib
At the top, you have all you projects. Select the one which have dependencies : Application.
Next, select the configuration where the dependancy is available (that is to say that if you may do the following step for each configuration).
You will see Lib_1, Lib_2 and Common_lib. Check Lib_1 and Lib_2.
Then, switch the top combo on Lib_1, and check Common_lib.
Switch the top combo on Lib_2 and check Common_lib.
Here it is, the dependanies are well configured. Just a remainder : Don't forget to define the build order for each configuration.
Jérémie
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build Order - Multiple projects
The build order is provided per project.
Lets assume you have 3 projects:
wxSQLite3 - wxsqlite3 project, depends on sqlite3
sqlite3 - static library project
MyFrame - the application
the build order should be:
sqlite3 -> wxsqlite3 -> MyFrame
So, to achieve that, right click on MyFrame project and select 'Build Order...'
Note that the build order is per build configuration
Eran
Lets assume you have 3 projects:
wxSQLite3 - wxsqlite3 project, depends on sqlite3
sqlite3 - static library project
MyFrame - the application
the build order should be:
sqlite3 -> wxsqlite3 -> MyFrame
So, to achieve that, right click on MyFrame project and select 'Build Order...'
Note that the build order is per build configuration
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Guru
- Posts: 351
- Joined: Mon Oct 20, 2008 7:26 pm
- Genuine User: Yes
- IDE Question: C++
- Location: France
- Contact:
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Build Order - Multiple projects
That was all I needederanif wrote:The build order is provided per project.
Lets assume you have 3 projects:
wxSQLite3 - wxsqlite3 project, depends on sqlite3
sqlite3 - static library project
MyFrame - the application
the build order should be:
sqlite3 -> wxsqlite3 -> MyFrame
So, to achieve that, right click on MyFrame project and select 'Build Order...'
Note that the build order is per build configuration
Eran
Thanks Eran and Jeremie
CodeLite 15.x
CodeLite is awesome, I just Love it!