Skip to content

Commit

Permalink
Add sources/generates to taskfile
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Van Eenwyk <[email protected]>
  • Loading branch information
joelvaneenwyk committed Oct 27, 2024
1 parent 5c2c965 commit 6eb41d7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ out/

*.build

.out/
.vs/
.task/

/Build/

/Docs/*Internal*
Expand Down
36 changes: 28 additions & 8 deletions taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,38 @@
# https://taskfile.dev

version: '3'
version: "3"

tasks:
default:
cmds:
- task: build

build:
rebuild:
cmds:
- task: clean
- task: build

clean:
cmds:
- git add .
- git clean -xfd

configure:
sources:
- CMakeLists.txt
generates:
- .out/tmp/PEEL.sln
- .out/tmp/PEEL.vcxproj
cmds:
- cmd: git submodule update --init --recursive --checkout
- cmd: >-
cmake
-B .build -S .
-DTARGET_BUILD_PLATFORM=linux
- cmd: >-
cmake --build .build
- cmd: cmake -B .out/tmp -S . -G "Visual Studio 17 2022"

build:
deps: [configure]
sources:
- Src/**/*.cpp
- Src/**/*.h
generates:
- .out/tmp/Release/PEEL.exe
cmds:
- cmd: cmake --build .out/tmp --config Release

0 comments on commit 6eb41d7

Please sign in to comment.