Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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
-
regenerate the identical software without CodeBlocks.
why?
There is a makefile generator plugin out there that generates a makefile from a codeblocks project....
-
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.
-
Can you give a minimal project to reproduce this?
-
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)
-
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...
-
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.