External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
4.8KB

  1. diff --git a/extras/Build/CMake/JUCEConfig.cmake.in b/extras/Build/CMake/JUCEConfig.cmake.in
  2. index 6a96e24e5..17b0911f4 100644
  3. --- a/extras/Build/CMake/JUCEConfig.cmake.in
  4. +++ b/extras/Build/CMake/JUCEConfig.cmake.in
  5. @@ -22,10 +22,12 @@
  6. include("${CMAKE_CURRENT_LIST_DIR}/LV2_HELPER.cmake")
  7. -if(NOT TARGET juce::juceaide)
  8. - add_executable(juce::juceaide IMPORTED)
  9. - set_target_properties(juce::juceaide PROPERTIES
  10. - IMPORTED_LOCATION "@PACKAGE_JUCEAIDE_PATH@")
  11. +set(PACKAGE_PREFIX_DIR "@CMAKE_INSTALL_PREFIX@")
  12. +
  13. +if(NOT TARGET juceaide7)
  14. + add_executable(juceaide7 IMPORTED)
  15. + set_target_properties(juceaide7 PROPERTIES
  16. + IMPORTED_LOCATION "${PACKAGE_PREFIX_DIR}/bin/juceaide7")
  17. endif()
  18. check_required_components("@PROJECT_NAME@")
  19. diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake
  20. index 58e65087c..33f90f750 100644
  21. --- a/extras/Build/CMake/JUCEUtils.cmake
  22. +++ b/extras/Build/CMake/JUCEUtils.cmake
  23. @@ -192,7 +192,7 @@ function(_juce_add_au_resource_fork shared_code_target au_target)
  24. # In the end, it's simplest to generate a special single-purpose appconfig just for the
  25. # resource compiler.
  26. add_custom_command(OUTPUT "${secret_au_plugindefines}"
  27. - COMMAND juce::juceaide auplugindefines "${defs_file}" "${secret_au_plugindefines}"
  28. + COMMAND juceaide7 auplugindefines "${defs_file}" "${secret_au_plugindefines}"
  29. DEPENDS "${defs_file}"
  30. VERBATIM)
  31. @@ -414,7 +414,7 @@ function(juce_add_binary_data target)
  32. file(WRITE "${input_file_list}" "${newline_delimited_input}")
  33. add_custom_command(OUTPUT ${binary_file_names}
  34. - COMMAND juce::juceaide binarydata "${JUCE_ARG_NAMESPACE}" "${JUCE_ARG_HEADER_NAME}"
  35. + COMMAND juceaide7 binarydata "${JUCE_ARG_NAMESPACE}" "${JUCE_ARG_HEADER_NAME}"
  36. ${juce_binary_data_folder} "${input_file_list}"
  37. WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
  38. DEPENDS "${input_file_list}"
  39. @@ -498,7 +498,7 @@ function(juce_generate_juce_header target)
  40. set(extra_args)
  41. add_custom_command(OUTPUT "${juce_header}"
  42. - COMMAND juce::juceaide header "${defs_file}" "${juce_header}" ${extra_args}
  43. + COMMAND juceaide7 header "${defs_file}" "${juce_header}" ${extra_args}
  44. DEPENDS "${defs_file}"
  45. VERBATIM)
  46. endfunction()
  47. @@ -506,23 +506,23 @@ endfunction()
  48. # ==================================================================================================
  49. function(_juce_execute_juceaide)
  50. - if(NOT TARGET juce::juceaide)
  51. + if(NOT TARGET juceaide7)
  52. message(FATAL_ERROR "The juceaide target does not exist")
  53. endif()
  54. - get_target_property(juceaide_location juce::juceaide IMPORTED_LOCATION)
  55. + get_target_property(juceaide7_location juceaide7 IMPORTED_LOCATION)
  56. - if(NOT EXISTS "${juceaide_location}")
  57. - message(FATAL_ERROR "juceaide was imported, but it doesn't exist!")
  58. + if(NOT EXISTS "${juceaide7_location}")
  59. + message(FATAL_ERROR "juceaide7 was imported, but it doesn't exist!")
  60. endif()
  61. - execute_process(COMMAND "${juceaide_location}" ${ARGN}
  62. + execute_process(COMMAND "${juceaide7_location}" ${ARGN}
  63. RESULT_VARIABLE result_variable
  64. OUTPUT_VARIABLE output
  65. ERROR_VARIABLE output)
  66. if(result_variable)
  67. - message(FATAL_ERROR "Running juceaide failed:\n${output}")
  68. + message(FATAL_ERROR "Running juceaide7 failed:\n${output}")
  69. endif()
  70. endfunction()
  71. @@ -659,7 +659,7 @@ function(_juce_configure_bundle source_target dest_target)
  72. MACOSX_BUNDLE_INFO_PLIST "${this_output_plist}")
  73. add_custom_command(OUTPUT "${this_output_pkginfo}"
  74. - COMMAND juce::juceaide pkginfo "${juce_kind_string}" "${this_output_pkginfo}"
  75. + COMMAND juceaide7 pkginfo "${juce_kind_string}" "${this_output_pkginfo}"
  76. VERBATIM)
  77. set(output_folder "$<TARGET_BUNDLE_CONTENT_DIR:${dest_target}>")
  78. @@ -751,7 +751,7 @@ function(_juce_add_resources_rc source_target dest_target)
  79. set(resource_rc_file "${juce_library_code}/resources.rc")
  80. add_custom_command(OUTPUT "${resource_rc_file}"
  81. - COMMAND juce::juceaide rcfile "${input_info_file}" "${resource_rc_file}"
  82. + COMMAND juceaide7 rcfile "${input_info_file}" "${resource_rc_file}"
  83. ${dependency}
  84. VERBATIM)
  85. @@ -1024,7 +1024,7 @@ function(_juce_set_plugin_target_properties shared_code_target kind)
  86. set_target_properties(${target_name} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${output_path}")
  87. add_custom_command(TARGET ${target_name} POST_BUILD
  88. - COMMAND juce::juce_lv2_helper "$<TARGET_FILE:${target_name}>"
  89. + COMMAND juce7_lv2_helper "$<TARGET_FILE:${target_name}>"
  90. VERBATIM)
  91. _juce_set_copy_properties(${shared_code_target} ${target_name} "${output_path}" JUCE_LV2_COPY_DIR)