enable cross-compilation

This commit is contained in:
Ștefan Talpalaru 2021-02-02 23:25:50 +01:00
parent ac96054870
commit 9d608c1afe
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 6 additions and 6 deletions

View File

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