-
Notifications
You must be signed in to change notification settings - Fork 0
/
genBotanAmalgamations.bat
84 lines (59 loc) · 3.63 KB
/
genBotanAmalgamations.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
setlocal enableextensions
REM dummy line
set BOTAN_SRC_DIR=c:\Windows\Temp\Botan-2.19.3
set BOTAN_DEST_ANDROID_DIR=%cd%\botanAm\android
set BOTAN_DEST_IOS_DIR=%cd%\botanAm\ios
set BOTAN_DEST_DESKTOP_DIR=%cd%\botanAm\desktop
mkdir %BOTAN_DEST_ANDROID_DIR%\x86
mkdir %BOTAN_DEST_ANDROID_DIR%\x86_64
mkdir %BOTAN_DEST_ANDROID_DIR%\arm
mkdir %BOTAN_DEST_ANDROID_DIR%\arm64
mkdir %BOTAN_DEST_IOS_DIR%\arm
mkdir %BOTAN_DEST_IOS_DIR%\arm64
mkdir %BOTAN_DEST_DESKTOP_DIR%\windows\x86_64
mkdir %BOTAN_DEST_DESKTOP_DIR%\windows\x64_msvc
mkdir %BOTAN_DEST_DESKTOP_DIR%\linux\x86_64
mkdir %BOTAN_DEST_DESKTOP_DIR%\bsd\x86_64
mkdir %BOTAN_DEST_DESKTOP_DIR%\mac\x86_64
cd %BOTAN_SRC_DIR%
REM ########## ANDROID
REM # Android Emulator x86 does not support extensions from AVX2 onwards
REM # PKCS11 disabled due to Botan amalgamtion generation bug since v2.0.1
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=x86 --os=linux --cc=clang --disable-avx2 --disable-aes-ni --disable-sha-ni
move botan_all.cpp %BOTAN_DEST_ANDROID_DIR%\x86
move botan_all.h %BOTAN_DEST_ANDROID_DIR%\x86
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=x64 --os=linux --cc=clang --disable-avx2 --disable-aes-ni --disable-sha-ni
move botan_all.cpp %BOTAN_DEST_ANDROID_DIR%\x86_64
move botan_all.h %BOTAN_DEST_ANDROID_DIR%\x86_64
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=armv7 --os=linux --cc=clang
move botan_all.cpp %BOTAN_DEST_ANDROID_DIR%\arm
move botan_all.h %BOTAN_DEST_ANDROID_DIR%\arm
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=aarch64 --os=linux --cc=clang
move botan_all.cpp %BOTAN_DEST_ANDROID_DIR%\arm64
move botan_all.h %BOTAN_DEST_ANDROID_DIR%\arm64
REM ########## IOS
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --without-os-feature=thread_local --cpu=arm --os=ios --cc=clang
move botan_all.cpp %BOTAN_DEST_IOS_DIR%\arm
move botan_all.h %BOTAN_DEST_IOS_DIR%\arm
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=aarch64 --os=ios --cc=clang
move botan_all.cpp %BOTAN_DEST_IOS_DIR%\arm64
move botan_all.h %BOTAN_DEST_IOS_DIR%\arm64
REM ########## Desktop (with all possible cpu extensions enabled)
REM # Windows build with MinGW, please download MingW from https://nuwen.net/mingw.html
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=x64 --os=mingw --cc=gcc
move botan_all.cpp %BOTAN_DEST_DESKTOP_DIR%\windows\x86_64
move botan_all.h %BOTAN_DEST_DESKTOP_DIR%\windows\x86_64
REM Windows build with MSVC, at least Visual Studio Build Tools are needed
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=x64 --os=windows --cc=msvc
move botan_all.cpp %BOTAN_DEST_DESKTOP_DIR%\windows\x64_msvc
move botan_all.h %BOTAN_DEST_DESKTOP_DIR%\windows\x64_msvc
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=x64 --os=linux --cc=gcc
move botan_all.cpp %BOTAN_DEST_DESKTOP_DIR%\linux\x86_64
move botan_all.h %BOTAN_DEST_DESKTOP_DIR%\linux\x86_64
REM # See README file for building on MacOS
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=x64 --os=darwin --cc=gcc
move botan_all.cpp %BOTAN_DEST_DESKTOP_DIR%\mac\x86_64
move botan_all.h %BOTAN_DEST_DESKTOP_DIR%\mac\x86_64
python configure.py --amalgamation --disable-modules=pkcs11,tls_10 --disable-cc-tests --cpu=x64 --os=freebsd --cc=gcc
move botan_all.cpp %BOTAN_DEST_DESKTOP_DIR%\bsd\x86_64
move botan_all.h %BOTAN_DEST_DESKTOP_DIR%\bsd\x86_64