Update the nimble build script

This commit is contained in:
Filippo Cucchetto 2016-03-27 10:47:24 +02:00
parent efd1a29927
commit 27d74fba71

View File

@ -5,15 +5,14 @@ author = "Filippo Cucchetto"
description = "resourcebundling" description = "resourcebundling"
license = "MIT" license = "MIT"
bin = @["resourcebundling"] bin = @["main"]
# Dependencies # Dependencies
requires "nimqml >= 0.5.0" requires "nimqml >= 0.5.0"
task compileresources, "Compile the qrc into rcc": task build, "Compile the binary":
exec ("rcc --binary resources.qrc -o main.rcc") exec ("nim c main")
setCommand("nop")
task compilebinary, "Compile the binary": before build:
setCommand "c" exec ("rcc --binary resources.qrc -o main.rcc")