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
|
||||
from os import DirSep
|
||||
from os import DirSep, quoteShell
|
||||
|
||||
const wrapperPath = currentSourcePath.rsplit(DirSep, 1)[0] & "/secp256k1_wrapper"
|
||||
{.passC: "-I" & wrapperPath .}
|
||||
{.passC: "-I" & wrapperPath & "/secp256k1".}
|
||||
{.passC: "-I" & wrapperPath & "/secp256k1/src".}
|
||||
const
|
||||
wrapperPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep &
|
||||
"secp256k1_wrapper"
|
||||
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".}
|
||||
|
||||
const secpSrc = wrapperPath & "/secp256k1/src/secp256k1.c"
|
||||
|
||||
{.compile: secpSrc.}
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
mode = ScriptMode.Verbose
|
||||
|
||||
packageName = "secp256k1"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
author = "Status Research & Development GmbH"
|
||||
description = "A wrapper for the libsecp256k1 C library"
|
||||
license = "Apache License 2.0"
|
||||
|
|
Loading…
Reference in New Issue