diff options
author | Johan Bergström <bugs@bergstroem.nu> | 2015-04-15 10:49:29 +1000 |
---|---|---|
committer | Johan Bergström <bugs@bergstroem.nu> | 2015-04-15 11:35:07 +1000 |
commit | c7769d417b4c1e78c16bc14d4327652a7aabde5f (patch) | |
tree | 9c7abeb2b0c973c91946765f8ab49dc2707d2205 /Makefile | |
parent | a530b2baf12822dd21ff22d2dea8cc484ddf5dc3 (diff) | |
download | android-node-v8-c7769d417b4c1e78c16bc14d4327652a7aabde5f.tar.gz android-node-v8-c7769d417b4c1e78c16bc14d4327652a7aabde5f.tar.bz2 android-node-v8-c7769d417b4c1e78c16bc14d4327652a7aabde5f.zip |
build: Expose xz compression level
On machines with limited resources a fair tradeoff could be trading
result size with less memory and cpu consumption. Expose a variable
that overrides the default (9).
Note: xz is often used to gain maximum possible compression, so
avoid lowering this if possible.
PR-URL: https://github.com/iojs/io.js/pull/1428
Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -223,6 +223,7 @@ TARBALL=$(TARNAME).tar BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH) BINARYTAR=$(BINARYNAME).tar XZ=$(shell which xz > /dev/null 2>&1; echo $$?) +XZ_COMPRESSION ?= 9 PKG=out/$(TARNAME).pkg PACKAGEMAKER ?= /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker @@ -296,7 +297,7 @@ $(TARBALL): release-only $(NODE_EXE) doc rm -rf $(TARNAME) gzip -c -f -9 $(TARNAME).tar > $(TARNAME).tar.gz ifeq ($(XZ), 0) - xz -c -f -9 $(TARNAME).tar > $(TARNAME).tar.xz + xz -c -f -$(XZ_COMPRESSION) $(TARNAME).tar > $(TARNAME).tar.xz endif rm $(TARNAME).tar @@ -314,7 +315,7 @@ $(BINARYTAR): release-only rm -rf $(BINARYNAME) gzip -c -f -9 $(BINARYNAME).tar > $(BINARYNAME).tar.gz ifeq ($(XZ), 0) - xz -c -f -9 $(BINARYNAME).tar > $(BINARYNAME).tar.xz + xz -c -f -$(XZ_COMPRESSION) $(BINARYNAME).tar > $(BINARYNAME).tar.xz endif rm $(BINARYNAME).tar |