Skip to content

Commit

Permalink
Merge fix Mac non-xcode and CI building
Browse files Browse the repository at this point in the history
  • Loading branch information
tsjost committed Oct 14, 2021
2 parents 5f5afac + 5630af2 commit 0f83c16
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 17 deletions.
40 changes: 27 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,33 @@ matrix:
# env: NAME="conan" NAME_SUFFIX="conan" USE_CONAN=1
# script:
# - scripts/docker/docker_travis.sh "conan_base.docker"
# - os: osx
# compiler: clang
# env: NAME="Apple macOS" NAME_SUFFIX="mac"
# osx_image: xcode11
# install:
# - brew update
# - /usr/bin/yes | pip2 uninstall numpy # see https://github.com/travis-ci/travis-ci/issues/6688
# - brew upgrade
# - brew install boost cmake bullet ffmpeg glm openal-soft qt5 sdl2 jack freetype
# - export PATH="/usr/local/opt/qt/bin:$PATH"
# script:
# - mkdir -p "$TRAVIS_BUILD_DIR/build"
# - ctest -VV -S "$TRAVIS_BUILD_DIR/cmake/ctest/script_ci.ctest"
- os: osx
compiler: clang
env: NAME="Apple macOS" NAME_SUFFIX="mac"
osx_image: xcode12.5
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_cache:
- brew cleanup
addons:
homebrew:
packages:
- boost
- cmake
- bullet
- ffmpeg
- glm
- openal-soft
- qt5
- sdl2
- jack
- freetype
install:
- export PATH="/usr/local/opt/qt/bin:$PATH"
script:
- mkdir -p "$TRAVIS_BUILD_DIR/build"
- ctest -VV -S "$TRAVIS_BUILD_DIR/cmake/ctest/script_ci.ctest"

notifications:
email: false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ this it will not be possible to play.

Windows | Linux | macOS | coverage
---| --- | --- | ---
[![Build status](https://ci.appveyor.com/api/projects/status/k33qf9ssrja6ckx8/branch/master?svg=true)](https://ci.appveyor.com/project/rwengine/openrw/branch/master) | [![Build Status](https://app.travis-ci.com/rwengine/openrw.svg?branch=master)](https://app.travis-ci.com/rwengine/openrw) | [disabled](https://github.com/rwengine/openrw/commit/f8483d190588a159f65c1c3ffb153e20888347b8) | [![codecov](https://codecov.io/gh/rwengine/openrw/branch/master/graph/badge.svg)](https://codecov.io/gh/rwengine/openrw)
[![Build status](https://ci.appveyor.com/api/projects/status/k33qf9ssrja6ckx8/branch/master?svg=true)](https://ci.appveyor.com/project/rwengine/openrw/branch/master) | [![Build Status](https://app.travis-ci.com/rwengine/openrw.svg?branch=master)](https://app.travis-ci.com/rwengine/openrw) | [![Build Status](https://app.travis-ci.com/rwengine/openrw.svg?branch=master)](https://app.travis-ci.com/rwengine/openrw) | [![codecov](https://codecov.io/gh/rwengine/openrw/branch/master/graph/badge.svg)](https://codecov.io/gh/rwengine/openrw)


## Links
Expand Down
4 changes: 2 additions & 2 deletions cmake/ctest/configure_darwin.ctest
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ else()
endif()
set(CONFIGURE_EXTRA_OPTIONS ";")
set(BUILD_EXTRA_FLAGS "")
set(BUILD_TOOLS TRUE)
set(BUILD_VIEWER TRUE)
set(BUILD_TOOLS FALSE)
set(BUILD_VIEWER FALSE)
set(CHECK_IWYU FALSE)
set(ENABLE_SANITIZERS "")

Expand Down
2 changes: 1 addition & 1 deletion cmake_configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function(openrw_target_apply_options)
endif()
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_GENERATOR STREQUAL Xcode)
set_property(
TARGET "${ORW_TARGET}"
APPEND
Expand Down

0 comments on commit 0f83c16

Please sign in to comment.