Page 1 of 1

Managing & Compiling Large Projects

Posted: Tue May 20, 2008 6:40 pm
by Foz
This should be some fun :-)

I'm at the stage now where I need to regularly compiler my main exe and my supporting dll's, but I prefer to have them separate from the code.

This means that I create a \bin sub folder and then manually compile them there in their correct places, and also copy over any miscellaneous resources.

Now I'm currently at one exe, 2 dlls, a database and one image. And I'm getting sick to death of it already. I estimate that the dll's will easily grow to 100-200, and that would be insane to manage manually.

Does this require me to build a solution manager to compile everything for me? Or is there some funky tool that I don't know about yet?

Posted: Tue May 20, 2008 8:08 pm
by tinman
Could you use something as simple as a batch script? Or maybe a build system like make or ant?

You could always use some scripted language to create your build script too if it needs to be more complicated and dynamic.

Posted: Tue May 20, 2008 8:21 pm
by Foz
Ah, so there isn't a neat tool that I missed. Pity.

I figured that I'd need a script or build system if that was the case.

I'll see what I can knock together in the next hour or so.

Afterall, managing projects, just how hard can it be! :wink:

Posted: Tue May 20, 2008 9:09 pm
by freak
"make" is the neat tool you missed ;)

Posted: Tue May 20, 2008 9:20 pm
by Foz
I believe that our definition of "neat" differ somewhat. ;-)

j/k yes, I've looked into it and then quickly left once I realised that it would be faster for me to write a PureBasic program that does something similar and was a lot more user friendly, compared to me learning the art of Make files.

Posted: Tue May 20, 2008 9:32 pm
by ts-soft
UEStudio supports projects for purebasic :wink:
http://www.ultraedit.com/products/uestudio.html

Posted: Tue Jun 03, 2008 4:10 pm
by Foz
Well, I've bitten the bullet, and have been examining both UEStudio and Eclipse.

Frustrating is the word that I'd use. Mainly because I've never used either of them before.

I installed the PureBasic word list for UEStudio, and spent waaaay to long trying to get a project to compile. Never mind getting a solution to compile.

So much so, that I that I then installed Java and Eclipse (something I was trying to avoid) but got rather irritated with it in the way that it tries to be Java or C++ compiler only. I know there was some talk of a PB Eclipse plugin, but it never materialized.

Does anyone here use UEStudio or Eclipse for their PureBasic projects? If so, do you think you could point me in the right direction for getting either of these to compile ?

Also, if there is another solution based manager that you use for compiling multiple PureBasic projects, please let me know. Note that this can be on Windows or Linux, I don't care at this point as long as it works...

Posted: Tue Jun 03, 2008 5:00 pm
by DoubleDutch
I seem to remember Freak mentioning the possibility of some kind of project management appearing in PB eventually. It may have been in an alpha discussion?

Posted: Tue Jun 03, 2008 5:22 pm
by ts-soft
I have used UEStudio for some month. There is many to configure to work
with PB.
I have used it for a project with windows-resources. Creating executable and
debugging works fine. Contexthelp work, folding and so on, but before it
works you have somethings to change and understand of uestudio :mrgreen:

Posted: Tue Jun 03, 2008 9:35 pm
by Mistrel
I wrote my own programs for PureGDK. The installer, packager/extractor, batch compile, and a tool to gather installation components from various locations.

Of the things I do is prefix my sources differently to identify what to compile them for. Lib-P compiles to plugin libraries, Lib- is a normal Tailbite library, inc.filename is ignored.

Posted: Wed Jun 04, 2008 11:35 pm
by Dummy
I also wrote my own program... it wasn't intended for public release so expect the features to be somehow a little... limited.

Download: http://www.dashtec.net/pbbuild.rar

The download package consists of a very small readme, the sources and a compiled version of my pbbuild software.
You'll also notice a file called build.pbb. That file is the pbbuild script I used to compile pbbuild. I placed pbbuild in my system32 directory, the pbbuild.ini right next to it, corrected the pb-directory inside the pbbuild.ini and associated .pbb files with pbbuild.exe.