summaryrefslogtreecommitdiff
path: root/tools/aapt/Bundle.h
diff options
context:
space:
mode:
authorJerome Dochez <jedo@google.com>2014-09-26 10:21:21 -0700
committerJerome Dochez <jedo@google.com>2014-10-02 15:43:55 -0700
commit6f1280cf170b358a57ff70341a9f2ad224e5a662 (patch)
tree86e6e7c829b8a112973b4be9b38deeca2ec179d3 /tools/aapt/Bundle.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/Bundle.h')
-rw-r--r--tools/aapt/Bundle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt/Bundle.h b/tools/aapt/Bundle.h
index 9bed899423c8..cb34448874ad 100644
--- a/tools/aapt/Bundle.h
+++ b/tools/aapt/Bundle.h
@@ -40,6 +40,7 @@ typedef enum Command {
kCommandPackage,
kCommandCrunch,
kCommandSingleCrunch,
+ kCommandDaemon
} Command;
/*