Changed to use cocoa_lib.nim to create libcocoa.a library file

This commit is contained in:
Armando Rivera 2021-08-08 17:51:47 -04:00
parent b2eac872ba
commit 623d150afa

View File

@ -7,7 +7,7 @@ author = "Armando Rivera"
description = "macOS Cocoa GUI package" description = "macOS Cocoa GUI package"
license = "MIT" license = "MIT"
bin = @["bundle"] bin = @["bundle"]
installDirs = @["cocoa"] skipDirs = @["cocoa"]
installFiles = @["cocoa.nim"] installFiles = @["cocoa.nim"]
@ -19,4 +19,4 @@ before install:
const libDir = getHomeDir() & "/.nimble/lib" const libDir = getHomeDir() & "/.nimble/lib"
mkDir(libdir) mkDir(libdir)
exec " nim c --app:staticlib -d:release -o:" & libdir & "/libcocoa.a cocoa.nim" exec " nim c --app:staticlib -d:release -o:" & libdir & "/libcocoa.a cocoa_lib.nim"