mirror of
https://github.com/drygdryg/wpspin-nim.git
synced 2024-11-25 19:00:53 +03:00
Build with Nimble
This commit is contained in:
parent
666ffe6517
commit
f1a40fc40c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.nims
|
4
Makefile
4
Makefile
@ -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
5
src/wpspin.nims
Normal file
@ -0,0 +1,5 @@
|
||||
switch("gc", "none")
|
||||
|
||||
when defined(release):
|
||||
switch("checks", "off")
|
||||
switch("debuginfo", "off")
|
Loading…
Reference in New Issue
Block a user