User forums > Using Code::Blocks

Is there a script to generate automatically all the *.cbp project files?

(1/2) > >>

Pierre8r:
Hello,

I work with Code::Blocks 17.12, under Windows 10.
I downloaded examples of C ++ programs.
These examples are in the form of a directory hierarchy.
Is there a script to generate automatically all the *.cbp project files?

Thank you,
Pierre8r

oBFusCATed:
No, but probably you could write one using the integrated squirrel scripting language or try and tell us what is missing from the scripting engine.
Or you could just use "add files recursively..." to already existing project.

Pierre8r:
Thanks oBFusCATed.
Can we generate a cbp file with the --build parameter?
if yes, what do you think is the best idea, use the --build parameter recursively, or copy, modify and rename a cbp file template?

oBFusCATed:
You cannot generate cbp files using the --build parameter of codeblocks. This parameter is used when you want to build existing cbp files on the command line without starting the ui.

BlueHazzard:
Can you explain more what you would like to do?
Create a project for every c file in the folder?
Create a exe for every c file in the project, but only one project file?

Navigation

[0] Message Index

[#] Next page

Go to full version