Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/builds/build-osx.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
export LC_ALL=C.UTF-8 | export LC_ALL=C.UTF-8 | ||||
set -euxo pipefail | set -euxo pipefail | ||||
# shellcheck source=../ci-fixture.sh | # shellcheck source=../ci-fixture.sh | ||||
source "${TOPLEVEL}/contrib/teamcity/ci-fixture.sh" | source "${TOPLEVEL}/contrib/teamcity/ci-fixture.sh" | ||||
export PYTHONPATH="${TOPLEVEL}/depends/x86_64-apple-darwin16/native/lib/python3/dist-packages:${PYTHONPATH:-}" | export PYTHONPATH="${TOPLEVEL}/depends/x86_64-apple-darwin16/native/lib/python3/dist-packages:${PYTHONPATH:-}" | ||||
build_static_dependencies | build_static_dependencies osx | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/OSX.cmake" | "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/OSX.cmake" | ||||
) | ) | ||||
build_with_cmake | build_with_cmake | ||||
# Build all the targets that are not built as part of the default target | # Build all the targets that are not built as part of the default target | ||||
ninja test_bitcoin test_bitcoin-qt test-seeder | ninja test_bitcoin test_bitcoin-qt test-seeder | ||||
ninja osx-dmg | ninja osx-dmg |