2013-12-12 06:08:10 +00:00
|
|
|
# Copyright (C) 2013 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
LATIN_IME_JNI_SRC_FILES := \
|
|
|
|
com_android_inputmethod_keyboard_ProximityInfo.cpp \
|
|
|
|
com_android_inputmethod_latin_BinaryDictionary.cpp \
|
2014-03-05 03:49:04 +00:00
|
|
|
com_android_inputmethod_latin_BinaryDictionaryUtils.cpp \
|
2013-12-12 06:08:10 +00:00
|
|
|
com_android_inputmethod_latin_DicTraverseSession.cpp \
|
|
|
|
jni_common.cpp
|
|
|
|
|
|
|
|
LATIN_IME_CORE_SRC_FILES := \
|
|
|
|
suggest/core/suggest.cpp \
|
|
|
|
$(addprefix suggest/core/dicnode/, \
|
|
|
|
dic_node.cpp \
|
|
|
|
dic_node_utils.cpp \
|
|
|
|
dic_nodes_cache.cpp) \
|
|
|
|
$(addprefix suggest/core/dictionary/, \
|
|
|
|
dictionary.cpp \
|
2014-06-06 08:37:46 +00:00
|
|
|
dictionary_utils.cpp \
|
2013-12-12 06:08:10 +00:00
|
|
|
digraph_utils.cpp \
|
|
|
|
error_type_utils.cpp \
|
|
|
|
multi_bigram_map.cpp \
|
2014-04-08 09:24:06 +00:00
|
|
|
property/word_property.cpp) \
|
2013-12-12 06:08:10 +00:00
|
|
|
$(addprefix suggest/core/layout/, \
|
|
|
|
additional_proximity_chars.cpp \
|
|
|
|
proximity_info.cpp \
|
|
|
|
proximity_info_params.cpp \
|
|
|
|
proximity_info_state.cpp \
|
|
|
|
proximity_info_state_utils.cpp) \
|
|
|
|
suggest/core/policy/weighting.cpp \
|
|
|
|
suggest/core/session/dic_traverse_session.cpp \
|
2014-03-07 10:36:19 +00:00
|
|
|
$(addprefix suggest/core/result/, \
|
|
|
|
suggestion_results.cpp \
|
|
|
|
suggestions_output_utils.cpp) \
|
2013-12-12 06:08:10 +00:00
|
|
|
$(addprefix suggest/policyimpl/dictionary/, \
|
|
|
|
header/header_policy.cpp \
|
|
|
|
header/header_read_write_utils.cpp \
|
|
|
|
structure/dictionary_structure_with_buffer_policy_factory.cpp) \
|
|
|
|
$(addprefix suggest/policyimpl/dictionary/structure/pt_common/, \
|
2014-05-12 12:05:14 +00:00
|
|
|
bigram/bigram_list_read_write_utils.cpp \
|
2013-12-12 06:08:10 +00:00
|
|
|
dynamic_pt_gc_event_listeners.cpp \
|
|
|
|
dynamic_pt_reading_helper.cpp \
|
|
|
|
dynamic_pt_reading_utils.cpp \
|
|
|
|
dynamic_pt_updating_helper.cpp \
|
2014-04-30 05:28:08 +00:00
|
|
|
dynamic_pt_writing_utils.cpp \
|
2014-05-12 12:05:14 +00:00
|
|
|
patricia_trie_reading_utils.cpp \
|
|
|
|
shortcut/shortcut_list_reading_utils.cpp ) \
|
2013-12-12 06:08:10 +00:00
|
|
|
$(addprefix suggest/policyimpl/dictionary/structure/v2/, \
|
|
|
|
patricia_trie_policy.cpp \
|
2014-02-10 12:09:55 +00:00
|
|
|
ver2_patricia_trie_node_reader.cpp \
|
|
|
|
ver2_pt_node_array_reader.cpp) \
|
2013-12-12 06:08:10 +00:00
|
|
|
$(addprefix suggest/policyimpl/dictionary/structure/v4/, \
|
|
|
|
ver4_dict_buffers.cpp \
|
|
|
|
ver4_dict_constants.cpp \
|
|
|
|
ver4_patricia_trie_node_reader.cpp \
|
|
|
|
ver4_patricia_trie_node_writer.cpp \
|
|
|
|
ver4_patricia_trie_policy.cpp \
|
|
|
|
ver4_patricia_trie_reading_utils.cpp \
|
2014-02-10 12:06:07 +00:00
|
|
|
ver4_patricia_trie_writing_helper.cpp \
|
|
|
|
ver4_pt_node_array_reader.cpp) \
|
2013-12-12 06:08:10 +00:00
|
|
|
$(addprefix suggest/policyimpl/dictionary/structure/v4/content/, \
|
2014-08-01 11:19:16 +00:00
|
|
|
language_model_dict_content.cpp \
|
2013-12-12 06:08:10 +00:00
|
|
|
shortcut_dict_content.cpp \
|
|
|
|
sparse_table_dict_content.cpp \
|
|
|
|
terminal_position_lookup_table.cpp) \
|
|
|
|
$(addprefix suggest/policyimpl/dictionary/utils/, \
|
|
|
|
buffer_with_extendable_buffer.cpp \
|
|
|
|
byte_array_utils.cpp \
|
|
|
|
dict_file_writing_utils.cpp \
|
|
|
|
file_utils.cpp \
|
|
|
|
forgetting_curve_utils.cpp \
|
|
|
|
format_utils.cpp \
|
|
|
|
mmapped_buffer.cpp \
|
2014-07-29 08:00:29 +00:00
|
|
|
sparse_table.cpp \
|
|
|
|
trie_map.cpp ) \
|
2013-12-12 06:08:10 +00:00
|
|
|
suggest/policyimpl/gesture/gesture_suggest_policy_factory.cpp \
|
|
|
|
$(addprefix suggest/policyimpl/typing/, \
|
|
|
|
scoring_params.cpp \
|
|
|
|
typing_scoring.cpp \
|
|
|
|
typing_suggest_policy.cpp \
|
|
|
|
typing_traversal.cpp \
|
|
|
|
typing_weighting.cpp) \
|
|
|
|
$(addprefix utils/, \
|
|
|
|
autocorrection_threshold_utils.cpp \
|
|
|
|
char_utils.cpp \
|
2014-05-14 11:05:10 +00:00
|
|
|
jni_data_utils.cpp \
|
2013-12-12 06:08:10 +00:00
|
|
|
log_utils.cpp \
|
|
|
|
time_keeper.cpp)
|
2014-04-01 16:23:07 +00:00
|
|
|
|
2014-06-10 10:22:40 +00:00
|
|
|
LATIN_IME_CORE_SRC_FILES_BACKWARD_V402 := \
|
|
|
|
$(addprefix suggest/policyimpl/dictionary/structure/backward/v402/, \
|
2014-05-14 10:09:01 +00:00
|
|
|
ver4_dict_buffers.cpp \
|
|
|
|
ver4_dict_constants.cpp \
|
|
|
|
ver4_patricia_trie_node_reader.cpp \
|
|
|
|
ver4_patricia_trie_node_writer.cpp \
|
|
|
|
ver4_patricia_trie_policy.cpp \
|
|
|
|
ver4_patricia_trie_reading_utils.cpp \
|
|
|
|
ver4_patricia_trie_writing_helper.cpp \
|
|
|
|
ver4_pt_node_array_reader.cpp) \
|
2014-06-10 10:22:40 +00:00
|
|
|
$(addprefix suggest/policyimpl/dictionary/structure/backward/v402/content/, \
|
2014-05-14 10:09:01 +00:00
|
|
|
bigram_dict_content.cpp \
|
|
|
|
probability_dict_content.cpp \
|
|
|
|
shortcut_dict_content.cpp \
|
|
|
|
sparse_table_dict_content.cpp \
|
|
|
|
terminal_position_lookup_table.cpp) \
|
2014-06-10 10:22:40 +00:00
|
|
|
$(addprefix suggest/policyimpl/dictionary/structure/backward/v402/bigram/, \
|
2014-05-14 10:09:01 +00:00
|
|
|
ver4_bigram_list_policy.cpp)
|
|
|
|
|
2014-06-10 10:22:40 +00:00
|
|
|
LATIN_IME_CORE_SRC_FILES += $(LATIN_IME_CORE_SRC_FILES_BACKWARD_V402)
|
2014-05-14 10:09:01 +00:00
|
|
|
|
2014-04-01 16:23:07 +00:00
|
|
|
LATIN_IME_CORE_TEST_FILES := \
|
2014-04-09 02:31:43 +00:00
|
|
|
defines_test.cpp \
|
2014-08-29 04:02:22 +00:00
|
|
|
suggest/core/dicnode/dic_node_pool_test.cpp \
|
2014-04-09 08:15:55 +00:00
|
|
|
suggest/core/dictionary/bloom_filter_test.cpp \
|
2014-08-29 04:02:22 +00:00
|
|
|
suggest/core/layout/normal_distribution_2d_test.cpp \
|
2014-08-05 03:38:55 +00:00
|
|
|
suggest/policyimpl/dictionary/structure/v4/content/language_model_dict_content_test.cpp \
|
|
|
|
suggest/policyimpl/dictionary/structure/v4/content/probability_entry_test.cpp \
|
2014-07-24 20:18:00 +00:00
|
|
|
suggest/policyimpl/dictionary/utils/buffer_with_extendable_buffer_test.cpp \
|
2014-08-25 07:52:12 +00:00
|
|
|
suggest/policyimpl/dictionary/utils/byte_array_utils_test.cpp \
|
2014-08-25 13:27:01 +00:00
|
|
|
suggest/policyimpl/dictionary/utils/sparse_table_test.cpp \
|
2014-07-29 08:00:29 +00:00
|
|
|
suggest/policyimpl/dictionary/utils/trie_map_test.cpp \
|
2014-07-31 10:32:02 +00:00
|
|
|
utils/autocorrection_threshold_utils_test.cpp \
|
2014-08-27 05:39:27 +00:00
|
|
|
utils/int_array_view_test.cpp \
|
|
|
|
utils/time_keeper_test.cpp
|