From f847aeb3e7ec0a2c146985a83b5613d8702c02f8 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 8 Mar 2024 16:29:53 +0100 Subject: [PATCH] win builds of cargs --- platforms/win/x64/external.sh | 8 +++----- platforms/win/x86/external.sh | 12 +++++------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/platforms/win/x64/external.sh b/platforms/win/x64/external.sh index 2e040ed..2c1fa02 100755 --- a/platforms/win/x64/external.sh +++ b/platforms/win/x64/external.sh @@ -34,13 +34,11 @@ unzip cargs.zip cd cargs-${LIBCARGS_SHA} patch -p1 < ../../platforms/win/x64/cargs/001.patch cp include/cargs.h ../../third-party/include/ -mkdir build -cd build -cmake -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON .. -make +cmake -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -B build +cmake --build build --config ${BUILD_TYPE} cp cargs64.lib ../../third-party/build-libs/win/x64/ cp cargs64.dll ../../third-party/runtime-libs/win/x64/ -cd ../.. +cd .. # # build libzedmd and copy to external diff --git a/platforms/win/x86/external.sh b/platforms/win/x86/external.sh index 982a907..fff88c4 100755 --- a/platforms/win/x86/external.sh +++ b/platforms/win/x86/external.sh @@ -33,13 +33,11 @@ curl -sL https://github.com/likle/cargs/archive/${LIBCARGS_SHA}.zip -o cargs.zip unzip cargs.zip cd cargs-${LIBCARGS_SHA} cp include/cargs.h ../../third-party/include/ -mkdir build -cd build -cmake -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON .. -make -cp cargs64.lib ../../third-party/build-libs/win/x86/ -cp cargs64.dll ../../third-party/runtime-libs/win/x86/ -cd ../.. +cmake -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -A Win32 -B build +cmake --build build --config ${BUILD_TYPE} +cp cargs.lib ../../third-party/build-libs/win/x86/ +cp cargs.dll ../../third-party/runtime-libs/win/x86/ +cd .. # # build libzedmd and copy to external