mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 16:49:28 +02:00
IDE: Add iOS as target. Issue #37869, patch from Alfred.
git-svn-id: trunk@63987 -
This commit is contained in:
parent
823660192e
commit
ebad1d78ef
@ -109,7 +109,7 @@ const
|
||||
VirtualTempDir='TEMPORARYDIRECTORY';
|
||||
|
||||
// FPC operating systems and processor types
|
||||
FPCOperatingSystemNames: array[1..37] of shortstring =(
|
||||
FPCOperatingSystemNames: array[1..38] of shortstring =(
|
||||
'linux',
|
||||
'win32','win64','wince',
|
||||
'darwin','macos',
|
||||
@ -127,6 +127,7 @@ const
|
||||
'go32v2',
|
||||
'haiku',
|
||||
'iphonesim',
|
||||
'ios',
|
||||
'java',
|
||||
'msdos',
|
||||
'morphos',
|
||||
@ -142,7 +143,7 @@ const
|
||||
'wdosx',
|
||||
'wii'
|
||||
);
|
||||
FPCOperatingSystemCaptions: array[1..37] of shortstring =(
|
||||
FPCOperatingSystemCaptions: array[1..38] of shortstring =(
|
||||
'AIX',
|
||||
'Amiga',
|
||||
'Android',
|
||||
@ -159,6 +160,7 @@ const
|
||||
'Go32v2',
|
||||
'Haiku',
|
||||
'iPhoneSim',
|
||||
'iOS',
|
||||
'Java',
|
||||
'Linux',
|
||||
'MacOS',
|
||||
@ -3636,6 +3638,7 @@ begin
|
||||
or (CompareText(TargetOS,'openbsd')=0)
|
||||
or (CompareText(TargetOS,'dragonfly')=0)
|
||||
or (CompareText(TargetOS,'darwin')=0)
|
||||
or (CompareText(TargetOS,'ios')=0)
|
||||
or (CompareText(TargetOS,'solaris')=0)
|
||||
or (CompareText(TargetOS,'haiku')=0)
|
||||
or (CompareText(TargetOS,'android')=0)
|
||||
|
@ -858,7 +858,7 @@ type
|
||||
system_x86_64_darwin, { 61 }
|
||||
system_avr_embedded, { 62 }
|
||||
system_i386_haiku, { 63 }
|
||||
system_arm_darwin, { 64 }
|
||||
system_arm_ios, { 64 }
|
||||
system_x86_64_solaris, { 65 }
|
||||
system_mips_linux, { 66 }
|
||||
system_mipsel_linux, { 67 }
|
||||
@ -880,8 +880,10 @@ type
|
||||
system_i386_aros, { 83 }
|
||||
system_x86_64_aros, { 84 }
|
||||
system_x86_64_dragonfly, { 85 }
|
||||
system_aarch64_darwin, { 85 }
|
||||
system_x86_64_iphonesim { 86 }
|
||||
system_aarch64_ios, { 86 }
|
||||
system_x86_64_iphonesim, { 87 }
|
||||
system_aarch64_win64, { 107 }
|
||||
system_aarch64_darwin { 111 }
|
||||
);
|
||||
const
|
||||
// taken form ppudump.pp
|
||||
@ -950,7 +952,7 @@ const
|
||||
{ 61 } 'MacOSX-x64',
|
||||
{ 62 } 'Embedded-avr',
|
||||
{ 63 } 'Haiku-i386',
|
||||
{ 64 } 'Darwin-ARM',
|
||||
{ 64 } 'iOS-ARM',
|
||||
{ 65 } 'Solaris-x86-64',
|
||||
{ 66 } 'Linux-MIPS',
|
||||
{ 67 } 'Linux-MIPSel',
|
||||
@ -972,8 +974,10 @@ const
|
||||
{ 83 } 'AROS-i386',
|
||||
{ 84 } 'AROS-x86-64',
|
||||
{ 85 } 'DragonFly-x86-64',
|
||||
{ 85 } 'Darwin-AArch64',
|
||||
{ 86 } 'iPhoneSim-x86-64'
|
||||
{ 86 } 'iOS-AArch64',
|
||||
{ 87 } 'iPhoneSim-x86-64',
|
||||
{ 107 } 'Win64-AArch64',
|
||||
{ 111 } 'Darwin-AArch64'
|
||||
);
|
||||
begin
|
||||
if w<=ord(high(ttarget)) then
|
||||
|
@ -1093,6 +1093,7 @@ begin
|
||||
Add('Symbian');
|
||||
Add('MSDOS');
|
||||
Add('Wii');
|
||||
Add('iOS');
|
||||
end;
|
||||
ItemIndex:=0;
|
||||
end;
|
||||
|
@ -353,6 +353,8 @@ begin
|
||||
Result:='.dll'
|
||||
else if CompareText(TargetOS, 'darwin') = 0 then
|
||||
Result:='.dylib'
|
||||
else if CompareText(TargetOS, 'ios') = 0 then
|
||||
Result:='.dylib'
|
||||
else if (CompareText(TargetOS, 'linux') = 0)
|
||||
or (CompareText(TargetOS, 'android') = 0)
|
||||
or (CompareText(TargetOS, 'freebsd') = 0)
|
||||
|
Loading…
Reference in New Issue
Block a user