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 15 LATIN_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 22 LATIN_IME_CORE_SRC_FILES := \ 23 $(addprefix dictionary/header/, \ 24 header_policy.cpp \ 25 header_read_write_utils.cpp) \ 26 dictionary/property/ngram_context.cpp \ 27 dictionary/structure/dictionary_structure_with_buffer_policy_factory.cpp \ 28 $(addprefix dictionary/structure/pt_common/, \ 29 bigram/bigram_list_read_write_utils.cpp \ 30 dynamic_pt_gc_event_listeners.cpp \ 31 dynamic_pt_reading_helper.cpp \ 32 dynamic_pt_reading_utils.cpp \ 33 dynamic_pt_updating_helper.cpp \ 34 dynamic_pt_writing_utils.cpp \ 35 patricia_trie_reading_utils.cpp \ 36 shortcut/shortcut_list_reading_utils.cpp) \ 37 $(addprefix dictionary/structure/v2/, \ 38 patricia_trie_policy.cpp \ 39 ver2_patricia_trie_node_reader.cpp \ 40 ver2_pt_node_array_reader.cpp) \ 41 $(addprefix dictionary/structure/v4/, \ 42 ver4_dict_buffers.cpp \ 43 ver4_dict_constants.cpp \ 44 ver4_patricia_trie_node_reader.cpp \ 45 ver4_patricia_trie_node_writer.cpp \ 46 ver4_patricia_trie_policy.cpp \ 47 ver4_patricia_trie_reading_utils.cpp \ 48 ver4_patricia_trie_writing_helper.cpp \ 49 ver4_pt_node_array_reader.cpp) \ 50 $(addprefix dictionary/structure/v4/content/, \ 51 dynamic_language_model_probability_utils.cpp \ 52 language_model_dict_content.cpp \ 53 language_model_dict_content_global_counters.cpp \ 54 shortcut_dict_content.cpp \ 55 sparse_table_dict_content.cpp \ 56 terminal_position_lookup_table.cpp) \ 57 $(addprefix dictionary/utils/, \ 58 buffer_with_extendable_buffer.cpp \ 59 byte_array_utils.cpp \ 60 dict_file_writing_utils.cpp \ 61 file_utils.cpp \ 62 forgetting_curve_utils.cpp \ 63 format_utils.cpp \ 64 mmapped_buffer.cpp \ 65 multi_bigram_map.cpp \ 66 probability_utils.cpp \ 67 sparse_table.cpp \ 68 trie_map.cpp ) \ 69 suggest/core/suggest.cpp \ 70 $(addprefix suggest/core/dicnode/, \ 71 dic_node.cpp \ 72 dic_node_utils.cpp \ 73 dic_nodes_cache.cpp) \ 74 $(addprefix suggest/core/dictionary/, \ 75 dictionary.cpp \ 76 dictionary_utils.cpp \ 77 digraph_utils.cpp \ 78 error_type_utils.cpp ) \ 79 $(addprefix suggest/core/layout/, \ 80 additional_proximity_chars.cpp \ 81 proximity_info.cpp \ 82 proximity_info_params.cpp \ 83 proximity_info_state.cpp \ 84 proximity_info_state_utils.cpp) \ 85 suggest/core/policy/weighting.cpp \ 86 suggest/core/session/dic_traverse_session.cpp \ 87 $(addprefix suggest/core/result/, \ 88 suggestion_results.cpp \ 89 suggestions_output_utils.cpp) \ 90 suggest/policyimpl/gesture/gesture_suggest_policy_factory.cpp \ 91 $(addprefix suggest/policyimpl/typing/, \ 92 scoring_params.cpp \ 93 typing_scoring.cpp \ 94 typing_suggest_policy.cpp \ 95 typing_traversal.cpp \ 96 typing_weighting.cpp) \ 97 $(addprefix utils/, \ 98 autocorrection_threshold_utils.cpp \ 99 char_utils.cpp \ 100 jni_data_utils.cpp \ 101 log_utils.cpp \ 102 time_keeper.cpp) 103 104 LATIN_IME_CORE_SRC_FILES_BACKWARD_V402 := \ 105 $(addprefix dictionary/structure/backward/v402/, \ 106 ver4_dict_buffers.cpp \ 107 ver4_dict_constants.cpp \ 108 ver4_patricia_trie_node_reader.cpp \ 109 ver4_patricia_trie_node_writer.cpp \ 110 ver4_patricia_trie_policy.cpp \ 111 ver4_patricia_trie_reading_utils.cpp \ 112 ver4_patricia_trie_writing_helper.cpp \ 113 ver4_pt_node_array_reader.cpp) \ 114 $(addprefix dictionary/structure/backward/v402/content/, \ 115 bigram_dict_content.cpp \ 116 probability_dict_content.cpp \ 117 shortcut_dict_content.cpp \ 118 sparse_table_dict_content.cpp \ 119 terminal_position_lookup_table.cpp) \ 120 $(addprefix dictionary/structure/backward/v402/bigram/, \ 121 ver4_bigram_list_policy.cpp) 122 123 LATIN_IME_CORE_SRC_FILES += $(LATIN_IME_CORE_SRC_FILES_BACKWARD_V402) 124 125 LATIN_IME_CORE_TEST_FILES := \ 126 defines_test.cpp \ 127 dictionary/header/header_read_write_utils_test.cpp \ 128 dictionary/structure/v4/content/language_model_dict_content_test.cpp \ 129 dictionary/structure/v4/content/language_model_dict_content_global_counters_test.cpp \ 130 dictionary/structure/v4/content/probability_entry_test.cpp \ 131 dictionary/structure/v4/content/terminal_position_lookup_table_test.cpp \ 132 dictionary/utils/bloom_filter_test.cpp \ 133 dictionary/utils/buffer_with_extendable_buffer_test.cpp \ 134 dictionary/utils/byte_array_utils_test.cpp \ 135 dictionary/utils/format_utils_test.cpp \ 136 dictionary/utils/probability_utils_test.cpp \ 137 dictionary/utils/sparse_table_test.cpp \ 138 dictionary/utils/trie_map_test.cpp \ 139 suggest/core/dicnode/dic_node_pool_test.cpp \ 140 suggest/core/layout/geometry_utils_test.cpp \ 141 suggest/core/layout/normal_distribution_2d_test.cpp \ 142 suggest/policyimpl/utils/damerau_levenshtein_edit_distance_policy_test.cpp \ 143 utils/autocorrection_threshold_utils_test.cpp \ 144 utils/char_utils_test.cpp \ 145 utils/int_array_view_test.cpp \ 146 utils/time_keeper_test.cpp 147