2013-09-16 13:55:11 +04:00
|
|
|
# FLAC - Free Lossless Audio Codec
|
|
|
|
# Copyright (C) 2001-2009 Josh Coalson
|
2022-07-19 21:49:03 +03:00
|
|
|
# Copyright (C) 2011-2022 Xiph.Org Foundation
|
2013-09-16 13:55:11 +04:00
|
|
|
#
|
|
|
|
# This file is part the FLAC project. FLAC is comprised of several
|
|
|
|
# components distributed under different licenses. The codec libraries
|
|
|
|
# are distributed under Xiph.Org's BSD-like license (see the file
|
|
|
|
# COPYING.Xiph in this distribution). All other programs, libraries, and
|
|
|
|
# plugins are distributed under the GPL (see COPYING.GPL). The documentation
|
|
|
|
# is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
|
|
|
|
# FLAC distribution contains at the top the terms under which it may be
|
|
|
|
# distributed.
|
|
|
|
#
|
|
|
|
# Since this particular file is relevant to all components of FLAC,
|
|
|
|
# it may be distributed under the Xiph.Org license, which is the least
|
|
|
|
# restrictive of those mentioned above. See the file COPYING.Xiph in this
|
|
|
|
# distribution.
|
|
|
|
|
|
|
|
export MALLOC_CHECK_=3
|
|
|
|
export MALLOC_PERTURB_=$((RANDOM % 255 + 1))
|
|
|
|
|
2022-05-18 22:27:19 +03:00
|
|
|
if [ -z "$1" ] ; then
|
2013-09-16 13:55:11 +04:00
|
|
|
BUILD=debug
|
|
|
|
else
|
|
|
|
BUILD="$1"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=../objs/$BUILD/lib:$LD_LIBRARY_PATH
|
2022-05-18 22:27:19 +03:00
|
|
|
LD_LIBRARY_PATH="$(pwd)/../objs/$BUILD/lib:$LD_LIBRARY_PATH"
|
|
|
|
LD_LIBRARY_PATH="$(pwd)/../src/libFLAC/.libs:$LD_LIBRARY_PATH"
|
|
|
|
LD_LIBRARY_PATH="$(pwd)/../src/share/getopt/.libs:$LD_LIBRARY_PATH"
|
|
|
|
LD_LIBRARY_PATH="$(pwd)/../src/share/grabbag/.libs:$LD_LIBRARY_PATH"
|
|
|
|
LD_LIBRARY_PATH="$(pwd)/../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH"
|
|
|
|
LD_LIBRARY_PATH="$(pwd)/../src/share/replaygain_synthesis/.libs:$LD_LIBRARY_PATH"
|
|
|
|
LD_LIBRARY_PATH="$(pwd)/../src/share/utf8/.libs:$LD_LIBRARY_PATH"
|
2013-09-16 13:55:11 +04:00
|
|
|
LD_LIBRARY_PATH=../src/libFLAC/.libs:$LD_LIBRARY_PATH
|
|
|
|
LD_LIBRARY_PATH=../src/libFLAC++/.libs:$LD_LIBRARY_PATH
|
|
|
|
LD_LIBRARY_PATH=../src/share/getopt/.libs:$LD_LIBRARY_PATH
|
|
|
|
LD_LIBRARY_PATH=../src/share/grabbag/.libs:$LD_LIBRARY_PATH
|
|
|
|
LD_LIBRARY_PATH=../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH
|
|
|
|
LD_LIBRARY_PATH=../src/share/replaygain_synthesis/.libs:$LD_LIBRARY_PATH
|
|
|
|
LD_LIBRARY_PATH=../src/share/utf8/.libs:$LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
|
2022-05-18 22:27:19 +03:00
|
|
|
PATH="$(pwd)/../objs/$CMAKE_CONFIG_TYPE:$PATH"
|
|
|
|
PATH="$(pwd)/../objs:$PATH"
|
2022-01-10 21:35:39 +03:00
|
|
|
|
2013-09-16 13:55:11 +04:00
|
|
|
EXE=@EXEEXT@
|
|
|
|
|
2018-05-22 17:17:53 +03:00
|
|
|
# Needed for building out-of-tree where source files are in the $top_srcdir tree
|
2014-12-21 06:41:59 +03:00
|
|
|
# and build products in the $top_builddir tree.
|
|
|
|
top_srcdir=@top_srcdir@
|
|
|
|
top_builddir=@top_builddir@
|
2022-04-20 22:47:07 +03:00
|
|
|
git_commit_version_hash=@GIT_COMMIT_VERSION_HASH@
|
2014-12-21 06:41:59 +03:00
|
|
|
|
2016-12-21 08:42:15 +03:00
|
|
|
# Set `is_win` variable which is used in other scripts that source this one.
|
|
|
|
if test $(env | grep -ic '^comspec=') != 0 ; then
|
|
|
|
is_win=yes
|
|
|
|
else
|
|
|
|
is_win=no
|
|
|
|
fi
|
|
|
|
|
2013-09-16 13:55:11 +04:00
|
|
|
# change to 'false' to show all flac/metaflac output (useful for debugging)
|
|
|
|
if true ; then
|
|
|
|
SILENT='--silent'
|
|
|
|
TOTALLY_SILENT='--totally-silent'
|
|
|
|
else
|
|
|
|
SILENT=''
|
|
|
|
TOTALLY_SILENT=''
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Functions
|
|
|
|
|
2014-11-27 05:03:13 +03:00
|
|
|
die ()
|
|
|
|
{
|
2013-09-16 13:55:11 +04:00
|
|
|
echo $* 1>&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2014-11-27 05:03:13 +03:00
|
|
|
make_streams ()
|
|
|
|
{
|
2013-09-16 13:55:11 +04:00
|
|
|
echo "Generating streams..."
|
|
|
|
if [ ! -f wacky1.wav ] ; then
|
|
|
|
test_streams${EXE} || die "ERROR during test_streams"
|
|
|
|
fi
|
|
|
|
}
|