Difference between revisions of "TargetLinux"

From Xojo Documentation

(See Also)
(See Also)
Line 37: Line 37:
== See Also ==
== See Also ==
[[DebugBuild]], [[XojoVersion]], [[XojoVersionString]], [[TargetBigEndian]], [[TargetCocoa]], [[TargetDesktop]], [[TargetLittleEndian]], [[TargetMachO]], [[TargetMacOS]], [[TargetWeb]], [[TargetWindows]], [[TargetX86]] constants;  [[#If...#Endif]] statement.
[[DebugBuild]], [[XojoVersion]], [[XojoVersionString]], [[TargetBigEndian]], [[TargetDesktop]], [[TargetLittleEndian]], [[TargetMachO]], [[TargetMacOS]], [[TargetWeb]], [[TargetWindows]], [[TargetX86]] constants;  [[#If...#Endif]] statement.

Latest revision as of 19:24, 20 July 2021

Constant As Boolean

aBoolean = TargetLinux

Used to indicate that you are compiling code for the Linux OS.


result = TargetLinux

Part Type Description
result Boolean Returns True if you are compiling or running on Linux.


When building for Raspberry Pi, TargetLinux returns True.

To detect Raspberry Pi, use these build constants:

#If TargetLinux And TargetARM And Target32bit Then
// Raspberry Pi

See Also

DebugBuild, XojoVersion, XojoVersionString, TargetBigEndian, TargetDesktop, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement.