diff options
author | Sven Gothel <[email protected]> | 2021-06-07 04:52:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-06-07 04:52:04 +0200 |
commit | 301b3a8fcede0adc8111f3fc9c80b75503f70437 (patch) | |
tree | c5306f3c0f7394a6bacbbfe900739fc83a3298fe /scripts | |
parent | 104f4d9c3f6ee703c4b5633249d23c8391d12a41 (diff) |
Initial commit of working Cipherpack (See include/elevator/Cipherpack.hpp)v0.0.1
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build-botan-01.sh | 1 | ||||
-rw-r--r-- | scripts/build-botan-min.sh | 46 | ||||
-rw-r--r-- | scripts/build.sh | 6 |
3 files changed, 50 insertions, 3 deletions
diff --git a/scripts/build-botan-01.sh b/scripts/build-botan-01.sh new file mode 100644 index 0000000..6f1e58a --- /dev/null +++ b/scripts/build-botan-01.sh @@ -0,0 +1 @@ +./configure.py --prefix=`pwd`/dist-amd64-max diff --git a/scripts/build-botan-min.sh b/scripts/build-botan-min.sh new file mode 100644 index 0000000..d249574 --- /dev/null +++ b/scripts/build-botan-min.sh @@ -0,0 +1,46 @@ +#! /bin/sh + +sdir=`dirname $(readlink -f $0)` +rootdir=`dirname $sdir` + +cd $rootdir/botan + +MOD_HW_COMMON=simd,chacha_simd32,chacha_avx2,simd_avx2 + +#MOD_HW_AMD64=aes_ni,sha1_sse2,sha1_x86,sha2_32_x86,$MOD_HW_COMMON +MOD_HW_AMD64=sha1_sse2,sha1_x86,sha2_32_x86,$MOD_HW_COMMON +#MOD_HW_ARM64=aes_armv8,pmull,sha1_armv8,sha2_32_armv8,$MOD_HW_COMMON +MOD_HW_ARM64=pmull,sha1_armv8,sha2_32_armv8,$MOD_HW_COMMON + +USE_CPU=x86_64 +MOD_HW_THIS=$MOD_HW_AMD64 + +MOD_RNG=system_rng + +MOD_HASH=sha1,sha2_32 +#MOD_CIPHER=aes,gcm,chacha,chacha20poly1305,aead,stream +MOD_CIPHER=chacha,chacha20poly1305,aead,stream +# MOD_COMPRESSION=lzma,bzip2 +#MOD_BASIC=base,cryptobox,pubkey,rsa,x509,eme_oaep,eme_raw +MOD_BASIC=base,pubkey,rsa,x509,eme_oaep,eme_raw,emsa1 + +# CXX_FLAGS="-fno-rtti" +# LD_FLAGS="-fno-rtti" +CXX_FLAGS= +LD_FLAGS= + +rm -rf dist-amd64-min +mkdir -p dist-amd64-min + +./configure.py --cpu=$USE_CPU --prefix=`pwd`/dist-amd64-min --minimized-build \ + --enable-modules=$MOD_BASIC,$MOD_CIPHER,$MOD_HASH,$MOD_RNG,$MOD_HW_THIS \ + --cxxflags=$CXX_FLAGS \ + --ldflags=$LD_FLAGS \ + --amalgamation \ + --with-doxygen \ + +# --with-lzma --with-bzip2 \ + +cp -a botan_all.cpp botan_all.h dist-amd64-min/ + +cd $rootdir diff --git a/scripts/build.sh b/scripts/build.sh index 21d4d47..1861cf6 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -34,8 +34,8 @@ buildit() { mkdir -p build-$archabi cd build-$archabi # CLANG_ARGS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++" - # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILD_TESTING=ON .. - cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILD_TESTING=ON -DDEBUG=ON .. + # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON .. + cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON .. # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON .. # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DUSE_STRIP=OFF .. # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DUSE_STRIP=ON -DJAVAC_DEBUG_ARGS="none" .. @@ -45,7 +45,7 @@ buildit() { # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON -DINSTRUMENTATION=ON .. # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON -DINSTRUMENTATION_UNDEFINED=ON .. # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON -DINSTRUMENTATION_THREAD=ON .. - make -j $CPU_COUNT install test + make -j $CPU_COUNT install all if [ $? -eq 0 ] ; then echo "BUILD SUCCESS $bname $archabi" # cp -a examples/* $rootdir/dist-$archabi/bin |