Fix path handling for compile targets.
Bump version to 0.1.1.
This commit is contained in:
parent
85b2620a6e
commit
25b04816a0
|
@ -1,14 +1,18 @@
|
||||||
import strutils
|
import strutils
|
||||||
from os import DirSep
|
from os import DirSep, quoteShell
|
||||||
|
|
||||||
const wrapperPath = currentSourcePath.rsplit(DirSep, 1)[0] & "/secp256k1_wrapper"
|
const
|
||||||
{.passC: "-I" & wrapperPath .}
|
wrapperPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep &
|
||||||
{.passC: "-I" & wrapperPath & "/secp256k1".}
|
"secp256k1_wrapper"
|
||||||
{.passC: "-I" & wrapperPath & "/secp256k1/src".}
|
internalPath = wrapperPath & DirSep & "secp256k1"
|
||||||
|
srcPath = internalPath & DirSep & "src"
|
||||||
|
secpSrc = srcPath & DirSep & "secp256k1.c"
|
||||||
|
|
||||||
|
{.passC: "-I" & quoteShell(wrapperPath).}
|
||||||
|
{.passC: "-I" & quoteShell(internalPath).}
|
||||||
|
{.passC: "-I" & quoteShell(srcPath).}
|
||||||
{.passC: "-DHAVE_CONFIG_H".}
|
{.passC: "-DHAVE_CONFIG_H".}
|
||||||
|
|
||||||
const secpSrc = wrapperPath & "/secp256k1/src/secp256k1.c"
|
|
||||||
|
|
||||||
{.compile: secpSrc.}
|
{.compile: secpSrc.}
|
||||||
|
|
||||||
{.deadCodeElim: on.}
|
{.deadCodeElim: on.}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
mode = ScriptMode.Verbose
|
mode = ScriptMode.Verbose
|
||||||
|
|
||||||
packageName = "secp256k1"
|
packageName = "secp256k1"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
author = "Status Research & Development GmbH"
|
author = "Status Research & Development GmbH"
|
||||||
description = "A wrapper for the libsecp256k1 C library"
|
description = "A wrapper for the libsecp256k1 C library"
|
||||||
license = "Apache License 2.0"
|
license = "Apache License 2.0"
|
||||||
|
|
Loading…
Reference in New Issue