diff options
Diffstat (limited to 'src/tommath/private/config.nim')
| -rw-r--r-- | src/tommath/private/config.nim | 20 |
1 files changed, 10 insertions, 10 deletions
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.} |
