summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2018-03-13 07:36:00 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2018-03-13 07:36:00 +0200
commit8ecb9ab083d79acc23b0d5a60f91d75c21965acb (patch)
treed9cde8470004455cfd022c84cb037c7f2fde99af
parent8933d9b3573b1dc7c4d51cb3c31eb5a457aab549 (diff)
downloadtomcrypt-nim-8ecb9ab083d79acc23b0d5a60f91d75c21965acb.tar.gz
tomcrypt-nim-8ecb9ab083d79acc23b0d5a60f91d75c21965acb.zip
Export constants from config.nim
-rw-r--r--src/tomcrypt/private/config.nim20
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.}