build.sh begin toasting
This commit is contained in:
parent
f88e10b034
commit
e755ff4cbf
19
build.sh
19
build.sh
|
@ -15,18 +15,17 @@ echo >> "${root}/leveldb.nim"
|
||||||
# assemble files to be compiled:
|
# assemble files to be compiled:
|
||||||
extensions="c cc cpp"
|
extensions="c cc cpp"
|
||||||
for ext in ${extensions}; do
|
for ext in ${extensions}; do
|
||||||
echo ${ext}
|
|
||||||
for file in `find "${root}/sources" -type f -name "*.${ext}"`; do
|
for file in `find "${root}/sources" -type f -name "*.${ext}"`; do
|
||||||
echo ${file}
|
compile="${compile} --compile=${file}"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# generate nim wrapper with nimterop
|
# generate nim wrapper with nimterop
|
||||||
#toast \
|
toast \
|
||||||
# --compile="${root}/sources/randombytes.c" \
|
$compile \
|
||||||
# --compile="${root}/sources/hazmat.c" \
|
--pnim \
|
||||||
# --pnim \
|
--preprocess \
|
||||||
# --noHeader \
|
--noHeader \
|
||||||
# "${root}/sources/randombytes.h" \
|
--includeDirs="${root}/sources/include/leveldb" \
|
||||||
# "${root}/sources/hazmat.h" > "${root}/sss/cwrapper.nim"
|
--includeDirs="${root}/build/include" \
|
||||||
~ ~ ~
|
"${root}/sources/include/leveldb/c.h" >> "${root}/leveldb.nim"
|
||||||
|
|
Loading…
Reference in New Issue