I want to get the library path for a specific platform (win32, win64, OSx). But, when I ask for the library path for, OTA just return me the OSx library path.
The code is:
EnvironmentOptions := (BorlandIDEServices as IOTAServices).GetEnvironmentOptions;
Paths.Text := EnvironmentOptions.Values['LibraryPath'];
I noticed a strange thing. When I ask for the key values I get 3 LibraryPath.
When I do:
EnvironmentOptions.GetOptionNames
I get:
... A lot of values
'ClassCompletionBooleanAddInterface', tkEnumeration
'LibraryPath', tkLString --> 1
'PackageDPLOutput', tkLString
... lot of values
'LibraryPath', tkLString --> 2
'PackageDPLOutput', tkLString
... lot of values
'HPPOutputDirectory', tkLString
'LibraryPath', tkLString --> 3
'PackageDPLOutput', tkLString
... lot of values
I THINK that each key must represent one of the possible targets that I have (win32, win64, OSx). But as I just can call the value of the Key for it's name, it always return me the first key that it founds, in my case it's OS X.
I'll not accept my answer as correct, it's just an option. I didn't found a possibility to do it direct in OTA so I looked for it on the registry: