From 8ecb9ab083d79acc23b0d5a60f91d75c21965acb Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Tue, 13 Mar 2018 07:36:00 +0200 Subject: Export constants from config.nim --- src/tomcrypt/private/config.nim | 20 ++++++++++---------- 1 file 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.} -- cgit v1.2.3