File: build_codec_helper.sh

package info (click to toggle)
pytorch-audio 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,512 kB
  • sloc: python: 15,606; cpp: 1,352; sh: 257; makefile: 21
file content (13 lines) | stat: -rwxr-xr-x 542 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# Helper script for building codecs depending on libogg, such as libopus and opus.
# It is difficult to set environment variable inside of ExternalProject_Add,
# so this script sets necessary environment variables before running the given command

this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
install_dir="${this_dir}/install"

export PKG_CONFIG_PATH="${install_dir}/lib/pkgconfig"
export LDFLAGS="-L${install_dir}/lib ${LDFLAGS}"
export CPPFLAGS="-I${install_dir}/include ${CPPFLAGS}"

$@