Fix path handling for compilation targets.

Bump version to 0.1.5.
This commit is contained in:
cheatfate 2020-03-08 20:28:15 +02:00
parent 8a9503b6df
commit 924fb6cad1
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# Package # Package
version = "0.1.4" version = "0.1.5"
author = "Status Research & Development GmbH" author = "Status Research & Development GmbH"
description = "BearSSL wrapper" description = "BearSSL wrapper"
license = "MIT or Apache License 2.0" license = "MIT or Apache License 2.0"

View File

@ -8,7 +8,7 @@
## those terms. ## those terms.
## This module implements interface with BearSSL library sources. ## This module implements interface with BearSSL library sources.
import strutils import strutils
from os import DirSep from os import DirSep, quoteShell
const const
bearPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep & bearPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep &
@ -31,9 +31,9 @@ const
bearToolsPath = bearPath & "tools" & DirSep bearToolsPath = bearPath & "tools" & DirSep
bearRootPath = bearSrcPath & DirSep bearRootPath = bearSrcPath & DirSep
{.passC: "-I" & bearSrcPath} {.passC: "-I" & quoteShell(bearSrcPath)}
{.passC: "-I" & bearIncPath} {.passC: "-I" & quoteShell(bearIncPath)}
{.passC: "-I" & bearPath & "tools"} {.passC: "-I" & quoteShell(bearPath & "tools")}
when defined(windows): when defined(windows):
{.passC: "-DBR_USE_WIN32_TIME=1".} {.passC: "-DBR_USE_WIN32_TIME=1".}