Update config.nims
This commit is contained in:
parent
ab6d8e8fa3
commit
aa0b2f7222
2 changed files with 10 additions and 10 deletions
20
config.nims
20
config.nims
|
@ -25,27 +25,27 @@ task build, "Compile the project for intermediate builds":
|
|||
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
|
||||
|
||||
# Distribution task for final builds
|
||||
task dist, "Compile the project for distribution":
|
||||
createDirectory("dist") ## Ensure the directory exists
|
||||
exec "nim c -o:dist/dashinit src/main.nim" ## Compile the main project file into the dist directory
|
||||
# # Distribution task for final builds
|
||||
# task dist, "Compile the project for distribution":
|
||||
# createDirectory("dist") ## Ensure the directory exists
|
||||
# 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)
|
||||
task dev, "Run tests":
|
||||
switch("undef", "release") ## Unset the release switch for this task
|
||||
createDirectory("dev") ## Ensure dev directory exists
|
||||
exec "nim c -o:dev/dashinit -r src/main.nim"
|
||||
createDirectory("build/dev") ## Ensure dev directory exists
|
||||
exec "nim c -o:build/dev/dashinit -r src/main.nim"
|
||||
|
||||
# Clean task to remove generated files
|
||||
task clean, "Clean up generated files":
|
||||
removeFileOrDir("build/*")
|
||||
removeFileOrDir("dist/*")
|
||||
removeFileOrDir("dev/*")
|
||||
# removeFileOrDir("dist/*")
|
||||
# removeFileOrDir("dev/*")
|
||||
|
||||
task deepclean, "Clean up by removing build/ and dist/ directories":
|
||||
removeFileOrDir("build/")
|
||||
removeFileOrDir("dist/")
|
||||
removeFileOrDir("dev/")
|
||||
# removeFileOrDir("dist/")
|
||||
# removeFileOrDir("dev/")
|
||||
|
||||
|
||||
#### Aliases ####
|
||||
|
|
BIN
src/main
BIN
src/main
Binary file not shown.
Loading…
Reference in a new issue