diff --git a/secp256k1.nim b/secp256k1.nim index ad1a98d..61716f2 100644 --- a/secp256k1.nim +++ b/secp256k1.nim @@ -1,14 +1,18 @@ import strutils -from os import DirSep +from os import DirSep, quoteShell -const wrapperPath = currentSourcePath.rsplit(DirSep, 1)[0] & "/secp256k1_wrapper" -{.passC: "-I" & wrapperPath .} -{.passC: "-I" & wrapperPath & "/secp256k1".} -{.passC: "-I" & wrapperPath & "/secp256k1/src".} +const + wrapperPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep & + "secp256k1_wrapper" + internalPath = wrapperPath & DirSep & "secp256k1" + srcPath = internalPath & DirSep & "src" + secpSrc = srcPath & DirSep & "secp256k1.c" + +{.passC: "-I" & quoteShell(wrapperPath).} +{.passC: "-I" & quoteShell(internalPath).} +{.passC: "-I" & quoteShell(srcPath).} {.passC: "-DHAVE_CONFIG_H".} -const secpSrc = wrapperPath & "/secp256k1/src/secp256k1.c" - {.compile: secpSrc.} {.deadCodeElim: on.} diff --git a/secp256k1.nimble b/secp256k1.nimble index d8efbfe..8261381 100644 --- a/secp256k1.nimble +++ b/secp256k1.nimble @@ -1,7 +1,7 @@ mode = ScriptMode.Verbose packageName = "secp256k1" -version = "0.1.0" +version = "0.1.1" author = "Status Research & Development GmbH" description = "A wrapper for the libsecp256k1 C library" license = "Apache License 2.0"