Browse Source

+ Handle gdblib.inc include file in GDBLibDir

git-svn-id: trunk@20167 -
pierre 13 years ago
parent
commit
14edbfe855
1 changed files with 7 additions and 0 deletions
  1. 7 0
      packages/gdbint/fpmake.pp

+ 7 - 0
packages/gdbint/fpmake.pp

@@ -81,6 +81,13 @@ begin
         begin
           Installer.BuildEngine.Log(vlCommand,'Using GDB')
         end;
+  // Detect if gdblib.inc is available
+      if FileExists(GDBLibDir+PathDelim+'gdblib.inc') then
+        begin
+          P.Options.Add('-dUSE_GDBLIBINC');
+          P.Options.Add('-Fi'+GdbLibDir);
+          Installer.BuildEngine.Log(vlCommand,'Using gdblib.inc include file')
+        end;
     end
   else
     begin