Skip to content

Commit

Permalink
windows/build: conditionally copy ipadic
Browse files Browse the repository at this point in the history
Only copy ipadic if -DMECAB_SUPPORT=ON in the build script.
  • Loading branch information
ripose-jp committed Jun 23, 2024
1 parent 106cd37 commit 023da15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion windows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ rm -rf Memento_$arch/memento.exe
cp src/memento.exe Memento_$arch
rm -rf Memento_$arch/memento_debug.exe
cp src/memento_debug.exe Memento_$arch
cp -r ../dic Memento_$arch
if [[ "${CMAKE_ARGS}" == *'-DMECAB_SUPPORT=ON'* ]]
then
cp -r ../dic Memento_$arch
fi
if [[ "${CMAKE_ARGS}" == *'-DOCR_SUPPORT=ON'* ]]
then
cp _deps/libmocr-src/build/libmocr.dll Memento_$arch
Expand Down

0 comments on commit 023da15

Please sign in to comment.