mirror of
https://github.com/TokTok/c-toxcore
synced 2026-04-04 21:35:45 +00:00
Also enable it for all binary deployment builds. This avoids exporting sodium/vpx/opus symbols through the toxcore library, which way conflict with other exported symbols if client code links to e.g. libsodium itself for its own purposes.
30 lines
593 B
Bash
Executable File
30 lines
593 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eux -o pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
ARCH="$1"
|
|
"$SCRIPT_DIR/deps.sh" linux "$ARCH"
|
|
|
|
export PKG_CONFIG_PATH="$PWD/deps-prefix-linux-$ARCH/lib/pkgconfig"
|
|
|
|
# Build
|
|
cmake \
|
|
-B _build \
|
|
-G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX="$PWD/toxcore-linux-$ARCH" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DENABLE_STATIC=OFF \
|
|
-DENABLE_SHARED=ON \
|
|
-DMUST_BUILD_TOXAV=ON \
|
|
-DDHT_BOOTSTRAP=OFF \
|
|
-DBOOTSTRAP_DAEMON=OFF \
|
|
-DUNITTEST=OFF \
|
|
-DSTRICT_ABI=ON \
|
|
-DMIN_LOGGER_LEVEL=TRACE \
|
|
-DEXPERIMENTAL_API=ON
|
|
|
|
cmake --build _build
|
|
cmake --install _build
|