diff -r 77189681b787 -r 51eefa621de4 Project/Project.py --- a/Project/Project.py Sat Dec 01 11:45:24 2018 +0100 +++ b/Project/Project.py Thu Jan 10 14:22:59 2019 +0100 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2002 - 2018 Detlev Offenbach <detlev@die-offenbachs.de> +# Copyright (c) 2002 - 2019 Detlev Offenbach <detlev@die-offenbachs.de> # """ @@ -500,6 +500,12 @@ "Package": "", "RcSuffix": "", }, + "RCCPARAMS": { + "CompressionThreshold": 70, # default value + "CompressLevel": 0, # use zlib default + "CompressionDisable": False, + "PathPrefix": "", + }, "EOL": -1, } @@ -5670,7 +5676,7 @@ self.__makeProcess = None ######################################################################### - ## Below are methods implementing the some 'IDL' support functions + ## Below are methods implementing some 'IDL' support functions ######################################################################### def hasDefaultIdlCompilerParameters(self): @@ -5688,7 +5694,7 @@ } ######################################################################### - ## Below are methods implementing the some 'UIC' support functions + ## Below are methods implementing some 'UIC' support functions ######################################################################### def hasDefaultUicCompilerParameters(self): @@ -5703,3 +5709,32 @@ "Package": "", "RcSuffix": "", } + + ######################################################################### + ## Below are methods implementing some 'RCC' support functions + ######################################################################### + + def hasDefaultRccCompilerParameters(self): + """ + Public method to test, if the project contains the default rcc compiler + parameters. + + @return flag indicating default parameter set + @rtype bool + """ + return self.pdata["RCCPARAMS"] == \ + self.getDefaultRccCompilerParameters() + + def getDefaultRccCompilerParameters(self): + """ + Public method to get the default rcc compiler parameters. + + @return dictionary containing the default rcc compiler parameters + @rtype dict + """ + return { + "CompressionThreshold": 70, # default value + "CompressLevel": 0, # use zlib default + "CompressionDisable": False, + "PathPrefix": "", + }