Skip to content

Commit

Permalink
Turn on windows clap wrapper standalone (#1357)
Browse files Browse the repository at this point in the history
* Turn on windows clap wrapper standalone

Probably don't merge this until I at least test it though (or
rovingeye does). This is just to see if it even builds CI

* Try new RovingEye fix
  • Loading branch information
baconpaul authored Sep 21, 2024
1 parent f8934a7 commit 7cf285e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ option(SCXT_USE_FLAC "Include FLAC support" ON)
option(SCXT_USE_MP3 "Include MP3 support" ON)

option(SCXT_SANITIZE "Build with clang/gcc address and undef sanitizer" OFF)
option(SCXT_USE_CLAP_WRAPPER_STANDALONE "Build with the clap wrapper standalone rather than our temp one" OFF)

if (WIN32)
option(SCXT_USE_CLAP_WRAPPER_STANDALONE "Build with the clap wrapper standalone rather than our temp one" ON)
else()
option(SCXT_USE_CLAP_WRAPPER_STANDALONE "Build with the clap wrapper standalone rather than our temp one" OFF)
endif()

# Calculate bitness
math(EXPR BITS "8*${CMAKE_SIZEOF_VOID_P}")
Expand Down
4 changes: 2 additions & 2 deletions clients/clap-first/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ endif()
set(SA_TARGET ${PROJECT_NAME}_Standalone)

if (${SCXT_USE_CLAP_WRAPPER_STANDALONE})
message(STATUS "Standalone is CLap Wrapper")
message(STATUS "Standalone is provided by clap-wrapper")
add_executable(${SA_TARGET} scxt-clap-entry.cpp)
target_link_libraries(${SA_TARGET} PRIVATE ${IMPL_TARGET})
target_add_standalone_wrapper(TARGET ${SA_TARGET}
OUTPUT_NAME ${name}
STATICALLY_LINKED_CLAP_ENTRY True
PLUGIN_ID "org.surge-synth-team.shortcircuit-xt")
else()
message(STATUS "Standalone is BaconPaul's Bodged Juce Thing")
message(STATUS "Standalone is provided by BaconPaul's Bodged Juce Thing")
add_executable(${SA_TARGET} MACOSX_BUNDLE WIN32)
set_target_properties(${SA_TARGET} PROPERTIES
OUTPUT_NAME ${name})
Expand Down

0 comments on commit 7cf285e

Please sign in to comment.