Update config.nims

This commit is contained in:
Sangelo 2023-10-05 10:10:01 +02:00
parent ab6d8e8fa3
commit aa0b2f7222
2 changed files with 10 additions and 10 deletions

View file

@ -25,27 +25,27 @@ task build, "Compile the project for intermediate builds":
createDirectory("build") ## Ensure the build directory exists createDirectory("build") ## Ensure the build directory exists
exec "nim c -o:build/dashinit src/main.nim" ## Compile the main project file into the build directory exec "nim c -o:build/dashinit src/main.nim" ## Compile the main project file into the build directory
# Distribution task for final builds # # Distribution task for final builds
task dist, "Compile the project for distribution": # task dist, "Compile the project for distribution":
createDirectory("dist") ## Ensure the directory exists # createDirectory("dist") ## Ensure the directory exists
exec "nim c -o:dist/dashinit src/main.nim" ## Compile the main project file into the dist directory # exec "nim c -o:dist/dashinit src/main.nim" ## Compile the main project file into the dist directory
# Dev task (Compiles and runs main.nim) # Dev task (Compiles and runs main.nim)
task dev, "Run tests": task dev, "Run tests":
switch("undef", "release") ## Unset the release switch for this task switch("undef", "release") ## Unset the release switch for this task
createDirectory("dev") ## Ensure dev directory exists createDirectory("build/dev") ## Ensure dev directory exists
exec "nim c -o:dev/dashinit -r src/main.nim" exec "nim c -o:build/dev/dashinit -r src/main.nim"
# Clean task to remove generated files # Clean task to remove generated files
task clean, "Clean up generated files": task clean, "Clean up generated files":
removeFileOrDir("build/*") removeFileOrDir("build/*")
removeFileOrDir("dist/*") # removeFileOrDir("dist/*")
removeFileOrDir("dev/*") # removeFileOrDir("dev/*")
task deepclean, "Clean up by removing build/ and dist/ directories": task deepclean, "Clean up by removing build/ and dist/ directories":
removeFileOrDir("build/") removeFileOrDir("build/")
removeFileOrDir("dist/") # removeFileOrDir("dist/")
removeFileOrDir("dev/") # removeFileOrDir("dev/")
#### Aliases #### #### Aliases ####

BIN
src/main

Binary file not shown.