From e3a2167b7b87b008de3c8c220fd0dae616667b73 Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 13 Apr 2018 09:38:52 +0100 Subject: [PATCH] Mac: Build wx3.1.1 libs for Audacity. Sets the i386 option and installs where XCode will fetch it from. --- mac/scripts/build_wxwidgets2 | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 mac/scripts/build_wxwidgets2 diff --git a/mac/scripts/build_wxwidgets2 b/mac/scripts/build_wxwidgets2 new file mode 100755 index 000000000..bef535d41 --- /dev/null +++ b/mac/scripts/build_wxwidgets2 @@ -0,0 +1,49 @@ +#!/bin/sh +# +# You can use this to build wxWidgets. Just run it from within the root of the +# wxWidgets source tree like so: +# +# sudo /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