|
@@ -4,19 +4,22 @@ program fpmake;
|
|
|
|
|
|
uses fpmkunit;
|
|
|
|
|
|
+{$endif ALLPACKAGES}
|
|
|
+
|
|
|
+procedure add_fcl_web(const ADirectory: string);
|
|
|
+
|
|
|
+Const
|
|
|
+ LibMicroHttpdOSes = AllUnixOSes + [win32,win64];
|
|
|
+
|
|
|
Var
|
|
|
T : TTarget;
|
|
|
P : TPackage;
|
|
|
begin
|
|
|
With Installer do
|
|
|
begin
|
|
|
-{$endif ALLPACKAGES}
|
|
|
-
|
|
|
P:=AddPackage('fcl-web');
|
|
|
P.ShortName:='fclw';
|
|
|
-{$ifdef ALLPACKAGES}
|
|
|
P.Directory:=ADirectory;
|
|
|
-{$endif ALLPACKAGES}
|
|
|
P.Version:='3.2.0-beta';
|
|
|
P.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,win32,win64,wince,aix,amiga,aros,morphos,dragonfly,android];
|
|
|
if Defaults.CPU=jvm then
|
|
@@ -37,7 +40,7 @@ begin
|
|
|
P.Dependencies.Add('winunits-base', [Win32,Win64]);
|
|
|
// (Temporary) indirect dependencies, not detected by fpcmake:
|
|
|
P.Dependencies.Add('univint',[MacOSX,iphonesim]);
|
|
|
-
|
|
|
+ P.Dependencies.Add('libmicrohttpd',LibMicroHttpdOSes);
|
|
|
P.Author := 'FreePascal development team';
|
|
|
P.License := 'LGPL with modification, ';
|
|
|
P.HomepageURL := 'www.freepascal.org';
|
|
@@ -190,6 +193,28 @@ begin
|
|
|
OSes:=[Win32,Win64];
|
|
|
Dependencies.AddUnit('custhttpsys');
|
|
|
end;
|
|
|
+ with P.Targets.AddUnit('custmicrohttpapp.pp') do
|
|
|
+ begin
|
|
|
+ Dependencies.AddUnit('custweb');
|
|
|
+ Dependencies.AddUnit('httpdefs');
|
|
|
+ Dependencies.AddUnit('httpprotocol');
|
|
|
+ ResourceStrings:=true;
|
|
|
+ OSes := LibMicroHttpdOSes;
|
|
|
+ if Defaults.CPU=jvm then
|
|
|
+ OSes := OSes - [java,android];
|
|
|
+ end;
|
|
|
+ with P.Targets.AddUnit('microhttpapp.pp') do
|
|
|
+ begin
|
|
|
+ Dependencies.AddUnit('custweb');
|
|
|
+ Dependencies.AddUnit('httpdefs');
|
|
|
+ Dependencies.AddUnit('httpprotocol');
|
|
|
+ Dependencies.AddUnit('custmicrohttpapp');
|
|
|
+ OSes := LibMicroHttpdOSes;
|
|
|
+ if Defaults.CPU=jvm then
|
|
|
+ OSes := OSes - [java,android];
|
|
|
+ end;
|
|
|
+
|
|
|
+
|
|
|
with P.Targets.AddUnit('fphttpstatus.pas') do
|
|
|
begin
|
|
|
Dependencies.AddUnit('fphttpserver');
|
|
@@ -402,9 +427,12 @@ begin
|
|
|
AddUnit('sqldbrestbridge');
|
|
|
AddUnit('sqldbrestconst');
|
|
|
end;
|
|
|
+ end;
|
|
|
+end;
|
|
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
|
- Run;
|
|
|
- end;
|
|
|
+begin
|
|
|
+ add_fcl_web('');
|
|
|
+ Installer.Run;
|
|
|
end.
|
|
|
{$endif ALLPACKAGES}
|