quiche-build.sh 854 B

1234567891011121314151617181920212223242526
  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. # Build the Cloudflare quiche
  11. #
  12. set -e
  13. SRCTOP="$(cd $SRCTOP; pwd)"
  14. BLDTOP="$(cd $BLDTOP; pwd)"
  15. echo "------------------------------------------------------------------"
  16. echo "Building Cloudflare quiche"
  17. echo "------------------------------------------------------------------"
  18. QUICHE_TARGET_PATH="$BLDTOP/quiche"
  19. test -d "$QUICHE_TARGET_PATH" || mkdir "$QUICHE_TARGET_PATH"
  20. echo " QUICHE_TARGET_PATH: $QUICHE_TARGET_PATH"
  21. (cd "$SRCTOP/cloudflare-quiche" && cargo build --verbose --target-dir "$QUICHE_TARGET_PATH")