1# Copyright (C) 2013 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LATIN_IME_JNI_SRC_FILES := \ 16 com_android_inputmethod_keyboard_ProximityInfo.cpp \ 17 com_android_inputmethod_latin_BinaryDictionary.cpp \ 18 com_android_inputmethod_latin_BinaryDictionaryUtils.cpp \ 19 com_android_inputmethod_latin_DicTraverseSession.cpp \ 20 jni_common.cpp 21 22LATIN_IME_CORE_SRC_FILES := \ 23 suggest/core/suggest.cpp \ 24 $(addprefix suggest/core/dicnode/, \ 25 dic_node.cpp \ 26 dic_node_utils.cpp \ 27 dic_nodes_cache.cpp) \ 28 $(addprefix suggest/core/dictionary/, \ 29 dictionary.cpp \ 30 dictionary_utils.cpp \ 31 digraph_utils.cpp \ 32 error_type_utils.cpp \ 33 multi_bigram_map.cpp \ 34 property/word_property.cpp) \ 35 $(addprefix suggest/core/layout/, \ 36 additional_proximity_chars.cpp \ 37 proximity_info.cpp \ 38 proximity_info_params.cpp \ 39 proximity_info_state.cpp \ 40 proximity_info_state_utils.cpp) \ 41 suggest/core/policy/weighting.cpp \ 42 suggest/core/session/dic_traverse_session.cpp \ 43 $(addprefix suggest/core/result/, \ 44 suggestion_results.cpp \ 45 suggestions_output_utils.cpp) \ 46 $(addprefix suggest/policyimpl/dictionary/, \ 47 header/header_policy.cpp \ 48 header/header_read_write_utils.cpp \ 49 structure/dictionary_structure_with_buffer_policy_factory.cpp) \ 50 $(addprefix suggest/policyimpl/dictionary/structure/pt_common/, \ 51 bigram/bigram_list_read_write_utils.cpp \ 52 dynamic_pt_gc_event_listeners.cpp \ 53 dynamic_pt_reading_helper.cpp \ 54 dynamic_pt_reading_utils.cpp \ 55 dynamic_pt_updating_helper.cpp \ 56 dynamic_pt_writing_utils.cpp \ 57 patricia_trie_reading_utils.cpp \ 58 shortcut/shortcut_list_reading_utils.cpp ) \ 59 $(addprefix suggest/policyimpl/dictionary/structure/v2/, \ 60 patricia_trie_policy.cpp \ 61 ver2_patricia_trie_node_reader.cpp \ 62 ver2_pt_node_array_reader.cpp) \ 63 $(addprefix suggest/policyimpl/dictionary/structure/v4/, \ 64 bigram/ver4_bigram_list_policy.cpp \ 65 ver4_dict_buffers.cpp \ 66 ver4_dict_constants.cpp \ 67 ver4_patricia_trie_node_reader.cpp \ 68 ver4_patricia_trie_node_writer.cpp \ 69 ver4_patricia_trie_policy.cpp \ 70 ver4_patricia_trie_reading_utils.cpp \ 71 ver4_patricia_trie_writing_helper.cpp \ 72 ver4_pt_node_array_reader.cpp) \ 73 $(addprefix suggest/policyimpl/dictionary/structure/v4/content/, \ 74 bigram_dict_content.cpp \ 75 language_model_dict_content.cpp \ 76 shortcut_dict_content.cpp \ 77 sparse_table_dict_content.cpp \ 78 terminal_position_lookup_table.cpp) \ 79 $(addprefix suggest/policyimpl/dictionary/utils/, \ 80 buffer_with_extendable_buffer.cpp \ 81 byte_array_utils.cpp \ 82 dict_file_writing_utils.cpp \ 83 file_utils.cpp \ 84 forgetting_curve_utils.cpp \ 85 format_utils.cpp \ 86 mmapped_buffer.cpp \ 87 sparse_table.cpp \ 88 trie_map.cpp ) \ 89 suggest/policyimpl/gesture/gesture_suggest_policy_factory.cpp \ 90 $(addprefix suggest/policyimpl/typing/, \ 91 scoring_params.cpp \ 92 typing_scoring.cpp \ 93 typing_suggest_policy.cpp \ 94 typing_traversal.cpp \ 95 typing_weighting.cpp) \ 96 $(addprefix utils/, \ 97 autocorrection_threshold_utils.cpp \ 98 char_utils.cpp \ 99 jni_data_utils.cpp \ 100 log_utils.cpp \ 101 time_keeper.cpp) 102 103LATIN_IME_CORE_SRC_FILES_BACKWARD_V402 := \ 104 $(addprefix suggest/policyimpl/dictionary/structure/backward/v402/, \ 105 ver4_dict_buffers.cpp \ 106 ver4_dict_constants.cpp \ 107 ver4_patricia_trie_node_reader.cpp \ 108 ver4_patricia_trie_node_writer.cpp \ 109 ver4_patricia_trie_policy.cpp \ 110 ver4_patricia_trie_reading_utils.cpp \ 111 ver4_patricia_trie_writing_helper.cpp \ 112 ver4_pt_node_array_reader.cpp) \ 113 $(addprefix suggest/policyimpl/dictionary/structure/backward/v402/content/, \ 114 bigram_dict_content.cpp \ 115 probability_dict_content.cpp \ 116 shortcut_dict_content.cpp \ 117 sparse_table_dict_content.cpp \ 118 terminal_position_lookup_table.cpp) \ 119 $(addprefix suggest/policyimpl/dictionary/structure/backward/v402/bigram/, \ 120 ver4_bigram_list_policy.cpp) 121 122LATIN_IME_CORE_SRC_FILES += $(LATIN_IME_CORE_SRC_FILES_BACKWARD_V402) 123 124LATIN_IME_CORE_TEST_FILES := \ 125 defines_test.cpp \ 126 suggest/core/layout/normal_distribution_2d_test.cpp \ 127 suggest/core/dictionary/bloom_filter_test.cpp \ 128 suggest/policyimpl/dictionary/structure/v4/content/language_model_dict_content_test.cpp \ 129 suggest/policyimpl/dictionary/structure/v4/content/probability_entry_test.cpp \ 130 suggest/policyimpl/dictionary/utils/buffer_with_extendable_buffer_test.cpp \ 131 suggest/policyimpl/dictionary/utils/trie_map_test.cpp \ 132 utils/autocorrection_threshold_utils_test.cpp \ 133 utils/int_array_view_test.cpp 134