Recent

Author Topic: [ Solved by Leledumbo ] Lazarus 1.4.0 external tools menu entry macros  (Read 2763 times)

lagprogramming

  • Sr. Member
  • ****
  • Posts: 407
   "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.
« Last Edit: July 09, 2015, 09:08:11 am by lagprogramming »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus 1.4.0 external tools menu entry macros
« Reply #1 on: July 08, 2015, 07:33:33 pm »
From here:
Quote
TargetOS - Target OS of the current project. Since 0.9.31: Use $TargetOS(IDE) to get the OS of the IDE executable. If the project has not set the TargetOS the IDE uses the default platform of the project's compiler (1.3 and below uses as default the IDE's platform). In Makefile it is converted to %(OS_TARGET)

lagprogramming

  • Sr. Member
  • ****
  • Posts: 407
Re: Lazarus 1.4.0 external tools menu entry macros
« Reply #2 on: July 09, 2015, 09:07:28 am »
@Leledumbo I appreciate your activity on the forum. Best wishes!

 

TinyPortal © 2005-2018