Custom build and dependancies

General questions regarding the usage of CodeLite
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Custom build and dependancies

Post by jfouche »

Hi

I'm using custom build and dependancies. I managed Build order, and selected the application project (the one which is at the top of the dependancies), and Build the project. It only build the selected project, without trying to build the other projects (which are well defined in the build order panel). It only call the custom build command for the selected project.

Is it the desired behavior, or is it a bug (i may fix) ?
Jérémie
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Custom build and dependancies

Post by eranif »

this is the desired behavior.
You can not set a build order for a custom build project - this problem comes from the internal implementation of the 'custom build':
In a standard project, codelite generates 2 makefiles:
One for the workspace and one for the project itself. The workspace makefile, simply calls the project(s) makefile(s) according to the build order.

When using a custom build, codelite does not generate any makefile, but simply executes the provided command.

To workaround it, you can define a project without any source files, and make this as the main build project - since this project is a standard project, it will have a build order

Eran
Make sure you have read the HOW TO POST thread
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Custom build and dependancies

Post by jfouche »

Done, and that is perfect : It works.
Thanks
Jérémie
Post Reply