more work on improving the build system

initial import of a build file for the examples

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2256 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blaszijk
2012-01-12 18:45:44 +00:00
parent 36b91b3270
commit e6e8c96df4
5 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,3 @@
/bin/ls -1 */fpmake.pp | awk -F '/' '/fpmake.pp/ { printf "procedure add_%s;\nbegin\n with Installer do\n {$include %s}\nend;\n\n",gensub("-","_","g",$1),$0; }' > fpmake_proc.inc
/bin/ls -1 */fpmake.pp | awk -F '/' '/fpmake.pp/ { printf " add_%s;\n",gensub("-","_","g",$1); }' > fpmake_add.inc

View File

@ -0,0 +1,28 @@
program fpmake;
{$mode objfpc} {$H+}
uses
fpmkunit;
var
P: TPackage;
i: integer;
begin
with Installer do
begin
//create nvwidgets package
P := AddPackage('nvwidget_examples');
P.Dependencies.Add('nvwidget');
P.UnitPath.Add('../src');
//example applications
P.Targets.AddUnit('example.pp');
P.Targets.AddUnit('widget_test.pp');
Run;
end;
end.

View File

@ -48,7 +48,11 @@ var
DeleteFile('nvwidgets.dot');
end;
{$include fpmake_proc.inc}
begin
{$include fpmake_add.inc}
with Installer do
begin
be := BuildEngine;

View File