diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2018-03-12 22:44:23 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2018-03-12 22:44:23 +0200 |
| commit | c14202d6e9f50987663933d8d30c80a265ee772d (patch) | |
| tree | 74269be7c40ee10e0b55a826c73317a4f193ee1c /src/tommath/private | |
| parent | d175c3c6e050df92d150019a5f783928ee1284d8 (diff) | |
| download | tommath-nim-c14202d6e9f50987663933d8d30c80a265ee772d.tar.gz tommath-nim-c14202d6e9f50987663933d8d30c80a265ee772d.zip | |
Diffstat (limited to 'src/tommath/private')
| -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.} |
