mirror of
https://github.com/codex-storage/nim-leveldb.git
synced 2025-02-19 19:08:34 +00:00
copy in submodule and build.sh
This commit is contained in:
parent
69f86fe38c
commit
ab4e190d47
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "sources"]
|
||||
path = sources
|
||||
url = https://github.com/google/leveldb
|
16
build.sh
Normal file
16
build.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
root=$(dirname "$0")
|
||||
|
||||
# install nimterop, if not already installed
|
||||
if ! [ -x "$(command -v toast)" ]; then
|
||||
nimble install -y nimterop@0.6.13
|
||||
fi
|
||||
|
||||
# generate nim wrapper with nimterop
|
||||
toast \
|
||||
--compile="${root}/sources/randombytes.c" \
|
||||
--compile="${root}/sources/hazmat.c" \
|
||||
--pnim \
|
||||
--noHeader \
|
||||
"${root}/sources/randombytes.h" \
|
||||
"${root}/sources/hazmat.h" > "${root}/sss/cwrapper.nim"
|
1
sources
Submodule
1
sources
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 99b3c03b3284f5886f9ef9a4ef703d57373e61be
|
Loading…
x
Reference in New Issue
Block a user