User forums > Using Code::Blocks

Sharing compiler search directories between 3 projects

<< < (2/2)

Chun Jiu:

--- Quote from: MortenMacFly on April 21, 2015, 09:42:06 pm ---Project files are not meant to be edited by hand. If you do so, very bad things including crashes can happen. Don't do this. For all operations we have ui, scripting or similar support trough plugins.

To mass manipulate project settings you could also use the project options manipulator plugin.

--- End quote ---

Sorry, I should not be recommend others do the same.

Yes, the project files easily damaged, C::B will collapse ......
But there is no other method is faster than it.
Copy the backup of *.cbp files before be edit by hand.

MortenMacFly:

--- Quote from: 16BitBilly on April 21, 2015, 10:33:09 pm ---Thanks for the post could you tell me a little  about the project options manipulator plugin.
Any links ?

--- End quote ---
Its distributed with recent nightlies. Just run it through the plugins menu.

teto:
I've never used "profiles" but that may come in handy too (though MortenMacFly's solution looks the best)

MortenMacFly:

--- Quote from: teto on April 22, 2015, 03:50:52 pm ---I've never used "profiles" but that may come in handy too (though MortenMacFly's solution looks the best)

--- End quote ---
Indeed, profiles are another option: This would mean you don't make copies of compilers, but just use a different profile for a different set of projects.

Profiles are easy to use:
- Just make a link to the C::B executable and add a parameter "-p [profile_name]" (w/o quotation marks and brackets)
- This creates a (new) profile file named "profile_name.conf"

The drawback is, that all settings are copied and become independent, so for example editor and colour settings as well.
If you want to re-use your current settings, just copy the default profile file (default.conf) to [profile_name].conf before you run C::B with the "-p" parameter.

More information can be found in the C::B manual.

More information about command line options available are with the help (/?) parameter and (again) in the manual.


--- Quote from: Chun Jiu on April 22, 2015, 05:40:24 am ---Yes, the project files easily damaged, C::B will collapse ......

--- End quote ---
Well again: Don't do this and C::B won't collapse.


--- Quote from: Chun Jiu on April 22, 2015, 05:40:24 am ---But there is no other method is faster than it.

--- End quote ---
Sorry, but I strongly disagree. I think with the options and plugin mentioned you can very fast adopt / harmonise multiple projects at once... and we did't speak about scripting so far...

Navigation

[0] Message Index

[*] Previous page

Go to full version