Managing & Compiling Large Projects

Everything else that doesn't fall into one of the other PB categories.
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Managing & Compiling Large Projects

Post 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?
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post 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.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post 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:
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

"make" is the neat tool you missed ;)
quidquid Latine dictum sit altum videtur
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post 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.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

UEStudio supports projects for purebasic :wink:
http://www.ultraedit.com/products/uestudio.html
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post 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...
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post 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.
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post 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.
Post Reply