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)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(SOURCE)
|
$(TARGET): $(SOURCE)
|
||||||
nimble install -y argparse
|
nimble build -d:release
|
||||||
nim compile --gc:none --checks:off --out:$@ $(SOURCE)
|
|
||||||
strip $@
|
strip $@
|
||||||
nimble uninstall -y argparse
|
|
||||||
|
|
||||||
install: $(TARGET)
|
install: $(TARGET)
|
||||||
install -d $(BINDIR)
|
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