aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dicttool/Android.mk
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-08-03 17:05:41 +0900
committerJean Chalard <jchalard@google.com>2012-08-04 01:11:46 +0900
commit54e84a00fc032ba566cbda41feafa71de77e1c43 (patch)
treee7f058ff1039572b8318955131a8a8003479b4a6 /tools/dicttool/Android.mk
parent1644a3c7323ae33063774d32ce2e0f8698ff712d (diff)
downloadlatinime-54e84a00fc032ba566cbda41feafa71de77e1c43.tar.gz
latinime-54e84a00fc032ba566cbda41feafa71de77e1c43.tar.xz
latinime-54e84a00fc032ba566cbda41feafa71de77e1c43.zip
Make a makedict command for dicttool (A3)
This behaves exactly as the old makedict command. Further changes will redirect the calls to makedict to this, so as to consolidate similar code. Groundwork for Bug: 6429606 Change-Id: Ibeadbf48bec70f988a15ca36ebf5d1ce3b5b54ea
Diffstat (limited to 'tools/dicttool/Android.mk')
-rw-r--r--tools/dicttool/Android.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/dicttool/Android.mk b/tools/dicttool/Android.mk
index 9e8dbe0f8..e9c11acc4 100644
--- a/tools/dicttool/Android.mk
+++ b/tools/dicttool/Android.mk
@@ -16,9 +16,16 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := $(call all-java-files-under,src)
+MAKEDICT_CORE_SOURCE_DIRECTORY := ../../java/src/com/android/inputmethod/latin/makedict
+
+LOCAL_MAIN_SRC_FILES := $(call all-java-files-under,$(MAKEDICT_CORE_SOURCE_DIRECTORY))
+LOCAL_TOOL_SRC_FILES := $(call all-java-files-under,src)
+LOCAL_SRC_FILES := $(LOCAL_TOOL_SRC_FILES) \
+ $(filter-out $(addprefix %/, $(notdir $(LOCAL_TOOL_SRC_FILES))), $(LOCAL_MAIN_SRC_FILES)) \
+ $(call all-java-files-under,tests)
LOCAL_JAR_MANIFEST := etc/manifest.txt
LOCAL_MODULE := dicttool
+LOCAL_JAVA_LIBRARIES := junit
LOCAL_MODULE_TAGS := eng
include $(BUILD_HOST_JAVA_LIBRARY)