mirror of
https://github.com/logos-storage/nim-bearssl.git
synced 2026-01-07 16:03:09 +00:00
Fix path handling for compilation targets.
Bump version to 0.1.5.
This commit is contained in:
parent
8a9503b6df
commit
924fb6cad1
@ -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"
|
||||||
|
|||||||
@ -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".}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user