1#!/bin/sh
2#
3# Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
4#
5# Licensed under the Apache License 2.0 (the "License").  You may not use
6# this file except in compliance with the License.  You can obtain a copy
7# in the file LICENSE in the source distribution or at
8# https://www.openssl.org/source/license.html
9
10#
11# Build the Cloudflare quiche
12#
13set -e
14
15SRCTOP="$(cd $SRCTOP; pwd)"
16BLDTOP="$(cd $BLDTOP; pwd)"
17
18echo "------------------------------------------------------------------"
19echo "Building Cloudflare quiche"
20echo "------------------------------------------------------------------"
21
22QUICHE_TARGET_PATH="$BLDTOP/quiche"
23test -d "$QUICHE_TARGET_PATH" || mkdir "$QUICHE_TARGET_PATH"
24echo "   QUICHE_TARGET_PATH: $QUICHE_TARGET_PATH"
25
26(cd "$SRCTOP/cloudflare-quiche" && cargo build --verbose --target-dir "$QUICHE_TARGET_PATH")
27