Author Topic: Update source file for a project automatically  (Read 3391 times)

Offline aravind

  • Single posting newcomer
  • *
  • Posts: 2
Update source file for a project automatically
« on: May 29, 2013, 08:03:49 pm »
Hi,

I have a project folder in which the list of source files changes with respect to my current git branch. I was wondering if there is any way (plugin or otherwise) to get Codeblocks to update it's list of source files automatically by scanning particular folders. This would really save a lot of time instead of having to manually add files to the project every time I switch branches. Any information would be greatly appreciated.

Thanks.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Update source file for a project automatically
« Reply #1 on: May 29, 2013, 08:59:00 pm »
Thee is an undocumented power-user feature called "globs" that might do what you want. To enable, you'll need to change the project file by yourself. I've unfortunately never used it, so I personally can't give you more instructions, but the user named "killerbot" surely can do.

Hopefully he'll reply to this thread...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline aravind

  • Single posting newcomer
  • *
  • Posts: 2
Re: Update source file for a project automatically
« Reply #3 on: May 29, 2013, 11:13:50 pm »
Thanks a lot for the details. The "globs" feature works like a charm for what I want.