From c14202d6e9f50987663933d8d30c80a265ee772d Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 12 Mar 2018 22:44:23 +0200 Subject: Change names in config.nim and export consts for tomcrypt --- src/tommath/private/config.nim | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/tommath/private/config.nim') diff --git a/src/tommath/private/config.nim b/src/tommath/private/config.nim index 496ea34..21c0678 100644 --- a/src/tommath/private/config.nim +++ b/src/tommath/private/config.nim @@ -5,22 +5,22 @@ template currentSourceDir(): string = parentDir(currentSourcePath()) when not defined(tommathPrefix): - const tommathPrefix = currentSourceDir() + const tommathPrefix* = currentSourceDir() -when not defined(tommathIncPath): - const tommathIncPath = tommathPrefix / "include" +when not defined(tommathIncDir): + const tommathIncDir* = tommathPrefix / "include" when defined(vcc): - {.passC:"/I" & tommathIncPath.} + {.passC:"/I" & tommathIncDir.} else: - {.passC:"-I" & tommathIncPath.} + {.passC:"-I" & tommathIncDir.} -when not defined(tommathLibPath): - const tommathLibPath = tommathPrefix / "lib" +when not defined(tommathLibDir): + const tommathLibDir* = tommathPrefix / "lib" when defined(vcc): - const libraryPath = tommathLibPath / "tommath.lib" + const tommathLibPath* = tommathLibDir / "tommath.lib" else: - const libraryPath = tommathLibPath / "libtommath.a" + const tommathLibPath* = tommathLibDir / "libtommath.a" -{.passL:libraryPath.} +{.passL:tommathLibPath.} -- cgit v1.2.3