Skip to content
Snippets Groups Projects
Commit 867d853a authored by Aleksandr Vodianov's avatar Aleksandr Vodianov
Browse files

add changing in cmakes for build into mxe

parent 114b1d23
No related branches found
No related tags found
No related merge requests found
LIBS="KERNEL32 USER32 SHELL32 WINMM GDI32 ADVAPI32 Ole32 Version Imm32 OleAut32 Shlwapi Bcrypt Crypt32 Secur32"
DESTDIR=$1
wd=$2
export PATH=$WINDOWS_TOOLCHAIN_PATH/usr/bin:$PATH
cd $wd && mkdir build && cd build && \
cd $wd
. prod_build/general/pre-build.sh
export_variables "prod_build/windows/conf/*"
IFS=" "
for lib in $LIBS; do
new_lib=${lib,,}
sed -i "s/$lib/$new_lib/g" CMakeLists.txt
sed -i "s/$lib/$new_lib/g" cellframe-sdk/CMakeLists.txt
sed -i "s/$lib/$new_lib/g" cellframe-sdk/dap-sdk/net/server/enc_server/CMakeLists.txt
sed -i "s/$lib/$new_lib/g" cellframe-sdk/dap-sdk/net/server/http_server/CMakeLists.txt
sed -i "s/$lib/$new_lib/g" python-cellframe/cellframe-sdk/CMakeLists.txt
sed -i "s/$lib/$new_lib/g" python-cellframe/cellframe-sdk/dap-sdk/net/server/enc_server/CMakeLists.txt
sed -i "s/$lib/$new_lib/g" python-cellframe/cellframe-sdk/dap-sdk/net/server/http_server/CMakeLists.txt
done
mkdir build && cd build && \
x86_64-w64-mingw32.static-cmake .. && make -j$(nproc) || echo "$PATH error $?" && exit $?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment