-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong suffix for ladspa and lv2 plugins in macOS
Signed-off-by: falkTX <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
@@ -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") | ||
|
@@ -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") | ||
|
@@ -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() | ||
|