mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 01:39:35 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			81 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{$ifndef ALLPACKAGES}
 | 
						|
{$mode objfpc}{$H+}
 | 
						|
program fpmake;
 | 
						|
 | 
						|
uses fpmkunit, sysutils;
 | 
						|
{$endif ALLPACKAGES}
 | 
						|
 | 
						|
procedure add_fpmc;
 | 
						|
 | 
						|
Var
 | 
						|
  P : TPackage;
 | 
						|
  T : TTarget;
 | 
						|
  gtkOSes: TOSes;
 | 
						|
  gtkdll: string;
 | 
						|
 | 
						|
begin
 | 
						|
  With Installer do
 | 
						|
    begin
 | 
						|
    P:=AddPackage('fpmc');
 | 
						|
 | 
						|
    P.Author := '<various>';
 | 
						|
    P.License := 'LGPL with modification';
 | 
						|
    P.HomepageURL := 'www.freepascal.org';
 | 
						|
    P.Email := '';
 | 
						|
    P.Description := 'Free Pascal Message Compiler.';
 | 
						|
    P.NeedLibC:= false;
 | 
						|
 | 
						|
{$ifdef ALLPACKAGES}
 | 
						|
    P.Directory:='fpmc';
 | 
						|
{$endif ALLPACKAGES}
 | 
						|
    P.Version:='2.7.1';
 | 
						|
 | 
						|
    P.OSes := [win32, win64, os2, emx];
 | 
						|
 | 
						|
    gtkOSes:=[linux];
 | 
						|
    // Only compile fpmcgtk on win32 when the gtk-library is found in the path
 | 
						|
    gtkdll:=FileSearch('libgtk-0.dll',GetEnvironmentVariable('PATH'),[sfoImplicitCurrentDir, sfoStripQuotes]);
 | 
						|
    if gtkdll<>'' then
 | 
						|
      include(gtkOSes,win32);
 | 
						|
 | 
						|
    P.Dependencies.Add('fcl-base');
 | 
						|
    P.Dependencies.Add('fpgtk',gtkOSes);
 | 
						|
 | 
						|
    T:=P.Targets.AddProgram('fpmc.pp');
 | 
						|
    T.Dependencies.AddUnit('msgcomp');
 | 
						|
 | 
						|
    T:=P.Targets.AddProgram('fpmcgtk.pp',gtkOSes);
 | 
						|
    T.Dependencies.AddUnit('msgcomp');
 | 
						|
    T.Dependencies.AddUnit('frmmain');
 | 
						|
    T.Dependencies.AddUnit('frmabout');
 | 
						|
    T.Dependencies.AddUnit('frmoptions');
 | 
						|
 | 
						|
    T:=P.Targets.AddUnit('frmmain.pp');
 | 
						|
    T.install:=false;
 | 
						|
    T.ResourceStrings:=true;
 | 
						|
 | 
						|
    T:=P.Targets.AddUnit('frmabout.pp');
 | 
						|
    T.install:=false;
 | 
						|
    T.ResourceStrings:=true;
 | 
						|
 | 
						|
    T:=P.Targets.AddUnit('frmoptions.pp');
 | 
						|
    T.install:=false;
 | 
						|
    T.ResourceStrings:=true;
 | 
						|
 | 
						|
    T:=P.Targets.AddUnit('msgcomp.pp');
 | 
						|
    T.install:=false;
 | 
						|
    T.ResourceStrings:=true;
 | 
						|
    end;
 | 
						|
end;
 | 
						|
 | 
						|
{$ifndef ALLPACKAGES}
 | 
						|
begin
 | 
						|
  add_fpmc;
 | 
						|
  Installer.Run;
 | 
						|
end.
 | 
						|
{$endif ALLPACKAGES}
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 |