Add foreign deps to nimble.nimble.
This commit is contained in:
parent
2bec00a9f3
commit
8120ac02c8
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import ospaths
|
||||
import ospaths, distros
|
||||
template thisModuleFile: string = instantiationInfo(fullPaths = true).filename
|
||||
|
||||
when fileExists(thisModuleFile.parentDir / "src/nimblepkg/common.nim"):
|
||||
|
|
@ -22,6 +22,11 @@ srcDir = "src"
|
|||
|
||||
requires "nim >= 0.13.0", "compiler#head"
|
||||
|
||||
if detectOs(Ubuntu):
|
||||
foreignDep "libssl-dev"
|
||||
elif detectOs(MacOSX):
|
||||
foreignDep "openssl"
|
||||
|
||||
task test, "Run the Nimble tester!":
|
||||
withDir "tests":
|
||||
exec "nim c -r tester"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue