blob: d8b69bfd72b47a6ce36ebdd247353d93b354c8fd [file] [log] [blame]
Jean Chalarda245d152013-12-12 15:08:10 +09001# 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 \
Keisuke Kuroyanagi9e51c6c2014-03-05 12:49:04 +090018 com_android_inputmethod_latin_BinaryDictionaryUtils.cpp \
Jean Chalarda245d152013-12-12 15:08:10 +090019 com_android_inputmethod_latin_DicTraverseSession.cpp \
20 jni_common.cpp
21
22LATIN_IME_CORE_SRC_FILES := \
Keisuke Kuroyanagi88bc3122014-12-17 16:02:09 +090023 $(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 ) \
Jean Chalarda245d152013-12-12 15:08:10 +090069 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/, \
Jean Chalarda245d152013-12-12 15:08:10 +090075 dictionary.cpp \
Keisuke Kuroyanagid9b86022014-06-06 17:37:46 +090076 dictionary_utils.cpp \
Jean Chalarda245d152013-12-12 15:08:10 +090077 digraph_utils.cpp \
Keisuke Kuroyanagi88bc3122014-12-17 16:02:09 +090078 error_type_utils.cpp ) \
Jean Chalarda245d152013-12-12 15:08:10 +090079 $(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 \
Keisuke Kuroyanagie137ec02014-03-07 19:36:19 +090087 $(addprefix suggest/core/result/, \
88 suggestion_results.cpp \
89 suggestions_output_utils.cpp) \
Jean Chalarda245d152013-12-12 15:08:10 +090090 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 \
Keisuke Kuroyanagie9121a62014-05-14 20:05:10 +0900100 jni_data_utils.cpp \
Jean Chalarda245d152013-12-12 15:08:10 +0900101 log_utils.cpp \
102 time_keeper.cpp)
Yohei Yukawac72652c2014-04-02 01:23:07 +0900103
Keisuke Kuroyanagi07e14122014-06-10 19:22:40 +0900104LATIN_IME_CORE_SRC_FILES_BACKWARD_V402 := \
Keisuke Kuroyanagi88bc3122014-12-17 16:02:09 +0900105 $(addprefix dictionary/structure/backward/v402/, \
Keisuke Kuroyanagi6bf26812014-05-14 19:09:01 +0900106 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) \
Keisuke Kuroyanagi88bc3122014-12-17 16:02:09 +0900114 $(addprefix dictionary/structure/backward/v402/content/, \
Keisuke Kuroyanagi6bf26812014-05-14 19:09:01 +0900115 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) \
Keisuke Kuroyanagi88bc3122014-12-17 16:02:09 +0900120 $(addprefix dictionary/structure/backward/v402/bigram/, \
Keisuke Kuroyanagi6bf26812014-05-14 19:09:01 +0900121 ver4_bigram_list_policy.cpp)
122
Keisuke Kuroyanagi07e14122014-06-10 19:22:40 +0900123LATIN_IME_CORE_SRC_FILES += $(LATIN_IME_CORE_SRC_FILES_BACKWARD_V402)
Keisuke Kuroyanagi6bf26812014-05-14 19:09:01 +0900124
Yohei Yukawac72652c2014-04-02 01:23:07 +0900125LATIN_IME_CORE_TEST_FILES := \
Yohei Yukawab417d7d2014-04-09 11:31:43 +0900126 defines_test.cpp \
Keisuke Kuroyanagi88bc3122014-12-17 16:02:09 +0900127 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 \
Keisuke Kuroyanagi40b6d6c2014-08-29 13:02:22 +0900139 suggest/core/dicnode/dic_node_pool_test.cpp \
Keisuke Kuroyanagi985b2c22014-09-02 17:10:42 +0900140 suggest/core/layout/geometry_utils_test.cpp \
Keisuke Kuroyanagi40b6d6c2014-08-29 13:02:22 +0900141 suggest/core/layout/normal_distribution_2d_test.cpp \
Keisuke Kuroyanagi69732162014-09-02 19:47:43 +0900142 suggest/policyimpl/utils/damerau_levenshtein_edit_distance_policy_test.cpp \
Keisuke Kuroyanagi75d8c202014-07-31 19:32:02 +0900143 utils/autocorrection_threshold_utils_test.cpp \
Keisuke Kuroyanagi29dcf972014-09-03 13:57:32 +0900144 utils/char_utils_test.cpp \
Keisuke Kuroyanagi78aea9f2014-08-27 14:39:27 +0900145 utils/int_array_view_test.cpp \
146 utils/time_keeper_test.cpp