* Add moe information about libgdb.a and examples from tests directory

git-svn-id: trunk@24031 -
This commit is contained in:
pierre 2013-03-28 12:29:13 +00:00
parent d4ecf952f9
commit 2da4a7b3d9

View File

@ -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;