diff options
| -rw-r--r-- | src/tomcrypt/private/config.nim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tomcrypt/private/config.nim b/src/tomcrypt/private/config.nim index 99c73c7..d2ee793 100644 --- a/src/tomcrypt/private/config.nim +++ b/src/tomcrypt/private/config.nim @@ -5,22 +5,22 @@ template currentSourceDir(): string = parentDir(currentSourcePath()) when not defined(tomcryptPrefix): - const tomcryptPrefix = currentSourceDir() + const tomcryptPrefix* = currentSourceDir() -when not defined(tomcryptIncPath): - const tomcryptIncPath = tomcryptPrefix / "include" +when not defined(tomcryptIncDir): + const tomcryptIncDir* = tomcryptPrefix / "include" when defined(vcc): - {.passC:"/I" & tomcryptIncPath.} + {.passC:"/I" & tomcryptIncDir.} else: - {.passC:"-I" & tomcryptIncPath.} + {.passC:"-I" & tomcryptIncDir.} -when not defined(tomcryptLibPath): - const tomcryptLibPath = tomcryptPrefix / "lib" +when not defined(tomcryptLibDir): + const tomcryptLibDir* = tomcryptPrefix / "lib" when defined(vcc): - const libraryPath = tomcryptLibPath / "tomcrypt.lib" + const tomcryptLibPath* = tomcryptLibDir / "tomcrypt.lib" else: - const libraryPath = tomcryptLibPath / "libtomcrypt.a" + const tomcryptLibPath* = tomcryptLibDir / "libtomcrypt.a" -{.passL:libraryPath.} +{.passL:tomcryptLibPath.} |
