From ece7240c7ac09b1448998c202f991d0acd4bab01 Mon Sep 17 00:00:00 2001
From: Ying Wang <wangying@google.com>
Date: Tue, 29 Jul 2014 10:46:38 -0700
Subject: [PATCH] Don't build dicttool unless it's explicitly requested.

It easily breaks the checkbuild.

Change-Id: I43b35fade550ff9d64782ea43cb6e3a804424830
---
 tools/dicttool/Android.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/dicttool/Android.mk b/tools/dicttool/Android.mk
index b108a8a81a..e4de59db67 100644
--- a/tools/dicttool/Android.mk
+++ b/tools/dicttool/Android.mk
@@ -13,6 +13,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+# Only build if it's explicitly requested, or running mm/mmm.
+ifneq ($(ONE_SHOT_MAKEFILE)$(filter $(MAKECMDGOALS),dicttool_aosp),)
+
 # HACK: Temporarily disable host tool build on Mac until the build system is ready for C++11.
 LATINIME_HOST_OSNAME := $(shell uname -s)
 ifeq ($(LATINIME_HOST_OSNAME), Darwin) # TODO: Remove this
@@ -98,3 +101,5 @@ endif # Darwin - TODO: Remove this
 LATINIME_DICTTOOL_AOSP_LOCAL_PATH :=
 LATINIME_LOCAL_DIR :=
 LATINIME_HOST_OSNAME :=
+
+endif
-- 
GitLab