Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
New UI: Project Globs
BlueHazzard:
--- Code: ---I hope you haven't changed any scripting related code.
It will make the days of someone pretty funny if you did (the first pushing his stuff wins).
--- End code ---
Added one function... No big deal...
oBFusCATed:
Yes, no big deal if you're not the one fixing the conflicts. :)
All binding code is 100% rewritten in my version.
oBFusCATed:
BTW:
What is the sales pitch for these globs?
Why would you want to introduce such a complex system?
At work we've used them in cmake and they are a total disaster, so we're slowly replacing them with hard-coded list of files.
BlueHazzard:
The initial idea was (and still is if i find the time) that you can use generated projects, like from STCube (Microcontroller)
They generate a "generic" makefile you can import in eclipse and i have written a codeblocks import too, but in this file the source files are not listed, only a top level folder is listed. You have to add the whole folder, and every time you regenerate the code you would have to reimport the whole folder and remove the non existent files. Eclipse does this by default.
With this function this would happen automatically also in codeblocks.
PS. This was 3 years ago, i do not know if they have updated their project export file to the standard (https://www.keil.com/pack/doc/CMSIS/Build/html/element_cprj.html ) where each file is listed...
oBFusCATed:
--- Quote from: BlueHazzard on December 29, 2020, 01:58:10 pm ---The initial idea was (and still is if i find the time) that you can use generated projects, like from STCube (Microcontroller)
--- End quote ---
This is the job for the generator.
--- Quote from: BlueHazzard on December 29, 2020, 01:58:10 pm ---They generate a "generic" makefile you can import in eclipse and i have written a codeblocks import too, but in this file the source files are not listed, only a top level folder is listed. You have to add the whole folder, and every time you regenerate the code you would have to reimport the whole folder and remove the non existent files. Eclipse does this by default.
With this function this would happen automatically also in codeblocks.
--- End quote ---
The generators in CMake already do this.
Does this folder parsing works with multi-folder projects? Would you be able to use these globs with a projects as big as Codeblocks.cbp (which is relatively small to medium size project in 2020)?
--- Quote from: BlueHazzard on December 29, 2020, 01:58:10 pm ---PS. This was 3 years ago, i do not know if they have updated their project export file to the standard (https://www.keil.com/pack/doc/CMSIS/Build/html/element_cprj.html ) where each file is listed...
--- End quote ---
Even if they have not they would have to do it in order to generate the <glob> stuff.
If this is the only reason for this feature to exists, I doubt that it is a good idea to add it.
If I were doing it I would monitor the original project definition for changes and just generate plain cbp files. It would be a lot simpler and easier to do. These FS watchers seem scary and inefficient to me and the OS differences are quite massive under the hood...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version