all repos — nifty @ 603c2078d088114c7f43529916695f5461372a07

A tiny (pseudo) package manager and script runner.

Updated docs and compilers.
h3rald h3rald@h3rald.com
Sat, 12 Sep 2020 12:12:42 +0200
commit

603c2078d088114c7f43529916695f5461372a07

parent

d8864b9120dd54685f91dbf1fae51e78a83a68fa

4 files changed, 10 insertions(+), 38 deletions(-)

jump to
M .gitignore.gitignore

@@ -5,3 +5,4 @@ nifty

nakefile nakefile.exe packages/ +*.zip
M Nifty_UserGuide.mdNifty_UserGuide.md

@@ -85,14 +85,13 @@ ## Getting started

### Downloading Pre-built Binaries -{# release -> [nifty for \$1]({{release}}/dowload/{{$version}}/nifty_v{{$version}}_$2.zip)#} +{# release -> [nifty for $1]({{release}}/dowload/{{$version}}/nifty_v{{$version}}_$2.zip)#} The easiest way to get {{n}} is by downloading one of the prebuilt binaries from the [Github Releases Page]({{release -> https://github.com/h3rald/nifty/releases}}): - {#release||Mac OS X (x64)||macosx_x64#} - {#release||Windows (x64)||windows_x64#} - {#release||Linux (x64)||linux_x64#} -- {#release||Linux (ARM)||linux_arm#} ### Building from Source
M nifty.nimblenifty.nimble

@@ -25,9 +25,7 @@

requires "nim >= 0.19.0" const compile = "nim c -d:release" -const linux_x86 = "--cpu:i386 --os:linux -o:nifty" const linux_x64 = "--cpu:amd64 --os:linux -o:nifty" -const linux_arm = "--cpu:arm --os:linux -o:nifty" const windows_x64 = "--cpu:amd64 --os:windows -o:nifty.exe" const macosx_x64 = "-o:nifty" const program = "nifty"

@@ -43,15 +41,9 @@

task windows_x64_build, "Build nifty for Windows (x64)": shell compile, windows_x64, program_file -task linux_x86_build, "Build nifty for Linux (x86)": - shell compile, linux_x86, program_file - task linux_x64_build, "Build nifty for Linux (x64)": shell compile, linux_x64, program_file -task linux_arm_build, "Build nifty for Linux (ARM)": - shell compile, linux_arm, program_file - task macosx_x64_build, "Build nifty for Mac OS X (x64)": shell compile, macosx_x64, program_file

@@ -63,15 +55,7 @@ shell "rm", program & ".exe"

echo "\n\n\n LINUX - x64:\n\n" linux_x64_buildTask() shell zip, filename_for("linux", "x64"), program - shell "rm", program - echo "\n\n\n LINUX - x86:\n\n" - linux_x86_buildTask() - shell zip, filename_for("linux", "x86"), program - shell "rm", program - echo "\n\n\n LINUX - ARM:\n\n" - linux_arm_buildTask() - shell zip, filename_for("linux", "arm"), program - shell "rm", program + shell "rm", program echo "\n\n\n MAC OS X - x64:\n\n" macosx_x64_buildTask() shell zip, filename_for("macosx", "x64"), program
M src/nifty.nim.cfgsrc/nifty.nim.cfg

@@ -1,24 +1,12 @@

+# https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/ + + # https://gist.github.com/Drakulix/9881160 -amd64.windows.gcc.path = "/usr/local/mingw/bin" +amd64.windows.gcc.path = "/usr/local/bin" amd64.windows.gcc.exe = "x86_64-w64-mingw32-gcc" amd64.windows.gcc.linkerexe = "x86_64-w64-mingw32-gcc" -# https://gist.github.com/Drakulix/9881160 -i386.windows.gcc.path = "/usr/local/mingw/bin" -i386.windows.gcc.exe = "i686-w64-mingw32-gcc" -i386.windows.gcc.linkerexe = "i686-w64-mingw32-gcc" - # http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux -i386.linux.gcc.path = "/usr/local/gcc-4.8.1-for-linux32/bin" -i386.linux.gcc.exe = "i586-pc-linux-gcc" -i386.linux.gcc.linkerexe = "i586-pc-linux-gcc" - -# http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux -amd64.linux.gcc.path = "/usr/local/gcc-4.8.1-for-linux64/bin" -amd64.linux.gcc.exe = "x86_64-pc-linux-gcc" -amd64.linux.gcc.linkerexe = "x86_64-pc-linux-gcc" - -# http://www.jaredwolff.com/toolchains/ -arm.linux.gcc.path = "/usr/local/arm-none-linux-gnueabi/bin" -arm.linux.gcc.exe = "arm-none-linux-gnueabi-gcc" -arm.linux.gcc.linkerexe = "arm-none-linux-gnueabi-gcc" +amd64.linux.gcc.path = "/usr/local/bin" +amd64.linux.gcc.exe = "x86_64-linux-musl-gcc" +amd64.linux.gcc.linkerexe = "x86_64-linux-musl-gcc"