Skip to content

Commit

Permalink
update taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Unam3dd committed May 26, 2024
1 parent 2606678 commit 76f33a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ tasks:
silent: true
desc: "Build the project in dev build"

build-msvc:
preconditions:
- sh: '{{if eq OS "windows"}} powershell.exe -Command Test-Path dist {{else}} test ! -d dist {{end}}'
msg: "Nothing to be done."
cmds:
- meson setup --cross-file ./cross/x86_64/windows/x86_64-msvc.txt build_vs --vsenv --buildtype=release --prefix=$(pwd)
- ninja -C build_vs install
silent: true
desc: "Build the project with MSVC in build"

cross-build:
preconditions:
- sh: '{{if eq OS "windows"}} powershell.exe -Command Test-Path dist {{else}} test ! -d dist {{end}}'
Expand Down

0 comments on commit 76f33a4

Please sign in to comment.