User forums > Using Code::Blocks

Generate .h/.cpp by scripting using advanced property

<< < (2/2)

Freem:
15 years... well I don't think I can help... only a bit more than a year in a professional environment. And it was a year  alone, using all knowledge I'd learned by myself, not really sufficient to make a project valid from A to Z...

I know that the highest priority is 100, but without looking sources.
But I don't understand what you mean by "but it can be add only with scripting."? Do you mean that you can't change priority by script?


--- Quote ---I would to call command line that run squirrel scripting, it will be fantastic but I think it is not possible.
--- End quote ---
There is nothing to allow you to access toolchains executables?
I remember something else, about C::B. I'd read somewhere (in this forum I guess, or the wiki) that it generate a custom makefile, then execute is (well, make it, to be more precise) and last, remove it. This read was saying it was possible to avoid the last step or removing... I can't say more, and I'm not sure about that. I'm  not a C::B'sguru...

As you see, I can just ask things... with the hope my question will trigger some idea...

Feneck91:

--- Quote from: Freem on August 02, 2011, 10:04:59 pm ---15 years... well I don't think I can help... only a bit more than a year in a professional environment. And it was a year  alone, using all knowledge I'd learned by myself, not really sufficient to make a project valid from A to Z...

I know that the highest priority is 100, but without looking sources.
But I don't understand what you mean by "but it can be add only with scripting."? Do you mean that you can't change priority by script?

--- End quote ---
I see in code codeblocks\src\include\cbproject.h
Function: ProjectFile* AddFile(AddFile(int targetIndex, const wxString& filename, bool compile = true, bool link = true, unsigned short int weight = 50);

--- Code: ---        // AddFile(targetIndex,filename,compile, link,weight): Add a file to the project.
        // @param targetIndex The index of the build target to add this file to.
        // @param filename The file's filename. This *must* be a filename relative to the project's path.
        // @param compile If true this file is compiled when building the project.
        // @param link If true this file is linked when building the project.
        // @param weight A value between zero and 100 (defaults to 50). Smaller weight, makes the file compile earlier than those with larger weight.
        // @return The newly added file or NULL if something went wrong.

--- End code ---
I never seen in File property / Build : priority weight !! Yes, it is existing...


--- Quote from: Freem on August 02, 2011, 10:04:59 pm ---There is nothing to allow you to access toolchains executables?
I remember something else, about C::B. I'd read somewhere (in this forum I guess, or the wiki) that it generate a custom makefile, then execute is (well, make it, to be more precise) and last, remove it. This read was saying it was possible to avoid the last step or removing... I can't say more, and I'm not sure about that. I'm  not a C::B'sguru...
As you see, I can just ask things... with the hope my question will trigger some idea...
--- End quote ---
Toolchains executables are use for compiler.... I want to script this work, It should be integrated into Code::Blocks.
Or may be modifying source code of Code::Blocks, I have already do this by added part of Alatar stacked base tab switching (mouse limitation, Code::Blocks properties and add check in environment settings see here)

I post here because I want a Code::Blocks guru's HELP ME !!  :D

Navigation

[0] Message Index

[*] Previous page

Go to full version