Skip to content

Commit

Permalink
win builds of cargs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Mar 8, 2024
1 parent af96797 commit f847aeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions platforms/win/x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 5 additions & 7 deletions platforms/win/x86/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f847aeb

Please sign in to comment.