Skip to content

Commit

Permalink
Making sure Projucer workflow works with Xcode 15.0 (#137)
Browse files Browse the repository at this point in the history
* Making sure Projucer workflow works with Xcode 15.0

* CI fiddling

* More xcode/cmake twiddling

* Force CMake OSX deploymnet target for Xcode 15

* Bring back the rest of CI
  • Loading branch information
jatinchowdhury18 authored Oct 30, 2023
1 parent 5f369ad commit dd263ec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-projucer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
- os: macos-latest
jucer: build/_deps/juce-src/extras/Projucer/Builds/MacOSX/build/Debug/Projucer.app/Contents/MacOS/Projucer
clap_gen: "Xcode"
xcode_version: latest-stable
juce_version: "7.0.6"
cxx_standard: 17
- os: macos-13
jucer: build/_deps/juce-src/extras/Projucer/Builds/MacOSX/build/Debug/Projucer.app/Contents/MacOS/Projucer
clap_gen: "Xcode"
xcode_version: "15.0"
juce_version: "7.0.6"
cxx_standard: 17
- os: windows-2022
Expand All @@ -51,7 +58,7 @@ jobs:
if: runner.os == 'MacOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
xcode-version: ${{ matrix.xcode_version }}

- name: Checkout code
uses: actions/checkout@v2
Expand Down
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ endif()
message( STATUS "Building CLAP with CLAP_CXX_STANDARD=${CLAP_CXX_STANDARD}")
set(CMAKE_CXX_EXTENSIONS OFF)

if(CMAKE_GENERATOR STREQUAL Xcode)
# Funky work around for Xcode 15, see: https://forum.juce.com/t/vst-au-builds-fail-after-upgrading-to-xcode-15/57936/43
message(STATUS "Configuring CJE with Xcode version ${XCODE_VERSION}")
if((${XCODE_VERSION} STREQUAL "15.0") OR (${XCODE_VERSION} STREQUAL "15.0.1"))
message(STATUS "Enabling Xcode 15 linker workaround!")
add_link_options("-Wl,-ld_classic")
add_compile_definitions(JUCE_SILENCE_XCODE_15_LINKER_WARNING=1)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment target" FORCE)
endif()
endif()

option(CLAP_JUCE_EXTENSIONS_BUILD_EXAMPLES "Add targets for building and running clap-juce-extensions examples" ${is_toplevel})
if(CLAP_JUCE_EXTENSIONS_BUILD_EXAMPLES)
# The examples need JUCE to be imported before the CLAP helper targets
Expand Down

0 comments on commit dd263ec

Please sign in to comment.