Fix path handling for compile targets.

Bump version to 0.1.1.
This commit is contained in:
cheatfate 2020-03-08 20:26:54 +02:00
parent 85b2620a6e
commit 25b04816a0
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
2 changed files with 12 additions and 8 deletions

View File

@ -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.}

View File

@ -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"