mirror of
https://github.com/drygdryg/wpspin-nim.git
synced 2025-05-24 17:22:58 +03:00
Build with Nimble
This commit is contained in:
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")
|
Reference in New Issue
Block a user