* initial android pthreads, by Bero, mantis #32105

git-svn-id: trunk@36662 -
This commit is contained in:
marco 2017-07-07 10:26:46 +00:00
parent 8401a460e5
commit fdd78657e8
2 changed files with 5 additions and 1 deletions

View File

@ -17,13 +17,14 @@ begin
P.Directory:=ADirectory;
{$endif ALLPACKAGES}
P.Version:='3.1.1';
P.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,aix,dragonfly];
P.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,aix,dragonfly,android];
P.SourcePath.Add('src');
P.IncludePath.Add('src');
T:=P.Targets.AddUnit('pthreads.pp');
with T.Dependencies do
begin
AddInclude('pthrandroid.inc',[Android]);
AddInclude('pthrlinux.inc',[Linux]);
AddInclude('pthrbeos.inc',[Beos]);
AddInclude('pthrsnos.inc',[Solaris]);

View File

@ -23,6 +23,9 @@ interface
{$if defined(BSD)}
uses initc,BaseUnix, unixtype;
{$i pthrbsd.inc}
{$elseif defined(android)}
uses initc, ctypes, unixtype;
{$i pthrandroid.inc}
{$elseif defined(linux)}
uses initc, ctypes, unixtype;
{$i pthrlinux.inc}