User forums > Using Code::Blocks
add a directory to the browser without specifing each single file
mattn2:
Hi,
we are using a custom makefile driven codeblocks project. My question is, is there a way to only specify a directory (or virtual folder) and only list the files in it, without specifying each single file in the project.cbp file? the files are already specified in the makefiles and i don't want to maintain two locations when we add/rename/delete files.
thanks a lot
Martin
dmoore:
You can use project->add files recursively to include all of the files in a given path (the dialog then gives you the option to check off the files you want, or wildcard match them). The problem is that after you add, rename, delete etc outside of C::B you will need to manually update the project file. I think it would be reasonably straightforward to write a plugin that automatically updates the project files to the files in the underlying directory. Another option would be to patch C::B itself to implement the updating. I think this would only make sense when working with makefiles, otherwise it would have unpredictable effects on C::B's build targets.
MortenMacFly:
--- Quote from: dmoore on October 14, 2012, 09:29:40 pm ---Another option would be to patch C::B itself to implement the updating. I think this would only make sense when working with makefiles, otherwise it would have unpredictable effects on C::B's build targets.
--- End quote ---
Another option is to use the newly introduced "glob" power feature. I never used it so far, but killerbot should be able to explain.
mattn2:
is there any information about the glob feature?
mattn2:
found it mentioned here: http://forums.codeblocks.org/index.php/topic,16772.0.html
but nothing more pops up in the wiki or the forum.
Navigation
[0] Message Index
[#] Next page
Go to full version