Skip to content

Commit

Permalink
Fix wrong suffix for ladspa and lv2 plugins in macOS
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Mar 8, 2024
1 parent 6a62ed9 commit c1c65e7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions cmake/DPF-plugin.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DISTRHO Plugin Framework (DPF)
# Copyright (C) 2021 Jean Pierre Cimalando <[email protected]>
# Copyright (C) 2022 Filipe Coelho <[email protected]>
# Copyright (C) 2022-2024 Filipe Coelho <[email protected]>
#
# SPDX-License-Identifier: ISC

Expand Down Expand Up @@ -661,12 +661,12 @@ function(dpf__add_dgl_cairo NO_SHARED_RESOURCES)
else()
target_sources(dgl-cairo PRIVATE "${DPF_ROOT_DIR}/dgl/src/Resources.cpp")
endif()
if(NOT APPLE)
if(APPLE)
target_sources(dgl-cairo PRIVATE
"${DPF_ROOT_DIR}/dgl/src/pugl.cpp")
"${DPF_ROOT_DIR}/dgl/src/pugl.mm")
else()
target_sources(dgl-cairo PRIVATE
"${DPF_ROOT_DIR}/dgl/src/pugl.mm")
"${DPF_ROOT_DIR}/dgl/src/pugl.cpp")
endif()
target_include_directories(dgl-cairo PUBLIC
"${DPF_ROOT_DIR}/dgl")
Expand Down Expand Up @@ -728,12 +728,12 @@ function(dpf__add_dgl_opengl NO_SHARED_RESOURCES)
else()
target_sources(dgl-opengl PRIVATE "${DPF_ROOT_DIR}/dgl/src/Resources.cpp")
endif()
if(NOT APPLE)
if(APPLE)
target_sources(dgl-opengl PRIVATE
"${DPF_ROOT_DIR}/dgl/src/pugl.cpp")
"${DPF_ROOT_DIR}/dgl/src/pugl.mm")
else()
target_sources(dgl-opengl PRIVATE
"${DPF_ROOT_DIR}/dgl/src/pugl.mm")
"${DPF_ROOT_DIR}/dgl/src/pugl.cpp")
endif()
target_include_directories(dgl-opengl PUBLIC
"${DPF_ROOT_DIR}/dgl")
Expand Down Expand Up @@ -855,7 +855,9 @@ endfunction()
function(dpf__add_module NAME)
add_library("${NAME}" MODULE ${ARGN})
dpf__set_target_defaults("${NAME}")
if(MINGW)
if(APPLE)
set_target_properties("${NAME}" PROPERTIES SUFFIX ".dylib")
elseif(MINGW)
target_link_libraries("${NAME}" PRIVATE "-static")
endif()
endfunction()
Expand Down

0 comments on commit c1c65e7

Please sign in to comment.