build.sh begin toasting

This commit is contained in:
benbierens 2024-05-09 11:26:26 +02:00
parent f88e10b034
commit e755ff4cbf
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
1 changed files with 9 additions and 10 deletions

View File

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