summaryrefslogtreecommitdiff
path: root/tools/aapt/Main.h
diff options
context:
space:
mode:
author Jerome Dochez <jedo@google.com> 2014-09-26 10:21:21 -0700
committer Jerome Dochez <jedo@google.com> 2014-10-02 15:43:55 -0700
commit6f1280cf170b358a57ff70341a9f2ad224e5a662 (patch)
tree86e6e7c829b8a112973b4be9b38deeca2ec179d3 /tools/aapt/Main.h
parent519006395204ba3eab77ae420d20eb70ebb78af5 (diff)
Added a daemon mode to aapt to receive streams of commands from gradle.
When crunching png, we used to spawn a separate aapt process from java which is slow and resource intensive. Introduced a daemon mode to appt which when invoked with -m parameter will listen from commands on stdin and give report of command execution on stdout. One one command is supported so far : s f1 f2 This command perform a single png crunch, f1 pointing to the input png file to crunch, and f2 pointing to the path for the resulting crunced file. Expected output from the command is "Done" or "Error". Change-Id: Iaf1d865e8d5ee5d36abe39dea6443715865a98d3
Diffstat (limited to 'tools/aapt/Main.h')
-rw-r--r--tools/aapt/Main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt/Main.h b/tools/aapt/Main.h
index 089dde5fcb8c..e84c4c503cd2 100644
--- a/tools/aapt/Main.h
+++ b/tools/aapt/Main.h
@@ -36,6 +36,7 @@ extern int doRemove(Bundle* bundle);
extern int doPackage(Bundle* bundle);
extern int doCrunch(Bundle* bundle);
extern int doSingleCrunch(Bundle* bundle);
+extern int runInDaemonMode(Bundle* bundle);
extern int calcPercent(long uncompressedLen, long compressedLen);