Page 1 of 1

Build Order - Multiple projects

Posted: Sun Sep 19, 2010 1:21 am
by evstevemd
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?

Re: Build Order - Multiple projects

Posted: Sun Sep 19, 2010 11:19 am
by jfouche
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.

Re: Build Order - Multiple projects

Posted: Sun Sep 19, 2010 11:20 am
by eranif
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

Re: Build Order - Multiple projects

Posted: Sun Sep 19, 2010 11:23 am
by jfouche
I got you ;)

Re: Build Order - Multiple projects

Posted: Mon Sep 20, 2010 12:30 am
by evstevemd
eranif 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
That was all I needed :mrgreen:
Thanks Eran and Jeremie