Changeset 9 for trunk/Forms/UMainForm.pas
- Timestamp:
- Feb 12, 2011, 12:33:04 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 4 4 Source 5 5 Instance 6 FreePascalManager
-
- Property svn:ignore
-
trunk/Forms/UMainForm.pas
r7 r9 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 9 StdCtrls, ActnList, Menus, ExtCtrls, Contnrs, USource, UInstance, 10 UInstanceOptions, DOM, XMLWrite, XMLRead, HTTPSend,UMainOptions,11 USourceSelection ;10 UInstanceOptions, DOM, XMLWrite, XMLRead, UMainOptions, 11 USourceSelection, HTTPSend; 12 12 13 13 const … … 81 81 Sources: TSourceList; 82 82 function GetBinUtilsDir: string; 83 function GetCompilerPath: string; 83 84 function GetBaseDir: string; 85 procedure InstallDependencies; 84 86 end; 85 87 … … 254 256 AStart.Enabled := False; 255 257 ARemove.Enabled := False; 258 AUpdate.Enabled := False; 256 259 end; 257 260 end; … … 492 495 function TMainForm.GetBinUtilsDir: string; 493 496 begin 497 {$IFDEF Windows} 494 498 Result := GetBaseDir + DirectorySeparator + 495 499 BinUtilsDir + DirectorySeparator + Platform; 500 {$ENDIF} 501 {$IFDEF Linux} 502 Result := '/usr/bin'; 503 {$ENDIF} 504 end; 505 506 function TMainForm.GetCompilerPath: string; 507 begin 508 {$IFDEF Windows} 509 Result := GetBinUtilsDir + DirectorySeparator + 'fpc'; 510 {$ENDIF} 511 {$IFDEF Linux} 512 Result := '/usr/lib/fpc/2.4.0/ppc386'; 513 {$ENDIF} 496 514 end; 497 515 … … 499 517 begin 500 518 Result := ExtractFileDir(Application.ExeName); 519 end; 520 521 procedure TMainForm.InstallDependencies; 522 begin 523 {$IFDEF Windows} 524 {$ENDIF} 525 {$IFDEF Linux} 526 if FileExistsUTF8('yum') then begin 527 end else 528 if FileExistsUTF8('apt-get') then begin 529 (* sudo apt-get install -y subversion 530 sudo apt-get install -y cvs 531 sudo apt-get install -y alien 532 sudo apt-get install -y libncurses5-dev 533 sudo apt-get install -y libgtk2.0-dev 534 sudo apt-get install -y libgdk-pixbuf-dev 535 sudo apt-get install -y libXp-dev 536 sudo apt-get install -y libgtk1.2-dev 537 sudo apt-get install -y libXxf86vm-dev 538 sudo apt-get install -y glutg3-dev 539 sudo apt-get install -y libgli-mesa-dev 540 sudo apt-get install -y mesa-utils 541 *) 542 end else ShowMessage('No package manager found.'); 543 {$ENDIF} 501 544 end; 502 545
Note:
See TracChangeset
for help on using the changeset viewer.