Multiplatform

BlitzMax Forums/BlitzMax Beginners Area/Multiplatform

Ked(Posted 2007) [#1]
If you wanted to create a multi-platform game/app. would you import all three of the Max2D/MaxGUI mods?


Perturbatio(Posted 2007) [#2]
You would compile the app on each of the three platforms.


Dreamora(Posted 2007) [#3]
There is only 1 Max2D and 2 different drivers.
On windows both are imported on the others only the opengl one.

And to make imports selective:

?win32

?Linux

?OSX

?

:)


Brucey(Posted 2007) [#4]
Almost there.. ;-)

?MacOS

And for processer specific compilation :

?MacOSPPC

?MacOSX86


Brucey(Posted 2007) [#5]
There's even a nice section in the Documentation about it :

Language -> Conditional Compiling


Dreamora(Posted 2007) [#6]
by the way: does that section include the 1.26 feature of "not"? which is especially powerfull with ?NOT Debug ;-)


Brucey(Posted 2007) [#7]
Yep.
Identifier may also be preceded by Not to invert the result.



Dreamora(Posted 2007) [#8]
Cool, was not at home so I could not check it :)

for those asking what "?Not Debug" means: Actually the same as ?Release would mean and its a great way to put Try - Catch - End Try into release only.


Ked(Posted 2007) [#9]
If I wanted to compile a Linux app would I need the Linux OS?


Dreamora(Posted 2007) [#10]
Yes.
You will need to run the BM version of the target OS on the target OS (or an emulation), otherwise it will not work.

You can not compile Linux or OSX nor vice versa