Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: JNo on November 19, 2019, 08:27:38 am

Title: Commands generation with CodeBlocks
Post by: JNo on November 19, 2019, 08:27:38 am
Hello,

I want to generate all commands associated to a Rebuild command in bat file.

In fact, CodeBlocks is usefull to develop the software, but when I want to generate a release of my software I must be able to regenerate the identical software without CodeBlocks.

How to do that ?

Thanks for your help
Title: Re: Commands generation with CodeBlocks
Post by: BlueHazzard on November 19, 2019, 02:16:55 pm
Quote
regenerate the identical software without CodeBlocks.
why?

There is a makefile generator plugin out there that generates a makefile from a codeblocks project....
Title: Re: Commands generation with CodeBlocks
Post by: JNo on November 19, 2019, 03:34:33 pm
In fact I don't found this code blocks plugin just a cbp2make utility but I don't succeed to generate make file because  it don't detect my target configuration:

Warning: toolchain 'comp_perso' for target 'default' is not defined.
Title: Re: Commands generation with CodeBlocks
Post by: BlueHazzard on November 19, 2019, 03:42:30 pm
Can you give a minimal project to reproduce this?
Title: Re: Commands generation with CodeBlocks
Post by: JNo on November 27, 2019, 04:53:24 pm
In fact I found an interesting feature save build log to html file when build is finished.

But this output includes all commands and all commands output.
I need to generate a final script (*.bat) with all commands (compil / link and other if needed).

Why ? Because :
Title: Re: Commands generation with CodeBlocks
Post by: BlueHazzard on November 28, 2019, 09:51:23 am
I was also thinking about generating a compiler that puts out only commands.
I do not know if this is possible with the current plugin architekture. It would also be a nice to have for examplet to generate ninja scripts...

We use virtual boxes in our company to make things "programmable for ever". One of this box is complete with all it is needed to develop this system (compiler, IDE, libraries, usb driver ecc) This will guarantee that the embedded system can still be programmed in 10 years, also, if the main OS does not support the drivers anymore, or can not be found ecc...
Title: Re: Commands generation with CodeBlocks
Post by: oBFusCATed on November 30, 2019, 10:06:28 am
Why ? Because :
  • I need to demonstares how to build the embedded software
  • If in 20 years Codeblocks is dead or not compatible with today version then we can continue to develop
  • It is important to be independent of IDE for building software (SQA Requirement)
Switch to cmake... it is the most IDE independent solution I know of which supports Code::Blocks and many other IDEs. Meson looks like a good alternative, but I've not tried it and there is no C::B support for it.