Delphi predefined environment variables

前端 未结 3 1242
清酒与你
清酒与你 2021-02-20 05:28

Can anyone tell me where to find a list of the \"pseudo\" environment variables available in RAD Studio? The ones like $(Platform), $(Config), and so on. Specifically, I want on

相关标签:
3条回答
  • 2021-02-20 05:42

    Have you tried $(ProductVersion)? this will not give you D16, but contains the BDS product version 9.0 for XE2.

    Unfortunately my XE2 Demo version is expired so I can't verify myself if it works. You'll find the definition bin\CodeGear.Common.Targets

    Update: The ProductVersion define is new in XE2, so it won't work in older versions, but since its newly added, the possibility is high that it will be maintained by embarcadero in future versions.

    0 讨论(0)
  • 2021-02-20 05:43

    There is not a RTLVersion variable but you can create easily using the option Enviroment variables

    enter image description here

    or the windows registry.

    For Delphi XE Check this entry

    HKEY_CURRENT_USER\Software\Embarcadero\BDS\8.0\Environment Variables 
    

    Then you can create a new variable called RTLVersion

    enter image description here

    And then from the Delphi IDE you can use like so

    enter image description here

    0 讨论(0)
  • 2021-02-20 05:45

    There is no environment variable for the RTL version. You will have to create a separate project for each version and then tweak the output folders as needed.

    0 讨论(0)
提交回复
热议问题