Output directory

BlitzMax Forums/Brucey's Modules/Output directory

PhotonTom(Posted 2015) [#1]
Is there anyway in Bmax-NG that you can specify the output directory in the IDE so that it is different to where to code currently lives?
Thanks


Brucey(Posted 2015) [#2]
bmk will build to wherever you want, but the IDE builds to the same dir as main file.
Without a proper concept of "projects" I'm not sure how you'd manage that information from build to build - you don't really want it asking you every time you build, as that will just get in your way.


PhotonTom(Posted 2015) [#3]
I was thinking of maybe more of a compiler flag in the code. Something like ?BuildDir D:\BuildHere

Also would it be possible using Lua, is that pre-build only that you can use Lua?


One last question for BMX-NG where does it look for MinGW, is there a priority list?


Brucey(Posted 2015) [#4]
@MinGW

It looks in this order :
* BlitzMax/MinGW32 - local folder with complete MinGW distribution
* %MINGW% - environment variable
* fallback to using BlitzMax/bin and BlitzMax/lib

The first case makes it easier to have multiple BlitzMax builds using different versions of MinGW. (otherwise, you'd have to change MINGW more often).


Derron(Posted 2015) [#5]
Maybe we could even have a "folder / project based" config file ? - similar to a "?"-conditional (with the difference of being backwards compatible, and only dependend on bmk).

So we could use:
* project/folder adjusted paths (or whatelse ... building paths etc)
* BlitzMax/MinGW32 - local folder with complete MinGW distribution
* %MINGW% - environment variable
* fallback to using BlitzMax/bin and BlitzMax/lib


bye
Ron


Brucey(Posted 2015) [#6]
Not sure why you'd want to completely rebuild everything every time you wanted to compile a project pointing to a different MinGW? (based on the idea of projects using different versions of MinGW)

Seems like a lot of potential waiting around.


Derron(Posted 2015) [#7]
Right... absolutely forgot the "blitzmax modules" .

Sorry for the brain fart.


bye
Ron