fpc/packages/googleapi/fpmake.pp
2023-07-27 19:04:09 +02:00

170 lines
7.6 KiB
ObjectPascal

{$ifndef ALLPACKAGES}
program fpmake;
{$mode objfpc}{$h+}
uses {$ifdef unix}cthreads,{$endif} fpmkunit;
{$endif}
Procedure Add_Google(ADirectory : string);
function StdDep(T : TTarget) : TTarget;
begin
T.Dependencies.AddUnit('googlebase');
T.Dependencies.AddUnit('googleservice');
Result:=T;
end;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
P:=AddPackage('googleapi');
P.ShortName:='gapi';
P.Author := 'Michael Van Canneyt';
P.License := 'LGPL with modification, ';
P.HomepageURL := 'www.freepascal.org';
P.Email := '';
P.Description := 'Google API client libraries.';
P.NeedLibC:= false;
P.OSes := [beos,haiku,freebsd,darwin,iphonesim,ios,solaris,netbsd,openbsd,linux,win32,win64,wince,aix,amiga,aros,morphos,dragonfly];
P.Directory:=ADirectory;
P.Version:='3.3.1';
P.Dependencies.Add('fcl-base');
P.Dependencies.Add('rtl-extra');
P.Dependencies.Add('rtl-objpas');
P.Dependencies.Add('fcl-json');
P.Dependencies.Add('fcl-web');
P.SourcePath.Add('src/base');
P.SourcePath.Add('src/bindings');
T:=P.Targets.AddUnit('googlebase.pp');
T:=P.Targets.AddUnit('googleclient.pp');
T:=P.Targets.AddUnit('googleservice.pp');
T.Dependencies.AddUnit('googleclient');
T.Dependencies.AddUnit('googlebase');
// add this back later if we setup the generator to be included in the build
// T:=StdDep(P.Targets.AddUnit('googlediscoverytopas.pp'));
T:=StdDep(P.Targets.AddUnit('googleadexchangebuyer.pp'));
T:=StdDep(P.Targets.AddUnit('googleadexchangeseller.pp'));
T:=StdDep(P.Targets.AddUnit('googleadmin.pp'));
T:=StdDep(P.Targets.AddUnit('googleadsense.pp'));
T:=StdDep(P.Targets.AddUnit('googleadsensehost.pp'));
T:=StdDep(P.Targets.AddUnit('googleanalytics.pp'));
T:=StdDep(P.Targets.AddUnit('googleandroidenterprise.pp'));
T:=StdDep(P.Targets.AddUnit('googleandroidpublisher.pp'));
T:=StdDep(P.Targets.AddUnit('googleappsactivity.pp'));
T:=StdDep(P.Targets.AddUnit('googleappstate.pp'));
T:=StdDep(P.Targets.AddUnit('googleaudit.pp'));
T:=StdDep(P.Targets.AddUnit('googleautoscaler.pp'));
T:=StdDep(P.Targets.AddUnit('googlebigquery.pp'));
T:=StdDep(P.Targets.AddUnit('googleblogger.pp'));
T:=StdDep(P.Targets.AddUnit('googlebooks.pp'));
T:=StdDep(P.Targets.AddUnit('googlecalendar.pp'));
T:=StdDep(P.Targets.AddUnit('googlecivicinfo.pp'));
T:=StdDep(P.Targets.AddUnit('googlecloudmonitoring.pp'));
T:=StdDep(P.Targets.AddUnit('googlecompute.pp'));
T:=StdDep(P.Targets.AddUnit('googlecomputeaccounts.pp'));
T:=StdDep(P.Targets.AddUnit('googlecontainer.pp'));
T:=StdDep(P.Targets.AddUnit('googlecontent.pp'));
T:=StdDep(P.Targets.AddUnit('googlecoordinate.pp'));
T:=StdDep(P.Targets.AddUnit('googlecustomsearch.pp'));
T:=StdDep(P.Targets.AddUnit('googledataflow.pp'));
T:=StdDep(P.Targets.AddUnit('googledatastore.pp'));
T:=StdDep(P.Targets.AddUnit('googledeploymentmanager.pp'));
T:=StdDep(P.Targets.AddUnit('googledfareporting.pp'));
T:=StdDep(P.Targets.AddUnit('googlediscovery.pp'));
T:=StdDep(P.Targets.AddUnit('googledns.pp'));
T:=StdDep(P.Targets.AddUnit('googledoubleclickbidmanager.pp'));
T:=StdDep(P.Targets.AddUnit('googledoubleclicksearch.pp'));
T:=StdDep(P.Targets.AddUnit('googledrive.pp'));
T:=StdDep(P.Targets.AddUnit('googlefitness.pp'));
T:=StdDep(P.Targets.AddUnit('googlefreebase.pp'));
T:=StdDep(P.Targets.AddUnit('googlefusiontables.pp'));
T:=StdDep(P.Targets.AddUnit('googlegames.pp'));
T:=StdDep(P.Targets.AddUnit('googlegamesconfiguration.pp'));
T:=StdDep(P.Targets.AddUnit('googlegamesmanagement.pp'));
T:=StdDep(P.Targets.AddUnit('googlegan.pp'));
T:=StdDep(P.Targets.AddUnit('googlegenomics.pp'));
T:=StdDep(P.Targets.AddUnit('googlegmail.pp'));
T:=StdDep(P.Targets.AddUnit('googlegroupsmigration.pp'));
T:=StdDep(P.Targets.AddUnit('googlegroupssettings.pp'));
T:=StdDep(P.Targets.AddUnit('googleidentitytoolkit.pp'));
T:=StdDep(P.Targets.AddUnit('googlelicensing.pp'));
T:=StdDep(P.Targets.AddUnit('googlemanager.pp'));
T:=StdDep(P.Targets.AddUnit('googlemapsengine.pp'));
T:=StdDep(P.Targets.AddUnit('googlemirror.pp'));
T:=StdDep(P.Targets.AddUnit('googleoauth2.pp'));
T:=StdDep(P.Targets.AddUnit('googlepagespeedonline.pp'));
T:=StdDep(P.Targets.AddUnit('googleplus.pp'));
T:=StdDep(P.Targets.AddUnit('googleplusdomains.pp'));
T:=StdDep(P.Targets.AddUnit('googleprediction.pp'));
T:=StdDep(P.Targets.AddUnit('googlepubsub.pp'));
T:=StdDep(P.Targets.AddUnit('googleqpxexpress.pp'));
T:=StdDep(P.Targets.AddUnit('googlereplicapool.pp'));
T:=StdDep(P.Targets.AddUnit('googlereplicapoolupdater.pp'));
T:=StdDep(P.Targets.AddUnit('googlereseller.pp'));
T:=StdDep(P.Targets.AddUnit('googleresourceviews.pp'));
T:=StdDep(P.Targets.AddUnit('googlesiteverification.pp'));
T:=StdDep(P.Targets.AddUnit('googlespectrum.pp'));
T:=StdDep(P.Targets.AddUnit('googlesqladmin.pp'));
T:=StdDep(P.Targets.AddUnit('googlestorage.pp'));
T:=StdDep(P.Targets.AddUnit('googletagmanager.pp'));
T:=StdDep(P.Targets.AddUnit('googletaskqueue.pp'));
T:=StdDep(P.Targets.AddUnit('googletasks.pp'));
T:=StdDep(P.Targets.AddUnit('googletranslate.pp'));
T:=StdDep(P.Targets.AddUnit('googleurlshortener.pp'));
T:=StdDep(P.Targets.AddUnit('googlewebfonts.pp'));
T:=StdDep(P.Targets.AddUnit('googlewebmasters.pp'));
T:=StdDep(P.Targets.AddUnit('googleyoutube.pp'));
T:=StdDep(P.Targets.AddUnit('googleyoutubeanalytics.pp'));
T:=StdDep(P.Targets.AddUnit('googlecloudlatencytest.pp'));
T:=StdDep(P.Targets.AddUnit('googlecloudsearch.pp'));
T:=StdDep(P.Targets.AddUnit('googlelogging.pp'));
T:=StdDep(P.Targets.AddUnit('googleacceleratedmobilepageurl.pp'));
T:=StdDep(P.Targets.AddUnit('googleadexchangebuyer2.pp'));
T:=StdDep(P.Targets.AddUnit('googleanalyticsreporting.pp'));
T:=StdDep(P.Targets.AddUnit('googleappengine.pp'));
T:=StdDep(P.Targets.AddUnit('googleclassroom.pp'));
T:=StdDep(P.Targets.AddUnit('googlecloudbilling.pp'));
T:=StdDep(P.Targets.AddUnit('googlecloudbuild.pp'));
T:=StdDep(P.Targets.AddUnit('googleclouddebugger.pp'));
T:=StdDep(P.Targets.AddUnit('googleclouderrorreporting.pp'));
T:=StdDep(P.Targets.AddUnit('googlecloudresourcemanager.pp'));
T:=StdDep(P.Targets.AddUnit('googlecloudtrace.pp'));
T:=StdDep(P.Targets.AddUnit('googleclouduseraccounts.pp'));
T:=StdDep(P.Targets.AddUnit('googleconsumersurveys.pp'));
T:=StdDep(P.Targets.AddUnit('googledataproc.pp'));
T:=StdDep(P.Targets.AddUnit('googlefirebaserules.pp'));
T:=StdDep(P.Targets.AddUnit('googleiam.pp'));
T:=StdDep(P.Targets.AddUnit('googlekgsearch.pp'));
T:=StdDep(P.Targets.AddUnit('googlemonitoring.pp'));
T:=StdDep(P.Targets.AddUnit('googlepartners.pp'));
T:=StdDep(P.Targets.AddUnit('googlepeople.pp'));
T:=StdDep(P.Targets.AddUnit('googleplaymoviespartner.pp'));
T:=StdDep(P.Targets.AddUnit('googleproximitybeacon.pp'));
T:=StdDep(P.Targets.AddUnit('googleruntimeconfig.pp'));
T:=StdDep(P.Targets.AddUnit('googlesafebrowsing.pp'));
T:=StdDep(P.Targets.AddUnit('googlescript.pp'));
T:=StdDep(P.Targets.AddUnit('googleserviceregistry.pp'));
T:=StdDep(P.Targets.AddUnit('googlesheets.pp'));
T:=StdDep(P.Targets.AddUnit('googlestoragetransfer.pp'));
T:=StdDep(P.Targets.AddUnit('googletoolresults.pp'));
T:=StdDep(P.Targets.AddUnit('googlevision.pp'));
T:=StdDep(P.Targets.AddUnit('googleyoutubereporting.pp'));
P.NamespaceMap:='namespaces.lst';
end;
end;
{$ifndef ALLPACKAGES}
begin
Add_Google('');
Installer.Run;
end.
{$endif ALLPACKAGES}