12c593315Sopenharmony_ci#!/bin/sh 22c593315Sopenharmony_ci# 32c593315Sopenharmony_ci# nghttp2 - HTTP/2 C Library 42c593315Sopenharmony_ci# 52c593315Sopenharmony_ci# Copyright (c) 2022 nghttp2 contributors 62c593315Sopenharmony_ci# 72c593315Sopenharmony_ci# Permission is hereby granted, free of charge, to any person obtaining 82c593315Sopenharmony_ci# a copy of this software and associated documentation files (the 92c593315Sopenharmony_ci# "Software"), to deal in the Software without restriction, including 102c593315Sopenharmony_ci# without limitation the rights to use, copy, modify, merge, publish, 112c593315Sopenharmony_ci# distribute, sublicense, and/or sell copies of the Software, and to 122c593315Sopenharmony_ci# permit persons to whom the Software is furnished to do so, subject to 132c593315Sopenharmony_ci# the following conditions: 142c593315Sopenharmony_ci# 152c593315Sopenharmony_ci# The above copyright notice and this permission notice shall be 162c593315Sopenharmony_ci# included in all copies or substantial portions of the Software. 172c593315Sopenharmony_ci# 182c593315Sopenharmony_ci# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 192c593315Sopenharmony_ci# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 202c593315Sopenharmony_ci# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 212c593315Sopenharmony_ci# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 222c593315Sopenharmony_ci# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 232c593315Sopenharmony_ci# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 242c593315Sopenharmony_ci# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 252c593315Sopenharmony_ci 262c593315Sopenharmony_ciif [ -z "$NDK" ]; then 272c593315Sopenharmony_ci echo 'No $NDK specified.' 282c593315Sopenharmony_ci exit 1 292c593315Sopenharmony_cifi 302c593315Sopenharmony_ci 312c593315Sopenharmony_ciexport TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64 322c593315Sopenharmony_ciexport TARGET=aarch64-linux-android 332c593315Sopenharmony_ciexport API=33 342c593315Sopenharmony_ciexport AR=$TOOLCHAIN/bin/llvm-ar 352c593315Sopenharmony_ciexport CC=$TOOLCHAIN/bin/$TARGET$API-clang 362c593315Sopenharmony_ciexport CXX=$TOOLCHAIN/bin/$TARGET$API-clang++ 372c593315Sopenharmony_ciexport LD=$TOOLCHAIN/bin/ld 382c593315Sopenharmony_ciexport RANDLIB=$TOOLCHAIN/bin/llvm-ranlib 392c593315Sopenharmony_ciexport STRIP=$TOOLCHAIN/bin/llvm-strip 402c593315Sopenharmony_ciexport PREFIX=$NDK/usr/local 41