Skip to content

Commit

Permalink
vendor marisa (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Sep 20, 2023
1 parent 72a6406 commit 1ca3c3b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Expand Up @@ -12,7 +12,7 @@
url = https://github.com/google/googletest.git
[submodule "marisa-trie"]
path = deps/marisa-trie
url = https://github.com/s-yata/marisa-trie.git
url = https://github.com/rime/marisa-trie.git
[submodule "opencc"]
path = deps/opencc
url = https://github.com/BYVoid/OpenCC.git
2 changes: 1 addition & 1 deletion build-clang.bat
Expand Up @@ -118,7 +118,7 @@ if %build_deps% == 1 (

echo building marisa.
pushd deps\marisa-trie
cmake .. %deps_cmake_flags% || exit
cmake . %deps_cmake_flags% || exit
cmake --build build || exit
cmake --install build || exit
popd
Expand Down
2 changes: 1 addition & 1 deletion build.bat
Expand Up @@ -244,7 +244,7 @@ if %build_deps% == 1 (

echo building marisa.
pushd deps\marisa-trie
cmake .. -B%build_dir% %deps_cmake_flags%
cmake . -B%build_dir% %deps_cmake_flags%
if errorlevel 1 goto error
cmake --build %build_dir% --config %build_config% --target INSTALL
if errorlevel 1 goto error
Expand Down
2 changes: 1 addition & 1 deletion deps.mk
Expand Up @@ -50,7 +50,7 @@ leveldb:

marisa:
cd $(src_dir)/marisa-trie; \
cmake $(src_dir) -B$(build) \
cmake . -B$(build) \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_INSTALL_PREFIX:PATH="$(rime_root)" \
&& cmake --build $(build) --target install
Expand Down
50 changes: 0 additions & 50 deletions deps/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion deps/marisa-trie

0 comments on commit 1ca3c3b

Please sign in to comment.