Compiler executable name

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BinoX
User
User
Posts: 46
Joined: Mon Jan 31, 2005 11:57 am

Compiler executable name

Post by BinoX »

Feature for the pbeditor
Can the "Executable Location" that is saved be unique per type of compiler, to make it easier for multi-platform / multi-architecture compiling using the same source file. (I have a product at the moment that requires me to do 32 and 64 bit windows builds and I occasionally overwrite the wrong file)

So, instead of Executables=yourname.exe at the end of the pb file,

something like:

exewin32=win32bit\yourname.exe
exewin64=win64bit\yourname.exe
exelin32=lin32\yourname
exelin64=lin64\yourname
exemac32=mac32\yourname
exemac32=mac64\yourname
exeamiga=amiga\yourname.bin
PeDe
Enthusiast
Enthusiast
Posts: 123
Joined: Sun Nov 26, 2017 3:13 pm
Location: Vienna
Contact:

Re: Compiler executable name

Post by PeDe »

I do this with a batch file.
The exe and other files are moved or copied to a separate directory after compilation.
You can pass parameters to the batch file, for example: %EXECUTABLE %PROJECT 64
With this you can use the parameters in the batch file with %1 %2 %3.

Peter
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Compiler executable name

Post by Josh »

Have you already tried a project? Making a difference between 32 and 64 bit shouldn't be a problem. If you can also make differences between Win/Linux/Mac, I don't know, because I only use Windows.
sorry for my bad english
Post Reply