Build with Nimble

This commit is contained in:
Victor Golovanenko 2021-02-04 08:15:38 +03:00
parent 666ffe6517
commit f1a40fc40c
No known key found for this signature in database
GPG Key ID: 49B2AA9695DBD79F
3 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
*.nims

View File

@ -9,10 +9,8 @@ SOURCE = $(SRCDIR)/wpspin.nim
all: $(TARGET)
$(TARGET): $(SOURCE)
nimble install -y argparse
nim compile --gc:none --checks:off --out:$@ $(SOURCE)
nimble build -d:release
strip $@
nimble uninstall -y argparse
install: $(TARGET)
install -d $(BINDIR)

5
src/wpspin.nims Normal file
View File

@ -0,0 +1,5 @@
switch("gc", "none")
when defined(release):
switch("checks", "off")
switch("debuginfo", "off")