Author Topic: Commands generation with CodeBlocks  (Read 354 times)

Offline JNo

  • Single posting newcomer
  • *
  • Posts: 5
Commands generation with CodeBlocks
« 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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2566
Re: Commands generation with CodeBlocks
« Reply #1 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....

Offline JNo

  • Single posting newcomer
  • *
  • Posts: 5
Re: Commands generation with CodeBlocks
« Reply #2 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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2566
Re: Commands generation with CodeBlocks
« Reply #3 on: November 19, 2019, 03:42:30 pm »
Can you give a minimal project to reproduce this?

Offline JNo

  • Single posting newcomer
  • *
  • Posts: 5
Re: Commands generation with CodeBlocks
« Reply #4 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 :
  • 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)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2566
Re: Commands generation with CodeBlocks
« Reply #5 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...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12124
    • Travis build status
Re: Commands generation with CodeBlocks
« Reply #6 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]