Add HAIKU_PACKAGE_COMPRESSION_LEVEL build variable

It allows to control the compression level used for package creation
and update. The default (9) is *very* slow, so developers may want to
use a smaller level during the regular development process to keep
turn-around times low.
This commit is contained in:
Ingo Weinhold
2013-05-25 01:12:26 +02:00
parent 796343ed73
commit 06f5437c21
3 changed files with 23 additions and 2 deletions
+6
View File
@@ -310,6 +310,8 @@ rule BuildHaikuPackage package : packageInfo
AddVariableToScript $(script) : tmpDir : $(tempDir) ;
AddVariableToScript $(script) : addBuildCompatibilityLibDir
: $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR) ;
AddVariableToScript $(script) : compressionLevel
: $(HAIKU_PACKAGE_COMPRESSION_LEVEL) ;
AddVariableToScript $(script) : updateOnly
: [ on $(package) return $(HAIKU_CONTAINER_UPDATE_ONLY) ] ;
AddTargetVariableToScript $(script) : <build>addattr ;
@@ -434,3 +436,7 @@ rule AddLibrariesToPackage directory : libs
AddLibrariesToContainer $(HAIKU_CURRENTLY_BUILT_HAIKU_PACKAGE)
: $(directory) : $(libs) ;
}
# default value for the package compression level
HAIKU_PACKAGE_COMPRESSION_LEVEL ?= 9 ;