Author Topic: Build Codeblocks with CodeBlocks.cbp  (Read 5381 times)

mariocup

  • Guest
Build Codeblocks with CodeBlocks.cbp
« on: August 22, 2007, 02:42:31 pm »
Hi,

I build codeblocks under windows and linux using the CodeBlocks*.cbp files. I think the corresponding project files (also the contrib) should use the project file entry for windows
<Option platforms="Windows;" />
and under linux
<Option platforms="Unix;" />

so the user will get and info
"Code::Blocks" does not support the current platform. Skipping...

if he tries to build codeblocks with a wrong project for his platform.


Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Build Codeblocks with CodeBlocks.cbp
« Reply #1 on: August 22, 2007, 02:54:35 pm »
"Code::Blocks" does not support the current platform. Skipping...
Is that the error message that is shown? If so, it must be changed.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mariocup

  • Guest
Re: Build Codeblocks with CodeBlocks.cbp
« Reply #2 on: August 22, 2007, 03:14:42 pm »
Hi thomas,

if a codeblocks project does not have a option platforms entry, it will be set automatically to All platforms.

If you build a window project Codeblocks.cbp under linux you can start a build of the project and get different build errors.

So I suggest to add this entry, so the user won't be able to start a build of the project under a wrong platform and gets the info at the message console

"Code::Blocks" does not support the current platform. Skipping...



Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Build Codeblocks with CodeBlocks.cbp
« Reply #3 on: August 22, 2007, 06:34:17 pm »
Quote
if a codeblocks project does not have a option platforms entry, it will be set automatically to All platforms.
Fully agree on this one. That could be improved.


Quote
"Code::Blocks" does not support the current platform. Skipping...
It should be something less frightful, though :)
Maybe "This project is not compatible with the current platform" or better yet, "This project was created on a different platform, it might not be compatible".

"Code::Blocks does not support the current platform" is a bummer  8)
Don't want people to stop using Code::Blocks after they opened a wrong project... :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."