mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:49:16 +02:00
* Add moe information about libgdb.a and examples from tests directory
git-svn-id: trunk@24031 -
This commit is contained in:
parent
d4ecf952f9
commit
2da4a7b3d9
@ -24,13 +24,20 @@ begin
|
|||||||
|
|
||||||
// First try the environment setting GDBLIBDIR
|
// First try the environment setting GDBLIBDIR
|
||||||
GdbLibDir := GetEnvironmentVariable('GDBLIBDIR');
|
GdbLibDir := GetEnvironmentVariable('GDBLIBDIR');
|
||||||
if (GdbLibDir<>'') and DirectoryExists(GdbLibDir) then
|
if (GdbLibDir<>'') then
|
||||||
begin
|
begin
|
||||||
GdbLibFile:=IncludeTrailingPathDelimiter(GdbLibDir)+GdbLibName;
|
if DirectoryExists(GdbLibDir) then
|
||||||
if not FileExists(GdbLibFile) then
|
begin
|
||||||
Installer.BuildEngine.Log(vlCommand,'GDBLIBDIR environment variable set, but libgdb not found. ('+GdbLibFile+')')
|
GdbLibFile:=IncludeTrailingPathDelimiter(GdbLibDir)+GdbLibName;
|
||||||
|
if not FileExists(GdbLibFile) then
|
||||||
|
Installer.BuildEngine.Log(vlCommand,
|
||||||
|
'GDBLIBDIR environment variable set, but libgdb not found. ('+GdbLibFile+')')
|
||||||
|
else
|
||||||
|
GdbLibFound:=true;
|
||||||
|
end
|
||||||
else
|
else
|
||||||
GdbLibFound:=true;
|
Installer.BuildEngine.Log(vlCommand,
|
||||||
|
'GDBLIBDIR environment variable set, but directory does not exist. ('+GdbLibDir+')');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// Try the default locations
|
// Try the default locations
|
||||||
@ -54,6 +61,10 @@ begin
|
|||||||
|
|
||||||
GdbVerTarget:=TTarget(p.Targets.ItemByName('gdbver'));
|
GdbVerTarget:=TTarget(p.Targets.ItemByName('gdbver'));
|
||||||
|
|
||||||
|
if GdbLibFound then
|
||||||
|
Installer.BuildEngine.Log(vlCommand,'File libgdb.a found ('+GdbLibFile+')')
|
||||||
|
else
|
||||||
|
Installer.BuildEngine.Log(vlCommand,'File libgdb.a not found');
|
||||||
// When we're cross-compiling, running the gdbver executable to detect the
|
// When we're cross-compiling, running the gdbver executable to detect the
|
||||||
// gdb-version is not possible, unless a i386-win32 to i386-go32v2 compilation
|
// gdb-version is not possible, unless a i386-win32 to i386-go32v2 compilation
|
||||||
// is performed.
|
// is performed.
|
||||||
@ -168,6 +179,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
AddInclude('gdbver.inc');
|
AddInclude('gdbver.inc');
|
||||||
end;
|
end;
|
||||||
|
P.ExamplePath.add('tests');
|
||||||
|
P.Targets.AddExampleProgram('testgdb.pp');
|
||||||
|
P.Targets.AddExampleProgram('simify.pp');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user