mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-02-22 09:45:25 +00:00
upd vars
This commit is contained in:
parent
f2a3247077
commit
29510feb8e
10
Taskfile.yml
10
Taskfile.yml
@ -31,19 +31,19 @@ tasks:
|
|||||||
deps: [compile]
|
deps: [compile]
|
||||||
cmds:
|
cmds:
|
||||||
- powershell -Command "if (!(Test-Path -Path '{{.BIN_DIR}}')) { New-Item -ItemType Directory -Path '{{.BIN_DIR}}' }"
|
- powershell -Command "if (!(Test-Path -Path '{{.BIN_DIR}}')) { New-Item -ItemType Directory -Path '{{.BIN_DIR}}' }"
|
||||||
- powershell -Command "{{.CC}} {{.LDFLAGS}} obj/*.o {{.LDLIBS}} -o bin/{{.program}}.exe"
|
- powershell -Command "{{.CC}} {{.LDFLAGS}} {{.OBJ_DIR}}/*.o {{.LDLIBS}} -o {{.BIN_DIR}}/{{.program}}.exe"
|
||||||
sources:
|
sources:
|
||||||
- obj/**
|
- '{{.OBJ_DIR}}/**'
|
||||||
generates:
|
generates:
|
||||||
- bin/{{.program}}.exe
|
- '{{.BIN_DIR}}/{{.program}}.exe'
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
desc: "Compile all files in src/ and include/ for Windows"
|
desc: "Compile all files in src/ and include/ for Windows"
|
||||||
cmds:
|
cmds:
|
||||||
- powershell -Command "if (!(Test-Path -Path '{{.OBJ_DIR}}')) { New-Item -ItemType Directory -Path '{{.OBJ_DIR}}' }"
|
- powershell -Command "if (!(Test-Path -Path '{{.OBJ_DIR}}')) { New-Item -ItemType Directory -Path '{{.OBJ_DIR}}' }"
|
||||||
- powershell -Command "Get-ChildItem -Path 'src' -Filter '*.c' | ForEach-Object { \$_.Name -replace '\.c$', '' } | ForEach-Object { {{.CC}} {{.CPPFLAGS}} {{.CFLAGS}} -c src/\$_.c -Iinclude -o obj/\$_.o }"
|
- powershell -Command "Get-ChildItem -Path 'src' -Filter '*.c' | ForEach-Object { \$_.Name -replace '\.c$', '' } | ForEach-Object { {{.CC}} {{.CPPFLAGS}} {{.CFLAGS}} -c {{.SRC_DIR}}/\$_.c -Iinclude -o {{.OBJ_DIR}}/\$_.o }"
|
||||||
sources:
|
sources:
|
||||||
- src/**
|
- '{{.SRC_DIR}}/**'
|
||||||
- include/**
|
- include/**
|
||||||
generates:
|
generates:
|
||||||
- obj/**
|
- obj/**
|
||||||
|
Loading…
Reference in New Issue
Block a user