Browse Source

* Give a warning when the internal-fpmkunit is being used

git-svn-id: trunk@34644 -
joost 8 years ago
parent
commit
1ec64844c9
2 changed files with 5 additions and 1 deletions
  1. 4 1
      packages/fppkg/src/pkgfpmake.pp
  2. 1 0
      packages/fppkg/src/pkgmessages.pp

+ 4 - 1
packages/fppkg/src/pkgfpmake.pp

@@ -230,7 +230,10 @@ begin
       AddOption('-XXs');
       // Create fpmkunit.pp if needed
       if NeedFPMKUnitSource then
-        CreateFPMKUnitSource(TempBuildDir+PathDelim+'fpmkunit.pp');
+        begin
+          Log(llWarning,SLogUseInternalFpmkunit);
+          CreateFPMKUnitSource(TempBuildDir+PathDelim+'fpmkunit.pp');
+        end;
       // Call compiler
       If ExecuteProcess(GFPpkg.FPMakeCompilerOptions.Compiler,OOptions+' '+FPmakeSrc)<>0 then
         begin

+ 1 - 0
packages/fppkg/src/pkgmessages.pp

@@ -87,6 +87,7 @@ Resourcestring
   SLogPackageChecksumChanged = 'Package %s needs to be rebuild, dependency %s is modified';
   SLogCheckBrokenDependenvies= 'Checking for broken dependencies';
   SLogFailedToCreateManifest = 'Failed to create manifest from fpmake.pp-file (%s) while scanning for available packages: %s';
+  SLogUseInternalFpmkunit    = 'Fpmkunit not available, fallback to internal version.';
 
   SLogCfgHeader                      = 'Settings from configuration-files:';
   SLogCfgSectionHeader               = ' %s-section:';