Skip to content

Commit df647c7

Browse files
authored
fix mozc build (#5)
1 parent 8d55b6e commit df647c7

File tree

8 files changed

+11
-32
lines changed

8 files changed

+11
-32
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ if (NOT DEFINED MOZC_TARGET)
3737
include(cmake/session.cmake)
3838
include(cmake/storage.cmake)
3939
include(cmake/transliteration.cmake)
40-
include(cmake/usage_stats.cmake)
4140

4241
include(cmake/mozc-static.cmake)
4342
set(MOZC_TARGET
@@ -53,7 +52,6 @@ if (NOT DEFINED MOZC_TARGET)
5352
gen_config_file_stream_data
5453
gen_pos_matcher_code
5554
gen_pos_matcher_impl_inc
56-
gen_stats_list
5755
gen_version_def
5856
)
5957
endif()

cmake/converter.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set(MOZC_CONVERTER_SRCS
2+
candidate.cc
23
candidate_filter.cc
34
connector.cc
45
converter.cc
@@ -7,7 +8,6 @@ set(MOZC_CONVERTER_SRCS
78
key_corrector.cc
89
lattice.cc
910
nbest_generator.cc
10-
node_list_builder.cc
1111
reverse_converter.cc
1212
segmenter.cc
1313
segments.cc

cmake/engine.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
set(MOZC_ENGINE_SRCS
2+
candidate_list.cc
23
data_loader.cc
34
engine.cc
5+
engine_converter.cc
6+
engine_output.cc
47
minimal_converter.cc
58
modules.cc
69
)

cmake/mozc-static.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ target_compile_options(mozc-static PRIVATE -funsigned-char)
2727

2828
target_compile_definitions(mozc-static PRIVATE
2929
-DMOZC_DATASET_MAGIC_NUMBER_LENGTH=7
30+
)
31+
32+
# fcitx5-mozc references session_handler.h.
33+
target_compile_definitions(mozc-static PUBLIC
3034
-DMOZC_DISABLE_SESSION_WATCHDOG
3135
)
3236

cmake/protobuf.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ set(PROTO_SRCS
2020
protocol/segmenter_data
2121
protocol/state
2222
protocol/user_dictionary_storage
23-
usage_stats/usage_stats
2423
)
2524
list(TRANSFORM PROTO_SRCS APPEND ".pb.cc" OUTPUT_VARIABLE GENERATED_PROTO_SRCS)
2625
list(TRANSFORM GENERATED_PROTO_SRCS PREPEND "${PROJECT_BINARY_DIR}/")

cmake/session.cmake

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
set(MOZC_SESSION_SRCS
2-
internal/candidate_list.cc
3-
internal/ime_context.cc
4-
internal/key_event_transformer.cc
5-
internal/keymap.cc
6-
internal/session_output.cc
2+
ime_context.cc
3+
key_event_transformer.cc
4+
keymap.cc
75
key_info_util.cc
86
session.cc
9-
session_converter.cc
107
session_handler.cc
11-
session_observer_handler.cc
12-
session_usage_observer.cc
13-
session_usage_stats_util.cc
148
)
159
list(TRANSFORM MOZC_SESSION_SRCS PREPEND "${MOZC_SRC_DIR}/session/")

cmake/storage.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ set(MOZC_STORAGE_SRCS
66
louds/louds_trie.cc
77
louds/simple_succinct_bit_vector_index.cc
88
lru_storage.cc
9-
registry.cc
10-
tiny_storage.cc
119
)
1210
list(TRANSFORM MOZC_STORAGE_SRCS PREPEND "${MOZC_SRC_DIR}/storage/")

cmake/usage_stats.cmake

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)