Added task to create libcocoa.a static lib

This commit is contained in:
Armando Rivera 2021-08-08 16:53:47 -04:00
parent e1f3e77302
commit 6c13940c87

View File

@ -1,3 +1,5 @@
import ospaths
# Package
version = "0.1.1"
@ -12,3 +14,9 @@ installFiles = @["cocoa.nim"]
# Dependencies
requires "nim >= 1.4.8, plists"
before install:
const libDir = getHomeDir() & "/.nimble/lib"
mkDir(libdir)
exec " nim c --app:staticlib -d:release -o:" & libdir & "/libcocoa.a cocoa.nim"