You've already forked lazarus-ccr
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:
3
components/nvidia-widgets/configure.sh
Executable file
3
components/nvidia-widgets/configure.sh
Executable 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
|
||||
|
28
components/nvidia-widgets/examples/fpmake.pp
Normal file
28
components/nvidia-widgets/examples/fpmake.pp
Normal 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.
|
||||
|
@ -48,7 +48,11 @@ var
|
||||
DeleteFile('nvwidgets.dot');
|
||||
end;
|
||||
|
||||
{$include fpmake_proc.inc}
|
||||
|
||||
begin
|
||||
{$include fpmake_add.inc}
|
||||
|
||||
with Installer do
|
||||
begin
|
||||
be := BuildEngine;
|
||||
|
0
components/nvidia-widgets/fpmake_add.inc
Normal file
0
components/nvidia-widgets/fpmake_add.inc
Normal file
0
components/nvidia-widgets/fpmake_proc.inc
Normal file
0
components/nvidia-widgets/fpmake_proc.inc
Normal file
Reference in New Issue
Block a user