mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-07 05:27:13 +01:00
* Added a fpmake.pp in the root, to compile the utils and packages in one go git-svn-id: trunk@24783 -
46 lines
1.1 KiB
ObjectPascal
46 lines
1.1 KiB
ObjectPascal
{$ifndef ALLPACKAGES}
|
|
{$define allpackages}
|
|
{$define no_parent}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
|
|
uses fpmkunit, sysutils, Classes;
|
|
|
|
Var
|
|
TBuild,T : TTarget;
|
|
PBuild,P : TPackage;
|
|
D : TDependency;
|
|
I : Integer;
|
|
|
|
{$endif ALLPACKAGES}
|
|
|
|
(*
|
|
|
|
The include files are generated with the following commands:
|
|
|
|
rm fpmake_proc.inc fpmake_add.inc ; /bin/ls -1 */fpmake.pp| while read file; do cleanedname=`dirname $file | sed -e 's+-+_+g'` ; if ! `grep -i "^procedure add_$cleanedname" $file >/dev/null` ; then printf 'procedure add_%s(const ADirectory: string);\nbegin\n with Installer do\n{$include %s}\nend;\n\n' $cleanedname $file >> fpmake_proc.inc; else printf '{$include %s}\n\n' $file >> fpmake_proc.inc; fi; echo " add_$cleanedname(ADirectory+IncludeTrailingPathDelimiter('$cleanedname'));" >> fpmake_add.inc; done
|
|
|
|
*)
|
|
|
|
{$include fpmake_proc.inc}
|
|
|
|
procedure add_packages(const ADirectory: string);
|
|
|
|
begin
|
|
{$include fpmake_add.inc}
|
|
|
|
With Installer do
|
|
begin
|
|
// Create fpc-all package
|
|
PBuild:=AddPackage('fpc-all');
|
|
PBuild.Version:='2.7.1';
|
|
end;
|
|
end;
|
|
|
|
{$ifdef no_parent}
|
|
begin
|
|
add_packages('');
|
|
Installer.Run;
|
|
end.
|
|
{$endif no_parent}
|