Browse Source

Fix LV2 cmake build for macOS

Signed-off-by: falkTX <falktx@falktx.com>
v6.0.8-distrho
falkTX 1 year ago
parent
commit
24b7e3b2b2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      extras/Build/CMake/JUCEUtils.cmake

+ 9
- 4
extras/Build/CMake/JUCEUtils.cmake View File

@@ -1067,9 +1067,16 @@ function(_juce_add_xcode_entitlements source_target dest_target)
endfunction()

function(_juce_configure_bundle source_target dest_target)
_juce_generate_icon(${source_target} ${dest_target})
_juce_write_configure_time_info(${source_target})

get_target_property(juce_kind_string ${dest_target} JUCE_TARGET_KIND_STRING)

if(juce_kind_string STREQUAL "LV2")
return()
endif()

_juce_generate_icon(${source_target} ${dest_target})

if(NOT APPLE)
return()
endif()
@@ -1088,8 +1095,6 @@ function(_juce_configure_bundle source_target dest_target)
set(this_output_pkginfo "${this_output_info_dir}/PkgInfo")
set(this_output_plist "${this_output_info_dir}/Info.plist")

get_target_property(juce_kind_string ${dest_target} JUCE_TARGET_KIND_STRING)

_juce_execute_juceaide(plist "${juce_kind_string}" "${input_info_file}" "${this_output_plist}")
set_target_properties(${dest_target} PROPERTIES
BUNDLE TRUE
@@ -1360,7 +1365,7 @@ function(_juce_set_plugin_target_properties shared_code_target kind)
set_target_properties(${target_name} PROPERTIES
BUNDLE_EXTENSION lv2
PREFIX ""
BUNDLE TRUE
BUNDLE FALSE
LIBRARY_OUTPUT_DIRECTORY "${output_path}"
XCODE_ATTRIBUTE_WRAPPER_EXTENSION lv2
XCODE_ATTRIBUTE_LIBRARY_STYLE Bundle


Loading…
Cancel
Save