mirror of https://github.com/c-ares/c-ares.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
860 B
32 lines
860 B
#!/bin/sh |
|
# Copyright (C) The c-ares project and its contributors |
|
# SPDX-License-Identifier: MIT |
|
set -e -x |
|
|
|
OS=`uname -s || true` |
|
|
|
if [ "$OS" = "Linux" ]; then |
|
# Make distribution tarball |
|
autoreconf -fi |
|
./configure |
|
make dist VERSION=99.98.97 |
|
# Extract distribution tarball for building |
|
tar xvf c-ares-99.98.97.tar.gz |
|
cd c-ares-99.98.97 |
|
# Build autotools |
|
mkdir build-autotools |
|
cd build-autotools |
|
../configure --disable-symbol-hiding --enable-expose-statics --enable-maintainer-mode --enable-debug |
|
make |
|
cd test |
|
$TEST_WRAP ./arestest -4 -v $TEST_FILTER |
|
cd ../.. |
|
# Build CMake |
|
mkdir build-cmake |
|
cd build-cmake |
|
cmake -DCMAKE_BUILD_TYPE=DEBUG -DCARES_STATIC=ON -DCARES_STATIC_PIC=ON -DCARES_BUILD_TESTS=ON .. |
|
make |
|
cd bin |
|
$TEST_WRAP ./arestest -4 -v $TEST_FILTER |
|
cd ../.. |
|
fi
|
|
|