"Tools"/"External tools"/"Edit tool" has "$TagetOS" and "$TargetCPU". I'm looking for a way to use the equivalent of "$HostOS" and "$HostCPU"(which don't exist).
What I want to do is build a couple of executables with the names like "rootname_$TargetOS()_$TargetCPU()", move the folder that stores these files to a different computer, and run within "Lazarus"/"External tools" the "rootname_$HostOS()_$HostCPU" program. By doing so I would be able to use a single xml file to import the external tools, without knowing the OS and CPU of the host.
Is there a workaround for this in Lazarus 1.4.0? I see a "$SrcOS()" but it may return a "unix" value and this value can't be set as $TargetOS, meaning that is useless for this scenario.