Author Topic: Setting up a project file for a large pre-existing codebase  (Read 5060 times)

Offline goishin

  • Single posting newcomer
  • *
  • Posts: 5
Setting up a project file for a large pre-existing codebase
« on: January 09, 2012, 08:16:47 pm »
Hey all,
I'm trying to figure out how to create a project file for a large project I'm working on at work. I just want to use Code::Blocks as the IDE. My job has it's own crazy complex build environment, so I don't need to use Code::Blocks to build. I just want to use the IDE (which admittedly is pretty cool) and the code completion. So, I'm thinking I need a project file. But I don't know how to setup a project to include this massive pre-existing code base. The project doesn't use make files. So, I didn't see any way to just point it at a make file, and I didn't even know if I could just point it at a make file and have it figure everything else out anyway. I was wondering if there was a way to setup the project file so I could point it at a root directory and have it scan and add the files on it's own. That way, if I sync with the repo and new files are added, I won't have to keep re-adding them. Is this possible?

 - Goishin

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Setting up a project file for a large pre-existing codebase
« Reply #1 on: January 09, 2012, 09:15:15 pm »
Just create an empty project and then and your files.
C::B supports building with custom makefiles, but it doesn't support reading the source/header file list from makefiles, sorry.
(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!]

zabzonk

  • Guest
Re: Setting up a project file for a large pre-existing codebase
« Reply #2 on: January 09, 2012, 09:17:53 pm »
Basically, no. However, you should look at the "Add files recursively.." project context menu, which will at least help you set up the project. But there is nothing (and shouldn't be) that automatically adds things to the project.

Offline goishin

  • Single posting newcomer
  • *
  • Posts: 5
Re: Setting up a project file for a large pre-existing codebase
« Reply #3 on: January 09, 2012, 10:50:02 pm »
That did the trick!

For those just tuning in, my problem was I had a large pre-existing project for work that I didn't need compiling support for (I compile using the compiler scripts from the project). I just wanted to use the IDE and code completion.

What I did was create an empty project, and then select "recursively add" from the project right-click menu from the icon in the projects pane to add the specific folders I wanted code completion for. These files now appear in my project, and code completion appears to be working great for it.

Thanks folks!

 - Goishin