enable cross-compilation
This commit is contained in:
parent
ac96054870
commit
9d608c1afe
|
@ -1,12 +1,12 @@
|
||||||
import strutils
|
import strutils
|
||||||
from os import DirSep, quoteShell
|
from os import DirSep, AltSep, quoteShell
|
||||||
|
|
||||||
const
|
const
|
||||||
wrapperPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep &
|
wrapperPath = currentSourcePath.rsplit({DirSep, AltSep}, 1)[0] &
|
||||||
"secp256k1_wrapper"
|
"/secp256k1_wrapper"
|
||||||
internalPath = wrapperPath & DirSep & "secp256k1"
|
internalPath = wrapperPath & "/secp256k1"
|
||||||
srcPath = internalPath & DirSep & "src"
|
srcPath = internalPath & "/src"
|
||||||
secpSrc = srcPath & DirSep & "secp256k1.c"
|
secpSrc = srcPath & "/secp256k1.c"
|
||||||
|
|
||||||
{.passC: "-I" & quoteShell(wrapperPath).}
|
{.passC: "-I" & quoteShell(wrapperPath).}
|
||||||
{.passC: "-I" & quoteShell(internalPath).}
|
{.passC: "-I" & quoteShell(internalPath).}
|
||||||
|
|
Loading…
Reference in New Issue