Target Selection

Discussion about CodeLite development process and patches
smartmobili
CodeLite Enthusiast
Posts: 30
Joined: Wed May 20, 2009 1:54 am
Contact:

Target Selection

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Target Selection

Post 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
Make sure you have read the HOW TO POST thread
smartmobili
CodeLite Enthusiast
Posts: 30
Joined: Wed May 20, 2009 1:54 am
Contact:

Re: Target Selection

Post 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, ...
smartmobili
CodeLite Enthusiast
Posts: 30
Joined: Wed May 20, 2009 1:54 am
Contact:

Re: Target Selection

Post 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.
Post Reply