You've already forked lazarus-ccr
added compilation mode to widget units
some clean-up and fixing of compiler warnings initial import of the fpmake build file git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2228 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
57
components/nvidia-widgets/src/fpmake.pp
Normal file
57
components/nvidia-widgets/src/fpmake.pp
Normal file
@ -0,0 +1,57 @@
|
||||
program fpmake;
|
||||
|
||||
{$mode objfpc} {$H+}
|
||||
|
||||
uses
|
||||
fpmkunit;
|
||||
|
||||
{$include config.inc}
|
||||
|
||||
var
|
||||
P: TPackage;
|
||||
i: integer;
|
||||
|
||||
begin
|
||||
with Installer do
|
||||
begin
|
||||
//create nvwidgets package
|
||||
P := AddPackage('nvwidget');
|
||||
|
||||
P.Version := '1.00';
|
||||
//P.Options.Add('-MObjFPC');
|
||||
|
||||
if NV_DEBUG then
|
||||
for i := 0 to High(NV_DEBUG_FLAGS) do
|
||||
P.Options.Add(NV_DEBUG_FLAGS[i]);
|
||||
|
||||
if NV_PROFILE then
|
||||
for i := 0 to High(NV_PROFILE_FLAGS) do
|
||||
P.Options.Add(NV_PROFILE_FLAGS[i]);
|
||||
|
||||
//base widget units
|
||||
P.Targets.AddUnit('./nvwidgets/nvwidgets.pas');
|
||||
|
||||
write('package ', P.Name, ' configured for ');
|
||||
|
||||
//context units
|
||||
case NV_ACTIVE_CONTEXT of
|
||||
GLUT: begin
|
||||
write('the GLUT context');
|
||||
P.Targets.AddUnit('./nvwidgets/nvglutwidgets.pas');
|
||||
end;
|
||||
end;
|
||||
|
||||
//painter units
|
||||
case NV_ACTIVE_PAINTER of
|
||||
GL: begin
|
||||
writeln(' with the OpenGL painter');
|
||||
P.UnitPath.Add('./gl/');
|
||||
P.UnitPath.Add('./nvglutils/.');
|
||||
P.Targets.AddUnit('./nvwidgets/nvglwidgets.pas');
|
||||
end;
|
||||
end;
|
||||
|
||||
Run;
|
||||
end;
|
||||
end.
|
||||
|
Reference in New Issue
Block a user