mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 11:19:10 +02:00
codetools: set MAC_OS_X_VERSION_MIN_REQUIRED from -WM parameter
git-svn-id: trunk@57777 -
This commit is contained in:
parent
9f9965c410
commit
efdc34d3e6
@ -102,6 +102,7 @@ const
|
||||
TargetCPUMacro = '$('+TargetCPUMacroName+')';
|
||||
NamespacesMacro = '$('+NamespacesMacroName+')';
|
||||
|
||||
MacOSMinSDKVersionMacro = 'MAC_OS_X_VERSION_MIN_REQUIRED';
|
||||
|
||||
// virtual directories
|
||||
VirtualDirectory='VIRTUALDIRECTORY';
|
||||
@ -7984,6 +7985,7 @@ var
|
||||
i: Integer;
|
||||
Param, Namespaces: String;
|
||||
p: PChar;
|
||||
MacMinVer: single;
|
||||
begin
|
||||
Result:=nil;
|
||||
if AlwaysCreate then
|
||||
@ -8061,6 +8063,13 @@ begin
|
||||
ctsDefine+MacroControllerUnit,MacroControllerUnit,
|
||||
s);
|
||||
end;
|
||||
'M':
|
||||
begin
|
||||
val(copy(Param,4,255),MacMinVer,m);
|
||||
if m=0 then
|
||||
AddDefine(MacOSMinSDKVersionMacro,MacOSMinSDKVersionMacro,
|
||||
MacOSMinSDKVersionMacro,IntToStr(Round(MacMinVer*100)));
|
||||
end;
|
||||
end;
|
||||
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user