-
Notifications
You must be signed in to change notification settings - Fork 65
/
linux_386.yml
65 lines (61 loc) · 1.76 KB
/
linux_386.yml
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
---
:import:
- 3rd_party_deps.yml
- unix.yml
:release_build:
:output: libhelium.a
:dependencies:
:libraries:
- :name: liboqs
:source_path: third_party/liboqs
:artifact_path: third_party/liboqs/build
:fetch:
:method: :git
:source: $HE_LIBOQS_SOURCE
:tag: $HE_LIBOQS_TAG
:build:
- "mkdir -p build"
- "cd build && cmake -DCMAKE_TOOLCHAIN_FILE=.CMake/toolchain_x86.cmake $HE_LIBOQS_BUILD_FLAGS .."
- "cd build && make all"
:artifacts:
:includes:
- include
- include/oqs
:static_libraries:
- lib/liboqs.a
- :name: WolfSSL
:source_path: third_party/wolfssl
:artifact_path: third_party/builds/wolfssl_build
:fetch:
:method: :git
:source: $HE_WOLFSSL_SOURCE
:tag: $HE_WOLFSSL_TAG
:environment:
- CFLAGS=-O3 -fPIC -D_FORTIFY_SOURCE=2 -DWOLFSSL_MIN_RSA_BITS=2048 -DWOLFSSL_MIN_ECC_BITS=256 -m32 -DUSE_CERT_BUFFERS_4096 -DUSE_CERT_BUFFERS_256 -DWOLFSSL_NO_SPHINCS -DWOLFSSL_TLS13_MIDDLEBOX_COMPAT
- LDFLAGS= -m32
:build:
- git apply ../../wolfssl/fix-falcon-dilithm-flags.patch
- "autoreconf -i"
- "./configure $HE_WOLFSSL_CONF_FLAGS --prefix=$(pwd)/../builds/wolfssl_build --with-liboqs=$(pwd)/../liboqs/build --disable-asm --disable-sp-asm --disable-intelasm"
- "make"
- "make install"
:artifacts:
:includes:
- include
- include/wolfssl # needed e.g. for mock_ssl.h to find wolfssl/ssl.h
:static_libraries:
- lib/libwolfssl.a
:environment:
- CC: clang -m32
:flags:
:release:
:compile:
:*:
- -m32
:test:
:compile:
:*:
- -m32
:link:
:*:
- -m32