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