mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Merge branch 'msvc_runtime_dlls' into 'master'
Added ICU runtime DLLs to Windows builds See merge request OpenMW/openmw!1773
This commit is contained in:
commit
65a6993b17
@ -1039,16 +1039,22 @@ echo
|
|||||||
# ICU
|
# ICU
|
||||||
printf "ICU ${ICU_VER/_/.}... "
|
printf "ICU ${ICU_VER/_/.}... "
|
||||||
{
|
{
|
||||||
if [ -d ICU ]; then
|
if [ -d ICU-${ICU_VER} ]; then
|
||||||
printf "Exists. "
|
printf "Exists. "
|
||||||
elif [ -z $SKIP_EXTRACT ]; then
|
elif [ -z $SKIP_EXTRACT ]; then
|
||||||
rm -rf ICU
|
rm -rf ICU-${ICU_VER}
|
||||||
eval 7z x -y icu4c-${ICU_VER}-Win${BITS}-MSVC2019.zip -o$(real_pwd)/ICU $STRIP
|
eval 7z x -y icu4c-${ICU_VER}-Win${BITS}-MSVC2019.zip -o$(real_pwd)/ICU-${ICU_VER} $STRIP
|
||||||
fi
|
fi
|
||||||
export ICU_ROOT="$(real_pwd)/ICU"
|
export ICU_ROOT="$(real_pwd)/ICU-${ICU_VER}"
|
||||||
add_cmake_opts -DICU_INCLUDE_DIR="${ICU_ROOT}/include" \
|
add_cmake_opts -DICU_INCLUDE_DIR="${ICU_ROOT}/include" \
|
||||||
-DICU_LIBRARY="${ICU_ROOT}/lib${BITS}/icuuc.lib " \
|
-DICU_LIBRARY="${ICU_ROOT}/lib${BITS}/icuuc.lib " \
|
||||||
-DICU_DEBUG=ON
|
-DICU_DEBUG=ON
|
||||||
|
|
||||||
|
for config in ${CONFIGURATIONS[@]}; do
|
||||||
|
add_runtime_dlls $config "$(pwd)/ICU-${ICU_VER}/bin${BITS}/icudt${ICU_VER/_*/}.dll"
|
||||||
|
add_runtime_dlls $config "$(pwd)/ICU-${ICU_VER}/bin${BITS}/icuin${ICU_VER/_*/}.dll"
|
||||||
|
add_runtime_dlls $config "$(pwd)/ICU-${ICU_VER}/bin${BITS}/icuuc${ICU_VER/_*/}.dll"
|
||||||
|
done
|
||||||
echo Done.
|
echo Done.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user