Skip to content

Commit

Permalink
update tasks: build linux version of library under WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
wysaid committed Dec 10, 2023
1 parent 079957a commit b238863
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function reloadCMakeProject() {

function cmakeBuildAll() {
pushd "$CMAKE_VS_DIR"
if isWindows; then
if isWindows && ! isWsl; then

if [[ -n "$CMAKE_BUILD_TYPE" ]]; then
export WIN_CMAKE_BUILD_DEFINE="--config $CMAKE_BUILD_TYPE"
Expand Down Expand Up @@ -130,12 +130,16 @@ while [[ $# > 0 ]]; do
shift
;;
--run)
if isWindows; then
if isWindows && ! isWsl; then
echo "run $CMAKE_VS_DIR/$CMAKE_BUILD_TYPE/$2"
"$CMAKE_VS_DIR/$CMAKE_BUILD_TYPE/$2"
elif isMacOS; then
else
echo run "$CMAKE_VS_DIR/$2"
wine64 "$CMAKE_VS_DIR/$2"
if command -v wine64 &>/dev/null; then
wine64 "$CMAKE_VS_DIR/$2"
else
echo "Command 'wine64' not found, please install wine first."
fi
fi
shift
shift
Expand Down

0 comments on commit b238863

Please sign in to comment.