forked from osfans/trime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(jni): try to improve the build of rime and its plugins
- Loading branch information
1 parent
9ce112e
commit 5591986
Showing
4 changed files
with
39 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# if you want to add some new plugins, add them to librime_jni/rime_jni.cc too | ||
set(RIME_PLUGINS | ||
librime-lua | ||
librime-charcode | ||
librime-octagram | ||
librime-predict | ||
) | ||
|
||
# symlink plugins | ||
foreach(plugin ${RIME_PLUGINS}) | ||
execute_process(COMMAND ln -sv | ||
"${CMAKE_SOURCE_DIR}/${plugin}" | ||
"${CMAKE_SOURCE_DIR}/librime/plugins" | ||
) | ||
endforeach() | ||
|
||
# librime-lua | ||
file(REMOVE "${CMAKE_SOURCE_DIR}/librime/plugins/librime-lua/thirdparty") | ||
execute_process(COMMAND ln -sv | ||
"${CMAKE_SOURCE_DIR}/librime-lua-deps" | ||
"${CMAKE_SOURCE_DIR}/librime/plugins/librime-lua/thirdparty" | ||
) | ||
|
||
# librime-charcode | ||
option(BUILD_WITH_ICU "" OFF) | ||
|
||
option(BUILD_TEST "" OFF) | ||
option(BUILD_STATIC "" ON) | ||
add_subdirectory(librime) | ||
|
||
target_link_libraries(rime-charcode-objs | ||
Boost::asio | ||
Boost::locale | ||
) | ||
|
||
target_link_libraries(rime-lua-objs | ||
Boost::optional | ||
) |
This file was deleted.
Oops, something went wrong.