Page 1 of 1

Target Selection

Posted: Tue Sep 29, 2009 1:01 am
by smartmobili
Hi,

CodeLite is the best iDE ever BUT there is always something preventing me to use it , the lack of target selection.
I mean recently I wanted to contribute to a project implementing an open implementation of mac cocoa framework
and they are using XCODE.
I wanted to stay on linux and compile for windows and linux platforms but I need a combobox to switch between targets !!!!!

Please implement this feature

Thanks

Re: Target Selection

Posted: Tue Sep 29, 2009 1:22 am
by eranif
Whats wrong with using the build configurations?
You can set a different toolchains from the compiler settings (settings -> build settings)
Then simply define new build configuration ("Target")

Codelite has a more complex target system:

- there is the workspace configuration which is the 'high level configuration'
- and for each project u define its targets ("configurations")
- after you define the configuration for each project, you link them together by opening the configuration manager, and selecting which project target is built for the specified workspace configuration.

For example:

Project A has 3 configurations: Debug, Release and Debug_Dll
Project B has 2 configurations: Debug, Release

Now, after you set up each of the configuration with their toolchain etc, you go the configuration manager (Build -> Configuration Manager)
You can create new workspace configuration: e.g. Wsp_1
and then choose that for Wsp_1 you will build Project A Debug and Project B Debug
for Wsp_2, you will build Debug and Release

You can set and permutation you like

Searching the documents section of codelite, will give u this:
http://codelite.org/LiteEditor/ConfigurationManager

I am pretty sure that this is what you are looking for - I am building codelite with codelite for Mac, Linux and Windows ...

Eran

Re: Target Selection

Posted: Wed Sep 30, 2009 1:39 pm
by smartmobili
eranif wrote:Whats wrong with using the build configurations?
You can set a different toolchains from the compiler settings (settings -> build settings)
Then simply define new build configuration ("Target")

Codelite has a more complex target system:

- there is the workspace configuration which is the 'high level configuration'
- and for each project u define its targets ("configurations")
- after you define the configuration for each project, you link them together by opening the configuration manager, and selecting which project target is built for the specified workspace configuration.

For example:

Project A has 3 configurations: Debug, Release and Debug_Dll
Project B has 2 configurations: Debug, Release

Now, after you set up each of the configuration with their toolchain etc, you go the configuration manager (Build -> Configuration Manager)
You can create new workspace configuration: e.g. Wsp_1
and then choose that for Wsp_1 you will build Project A Debug and Project B Debug
for Wsp_2, you will build Debug and Release

You can set and permutation you like

Searching the documents section of codelite, will give u this:
http://codelite.org/LiteEditor/ConfigurationManager

I am pretty sure that this is what you are looking for - I am building codelite with codelite for Mac, Linux and Windows ...

Eran
I need to test what you explained but what I would like is something like Visual where you can switch from win32, Windows Mobile, ...

Re: Target Selection

Posted: Wed Sep 30, 2009 1:45 pm
by smartmobili
smartmobili wrote:
eranif wrote:Whats wrong with using the build configurations?
You can set a different toolchains from the compiler settings (settings -> build settings)
Then simply define new build configuration ("Target")

Codelite has a more complex target system:

- there is the workspace configuration which is the 'high level configuration'
- and for each project u define its targets ("configurations")
- after you define the configuration for each project, you link them together by opening the configuration manager, and selecting which project target is built for the specified workspace configuration.

For example:

Project A has 3 configurations: Debug, Release and Debug_Dll
Project B has 2 configurations: Debug, Release

Now, after you set up each of the configuration with their toolchain etc, you go the configuration manager (Build -> Configuration Manager)
You can create new workspace configuration: e.g. Wsp_1
and then choose that for Wsp_1 you will build Project A Debug and Project B Debug
for Wsp_2, you will build Debug and Release

You can set and permutation you like

Searching the documents section of codelite, will give u this:
http://codelite.org/LiteEditor/ConfigurationManager

I am pretty sure that this is what you are looking for - I am building codelite with codelite for Mac, Linux and Windows ...

Eran
I need to test what you explained but what I would like is something like Visual where you can switch from win32, Windows Mobile, ...
Ok I think now I understand what you mean but I don't find it logical because it means for instance that instead of creating a Debug or Release
I will have to set a Debug_x86 Debug_arm Release_x86 Release_arm ...
It's like mixing build configuration (Debug or Release) with target (cpu/toolchains).
Anyway thanks for answering I should be able to achieve what I want.