Merge "Use Clang for dicttool"
This commit is contained in:
commit
ff2456c800
3 changed files with 10 additions and 11 deletions
|
@ -35,7 +35,7 @@ LATINIME_TESTS_SOURCE_DIRECTORY := $(LATINIME_LOCAL_DIR)/tests/src/com/android/i
|
||||||
# Dependencies for Dicttool. Most of these files are needed by BinaryDictionary.java. Note that
|
# Dependencies for Dicttool. Most of these files are needed by BinaryDictionary.java. Note that
|
||||||
# a significant part of the dependencies are mocked in the compat/ directory, with empty or
|
# a significant part of the dependencies are mocked in the compat/ directory, with empty or
|
||||||
# nearly-empty implementations, for parts that we don't use in Dicttool.
|
# nearly-empty implementations, for parts that we don't use in Dicttool.
|
||||||
LATINIME_SRCS_FOR_DICTTOOL := \
|
LATINIME_SRC_FILES_FOR_DICTTOOL := \
|
||||||
event/Combiner.java \
|
event/Combiner.java \
|
||||||
event/Event.java \
|
event/Event.java \
|
||||||
latin/BinaryDictionary.java \
|
latin/BinaryDictionary.java \
|
||||||
|
@ -57,12 +57,12 @@ LATINIME_SRCS_FOR_DICTTOOL := \
|
||||||
latin/utils/ResizableIntArray.java \
|
latin/utils/ResizableIntArray.java \
|
||||||
latin/utils/StringUtils.java
|
latin/utils/StringUtils.java
|
||||||
|
|
||||||
LATINIME_TEST_SRCS_FOR_DICTTOOL := \
|
LATINIME_TEST_SRC_FILES_FOR_DICTTOOL := \
|
||||||
utils/ByteArrayDictBuffer.java
|
utils/ByteArrayDictBuffer.java
|
||||||
|
|
||||||
USED_TARGETED_SRCS := \
|
USED_TARGETED_SRCS := \
|
||||||
$(addprefix $(LATINIME_BASE_SOURCE_DIRECTORY)/, $(LATINIME_SRCS_FOR_DICTTOOL)) \
|
$(addprefix $(LATINIME_BASE_SOURCE_DIRECTORY)/, $(LATINIME_SRC_FILES_FOR_DICTTOOL)) \
|
||||||
$(addprefix $(LATINIME_TESTS_SOURCE_DIRECTORY)/, $(LATINIME_TEST_SRCS_FOR_DICTTOOL))
|
$(addprefix $(LATINIME_TESTS_SOURCE_DIRECTORY)/, $(LATINIME_TEST_SRC_FILES_FOR_DICTTOOL))
|
||||||
|
|
||||||
DICTTOOL_ONDEVICE_TESTS_DIRECTORY := \
|
DICTTOOL_ONDEVICE_TESTS_DIRECTORY := \
|
||||||
$(LATINIME_LOCAL_DIR)/tests/src/com/android/inputmethod/latin/makedict/
|
$(LATINIME_LOCAL_DIR)/tests/src/com/android/inputmethod/latin/makedict/
|
||||||
|
@ -75,12 +75,11 @@ LOCAL_ANNOTATIONS_SRC_FILES := \
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(LOCAL_TOOL_SRC_FILES) \
|
LOCAL_SRC_FILES := $(LOCAL_TOOL_SRC_FILES) \
|
||||||
$(filter-out $(addprefix %/, $(notdir $(LOCAL_TOOL_SRC_FILES))), $(LOCAL_MAIN_SRC_FILES)) \
|
$(filter-out $(addprefix %/, $(notdir $(LOCAL_TOOL_SRC_FILES))), $(LOCAL_MAIN_SRC_FILES)) \
|
||||||
$(LOCAL_ANNOTATIONS_SRC_FILES) \
|
$(call all-java-files-under, $(DICTTOOL_COMPAT_TESTS_DIRECTORY)) \
|
||||||
|
$(LOCAL_ANNOTATIONS_SRC_FILES) $(USED_TARGETED_SRCS) \
|
||||||
$(LATINIME_BASE_SOURCE_DIRECTORY)/latin/Constants.java \
|
$(LATINIME_BASE_SOURCE_DIRECTORY)/latin/Constants.java \
|
||||||
$(call all-java-files-under, tests) \
|
$(call all-java-files-under, tests) \
|
||||||
$(call all-java-files-under, $(DICTTOOL_ONDEVICE_TESTS_DIRECTORY)) \
|
$(call all-java-files-under, $(DICTTOOL_ONDEVICE_TESTS_DIRECTORY))
|
||||||
$(call all-java-files-under, $(DICTTOOL_COMPAT_TESTS_DIRECTORY)) \
|
|
||||||
$(USED_TARGETED_SRCS)
|
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES := junit
|
LOCAL_JAVA_LIBRARIES := junit
|
||||||
LOCAL_ADDITIONAL_DEPENDENCIES := $(LATINIME_HOST_NATIVE_LIBNAME)
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LATINIME_HOST_NATIVE_LIBNAME)
|
||||||
|
|
|
@ -37,9 +37,9 @@ endif #HOST_JDK_IS_64BIT_VERSION
|
||||||
LOCAL_CFLAGS += -DHOST_TOOL -fPIC -Wno-deprecated
|
LOCAL_CFLAGS += -DHOST_TOOL -fPIC -Wno-deprecated
|
||||||
LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
|
LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
|
||||||
|
|
||||||
|
LOCAL_CLANG := true
|
||||||
# For C++11
|
# For C++11
|
||||||
# TODO: Change this to -std=c++11
|
LOCAL_CFLAGS += -std=c++11
|
||||||
LOCAL_CFLAGS += -std=gnu++0x
|
|
||||||
|
|
||||||
LATINIME_NATIVE_JNI_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni
|
LATINIME_NATIVE_JNI_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni
|
||||||
LATINIME_NATIVE_SRC_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni/src
|
LATINIME_NATIVE_SRC_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni/src
|
||||||
|
|
|
@ -21,5 +21,5 @@ public final class JniLibName {
|
||||||
// This class is not publicly instantiable.
|
// This class is not publicly instantiable.
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final String JNI_LIB_NAME = "latinime-dicttool-host";
|
public static final String JNI_LIB_NAME = "latinime-aosp-dicttool-host";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue