mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 17:10:55 +02:00
add_conan_lib cmake function is defined, that allows to add a dependency using Conan with two possible system fallbacks: 1. pkg_check_modules is invoked, if `PGK_CONFIG ...` is present 2. find_package is invoked if `FIND_PACKAGE_OPTIONS` is present and `pkg_check_modules` has failed If `ALWAYS_ALLOW_CONAN_FALLBACK` is present - `obey_system_dependencies` will be ignored for the package Currently, the following dependencies are retrieved using Conan: * zlib * expat * wxwidgets * libmp3lame * libid3tag * libmad The last three libraries are included in this commit, as they depend on zlib. Properly pass **arch** and **os.version** to Conan
53 lines
1.2 KiB
Bash
53 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
conan --version
|
|
|
|
if [ ! -d "audacity" ]
|
|
then
|
|
git clone https://github.com/audacity/audacity
|
|
fi
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \
|
|
-Daudacity_lib_preference=system \
|
|
-Daudacity_obey_system_dependencies=On \
|
|
-Daudacity_use_wxwidgets=local \
|
|
-Daudacity_use_expat=system \
|
|
-Daudacity_use_lame=system \
|
|
-Daudacity_use_sndfile=system \
|
|
-Daudacity_use_soxr=system \
|
|
-Daudacity_use_portaudio=local \
|
|
-Daudacity_use_sqlite=local \
|
|
-Daudacity_use_ffmpeg=loaded \
|
|
-Daudacity_use_id3tag=system \
|
|
-Daudacity_use_mad=system \
|
|
-Daudacity_use_nyquist=local \
|
|
-Daudacity_use_vamp=local \
|
|
-Daudacity_use_ogg=system \
|
|
-Daudacity_use_vorbis=system \
|
|
-Daudacity_use_flac=system \
|
|
-Daudacity_use_lv2=system \
|
|
-Daudacity_use_midi=system \
|
|
-Daudacity_use_portmixer=local \
|
|
-Daudacity_use_portsmf=system \
|
|
-Daudacity_use_sbsms=local \
|
|
-Daudacity_use_soundtouch=system \
|
|
-Daudacity_use_twolame=system \
|
|
../audacity
|
|
|
|
exit_status=$?
|
|
|
|
if [ $exit_status -ne 0 ]; then
|
|
exit $exit_status
|
|
fi
|
|
|
|
make -j`nproc`
|
|
|
|
cd bin/Release
|
|
mkdir -p "Portable Settings"
|
|
|
|
ls -la .
|