From b978d7b6d5bc0b5dc1eb4be79200bbeed15134e8 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 1 Oct 2019 19:21:30 +0000 Subject: [PATCH] Use same list of supported OSes for libmicrohttpd package in libmicrohttpd and fcl-web, and adapt packages/fpmake_proc.inc git-svn-id: trunk@43104 - --- packages/fcl-web/fpmake.pp | 24 +++++++++++++++--------- packages/fpmake_proc.inc | 4 ---- packages/libmicrohttpd/fpmake.pp | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/packages/fcl-web/fpmake.pp b/packages/fcl-web/fpmake.pp index 304a17a145..b23822848f 100644 --- a/packages/fcl-web/fpmake.pp +++ b/packages/fcl-web/fpmake.pp @@ -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.3.1'; 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',AllUnixOSes+AllWindowsOSes); + P.Dependencies.Add('libmicrohttpd',LibMicroHttpdOSes); P.Author := 'FreePascal development team'; P.License := 'LGPL with modification, '; P.HomepageURL := 'www.freepascal.org'; @@ -196,7 +199,7 @@ begin Dependencies.AddUnit('httpdefs'); Dependencies.AddUnit('httpprotocol'); ResourceStrings:=true; - OSes := [android,freebsd,linux,netbsd,openbsd,win32,win64]; + OSes := LibMicroHttpdOSes; if Defaults.CPU=jvm then OSes := OSes - [java,android]; end; @@ -206,7 +209,7 @@ begin Dependencies.AddUnit('httpdefs'); Dependencies.AddUnit('httpprotocol'); Dependencies.AddUnit('custmicrohttpapp'); - OSes := [android,freebsd,linux,netbsd,openbsd,win32,win64]; + OSes := LibMicroHttpdOSes; if Defaults.CPU=jvm then OSes := OSes - [java,android]; end; @@ -424,9 +427,12 @@ begin AddUnit('sqldbrestbridge'); AddUnit('sqldbrestconst'); end; + end; +end; {$ifndef ALLPACKAGES} - Run; - end; +begin + add_fcl_web(''); + Installer.Run; end. {$endif ALLPACKAGES} diff --git a/packages/fpmake_proc.inc b/packages/fpmake_proc.inc index 2cd97787a5..34756b0cee 100644 --- a/packages/fpmake_proc.inc +++ b/packages/fpmake_proc.inc @@ -182,11 +182,7 @@ begin {$include fcl-stl/fpmake.pp} end; -procedure add_fcl_web(const ADirectory: string); -begin - with Installer do {$include fcl-web/fpmake.pp} -end; procedure add_fcl_xml(const ADirectory: string); begin diff --git a/packages/libmicrohttpd/fpmake.pp b/packages/libmicrohttpd/fpmake.pp index 56c073bcde..7a5e922131 100644 --- a/packages/libmicrohttpd/fpmake.pp +++ b/packages/libmicrohttpd/fpmake.pp @@ -25,7 +25,7 @@ begin P.Description := 'Event and threaded based micro-http server library interface'; P.NeedLibC:= true; P.Dependencies.Add('rtl-extra'); - P.OSes := [android,freebsd,linux,netbsd,openbsd,win32,win64]; + P.OSes := AllUnixOSes + [win32,win64]; if Defaults.CPU=jvm then P.OSes := P.OSes - [java,android];