mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 09:07:59 +02:00
86 lines
2.4 KiB
ObjectPascal
86 lines
2.4 KiB
ObjectPascal
{$ifndef ALLPACKAGES}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
|
|
uses {$ifdef unix}cthreads,{$endif} fpmkunit;
|
|
|
|
Var
|
|
P : TPackage;
|
|
T : TTarget;
|
|
begin
|
|
With Installer do
|
|
begin
|
|
{$endif ALLPACKAGES}
|
|
|
|
P:=AddPackage('httpd24');
|
|
P.ShortName:='hd24';
|
|
{$ifdef ALLPACKAGES}
|
|
P.Directory:=ADirectory;
|
|
{$endif ALLPACKAGES}
|
|
P.Version:='3.3.1';
|
|
P.Author := 'Library: Apache Foundation, header: Felipe Monteiro de Carvalho';
|
|
P.License := 'Library: Apache License 2, header: LGPL with modification, ';
|
|
P.HomepageURL := 'www.freepascal.org';
|
|
P.Email := '';
|
|
P.Description := 'Headers for the Apache 2.4 series www server';
|
|
P.NeedLibC:= true; // true for headers that indirectly link to libc?
|
|
P.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
|
|
if Defaults.CPU=jvm then
|
|
P.OSes := P.OSes - [java,android];
|
|
|
|
P.SourcePath.Add('src');
|
|
P.SourcePath.Add('src/apr');
|
|
P.SourcePath.Add('src/aprutil');
|
|
P.IncludePath.Add('src');
|
|
P.IncludePath.Add('src/apr');
|
|
P.IncludePath.Add('src/aprutil');
|
|
|
|
P.Dependencies.Add('rtl-extra');
|
|
|
|
T:=P.Targets.AddUnit('apr24.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('apr_errno.inc');
|
|
AddInclude('apr_pools.inc');
|
|
AddInclude('apr_allocator.inc');
|
|
AddInclude('apr_user.inc');
|
|
AddInclude('apr_time.inc');
|
|
AddInclude('apr_tables.inc');
|
|
AddInclude('apr_file_info.inc');
|
|
AddInclude('apr_strings.inc');
|
|
AddInclude('apr_version.inc');
|
|
AddInclude('apr_mmap.inc');
|
|
end;
|
|
T:=P.Targets.AddUnit('httpd24.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('util_cfgtree.inc');
|
|
AddInclude('httpd.inc');
|
|
AddInclude('ap_config.inc');
|
|
AddInclude('ap_mmn.inc');
|
|
AddInclude('ap_release.inc');
|
|
AddInclude('ap_regex.inc');
|
|
AddInclude('http_config.inc');
|
|
AddInclude('http_core.inc');
|
|
AddInclude('ap_expr.inc');
|
|
AddInclude('util_filter.inc');
|
|
AddInclude('util_script.inc');
|
|
AddInclude('http_log.inc');
|
|
AddInclude('http_protocol.inc');
|
|
AddInclude('src/aprutil/apr_buckets.inc');
|
|
AddInclude('src/aprutil/apr_uri.inc');
|
|
AddUnit('apr24');
|
|
end;
|
|
P.ExamplePath.Add('examples');
|
|
T:=P.Targets.AddExampleProgram('mod_hello.pp');
|
|
|
|
|
|
P.NamespaceMap:='namespaces.lst';
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
Run;
|
|
end;
|
|
end.
|
|
{$endif ALLPACKAGES}
|
|
|