1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00
audacity/mac/scripts/build_wxwidgets2
James Crook e3a2167b7b Mac: Build wx3.1.1 libs for Audacity.
Sets the i386 option and installs where XCode will fetch it from.
2018-04-13 10:11:30 +01:00

50 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
#
# You can use this to build wxWidgets. Just run it from within the root of the
# wxWidgets source tree like so:
#
# sudo <path to this script>/build_wxwidgets
#
# Build a specific configuration
function bld
{
rm -rf "${1}"
mkdir -p "${1}"
pushd "${1}"
shift
../configure --disable-accessibility \
--enable-macosx-arch=i386 \
--with-expat=builtin \
--with-zlib=builtin \
--with-regex=builtin \
--enable-universal_binary=no \
--enable-unicode=yes \
--enable-webkit=no \
--with-macosx-version-min=10.10 \
${@}
export LDFLAGS="${LDFLAGS1}"
xcrun make -j 4
export LDFLAGS=""
popd
}
# Install a specific configuration
function inst
{
pushd "${1}"
xcrun make install
popd
}
# Build all configurations
bld bld_debug --enable-debug=yes --enable-shared=yes --with-flavour=debug
bld bld_release --enable-debug=no --enable-shared=yes --with-flavour=release
# Install all configurations
inst bld_debug
inst bld_release