Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
MOZC_SHA: ac096a5226dc1b1828fdc188d1209d729447572e
MOZC_SHA: 3feec1b11cd72d0af182da3f80bc3988a7ec3f10

jobs:
lint:
Expand Down
42 changes: 9 additions & 33 deletions patches/libpinyin.patch
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aac36dfe..0942e6b5 100644
index c04f10cf..a5a45a41 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,14 +79,12 @@ endif (DB_FOUND)
if (NOT HAVE_BERKELEY_DB)
# DBM: Kyoto Cabinet
find_package(KyotoCabinet)
- if (KyotoCabinet_FOUND)
include_directories ( ${KyotoCabinet_INCLUDE_PATH} )
SET (LIBS ${LIBS} ${KyotoCabinet_LIBRARY})
SET (HAVE_KYOTO_CABINET 1)
SET (DATABASE_FORMAT "KyotoCabinet")
SET (CMAKE_CXX_LINK_EXECUTABLE
"${CMAKE_CXX_LINK_EXECUTABLE} ${LIBS}")
- endif (KyotoCabinet_FOUND)
endif (NOT HAVE_BERKELEY_DB)


@@ -141,6 +139,12 @@ configure_file(
@@ -145,6 +145,12 @@ configure_file(
@ONLY
)

Expand All @@ -30,21 +15,14 @@ index aac36dfe..0942e6b5 100644
configure_file(
config.h.cmake
config.h
@@ -150,6 +154,7 @@ configure_file(
@@ -154,6 +160,7 @@ configure_file(
install(
FILES
${CMAKE_BINARY_DIR}/libpinyin.pc
+ ${CMAKE_BINARY_DIR}/libzhuyin.pc
DESTINATION
${DIR_LIBRARY}/pkgconfig
)
@@ -178,6 +183,3 @@ include_directories(
######## Subdirectories

add_subdirectory(src)
-add_subdirectory(tests)
-add_subdirectory(utils)
-add_subdirectory(data)
diff --git a/libzhuyin.pc.in b/libzhuyin.pc.in
index f248d1c0..0e6b944f 100644
--- a/libzhuyin.pc.in
Expand All @@ -57,20 +35,18 @@ index f248d1c0..0e6b944f 100644
+Libs: -L${libdir} -lpinyin
Cflags: -I${libzhuyinincludedir}
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fe16a668..f8a496fe 100644
index f48a9b3e..f8a496fe 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -10,8 +10,8 @@ set(

@@ -11,6 +11,7 @@ set(
add_library(
pinyin
- SHARED
${LIBPINYIN_SOURCES}
+ zhuyin.cpp
)

target_link_libraries(
@@ -41,6 +41,7 @@ install(
@@ -40,6 +41,7 @@ install(
install(
FILES
${LIBPINYIN_HEADERS}
Expand All @@ -92,10 +68,10 @@ index 767748c2..77da8b1c 100644
)

diff --git a/src/storage/CMakeLists.txt b/src/storage/CMakeLists.txt
index 26330e0f..da215d76 100644
index cceccdf1..43fa3245 100644
--- a/src/storage/CMakeLists.txt
+++ b/src/storage/CMakeLists.txt
@@ -45,7 +45,7 @@ endif (HAVE_KYOTO_CABINET)
@@ -48,7 +48,7 @@ endif (HAVE_KYOTO_CABINET)

add_library(
storage
Expand All @@ -104,7 +80,7 @@ index 26330e0f..da215d76 100644
${LIBSTORAGE_SOURCES}
)

@@ -58,6 +58,7 @@ target_link_libraries(
@@ -61,6 +61,7 @@ target_link_libraries(
install(
FILES
${LIBSTORAGE_HEADERS}
Expand Down
2 changes: 1 addition & 1 deletion scripts/libpinyin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
project = 'libpinyin'
patch(project)

CMakeBuilder(project).exec()
CMakeBuilder(project, ['-DBUILD_UTILS=OFF']).exec()
Loading