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.

85 lines
3.7KB

  1. diff --git a/extras/Build/CMake/JUCEConfig.cmake.in b/extras/Build/CMake/JUCEConfig.cmake.in
  2. index 3e5c97d..f2af3a8 100644
  3. --- a/extras/Build/CMake/JUCEConfig.cmake.in
  4. +++ b/extras/Build/CMake/JUCEConfig.cmake.in
  5. @@ -20,10 +20,12 @@
  6. @PACKAGE_INIT@
  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 juceaide60)
  14. + add_executable(juceaide60 IMPORTED)
  15. + set_target_properties(juceaide60 PROPERTIES
  16. + IMPORTED_LOCATION "${PACKAGE_PREFIX_DIR}/bin/juceaide60")
  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 23b56c4..0d8fd93 100644
  21. --- a/extras/Build/CMake/JUCEUtils.cmake
  22. +++ b/extras/Build/CMake/JUCEUtils.cmake
  23. @@ -414,7 +414,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 juceaide60 auplugindefines "${defs_file}" "${secret_au_plugindefines}"
  29. DEPENDS "${defs_file}"
  30. VERBATIM)
  31. @@ -856,7 +856,7 @@ function(juce_add_binary_data target)
  32. list(APPEND binary_file_names "${juce_binary_data_folder}/${JUCE_ARG_HEADER_NAME}")
  33. add_custom_command(OUTPUT ${binary_file_names}
  34. - COMMAND juce::juceaide binarydata "${JUCE_ARG_NAMESPACE}" "${JUCE_ARG_HEADER_NAME}"
  35. + COMMAND juceaide60 binarydata "${JUCE_ARG_NAMESPACE}" "${JUCE_ARG_HEADER_NAME}"
  36. ${juce_binary_data_folder} ${JUCE_ARG_SOURCES}
  37. WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
  38. DEPENDS ${JUCE_ARG_SOURCES}
  39. @@ -953,7 +953,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 juceaide60 header "${defs_file}" "${juce_header}" ${extra_args}
  44. DEPENDS "${defs_file}"
  45. VERBATIM)
  46. endfunction()
  47. @@ -961,11 +961,11 @@ endfunction()
  48. # ==================================================================================================
  49. function(_juce_execute_juceaide)
  50. - if(NOT TARGET juce::juceaide)
  51. + if(NOT TARGET juceaide60)
  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(juceaide_location juceaide60 IMPORTED_LOCATION)
  56. if(NOT EXISTS "${juceaide_location}")
  57. message(FATAL_ERROR "juceaide was imported, but it doesn't exist!")
  58. @@ -1095,7 +1095,7 @@ function(_juce_configure_bundle source_target dest_target)
  59. MACOSX_BUNDLE_INFO_PLIST "${this_output_plist}")
  60. add_custom_command(OUTPUT "${this_output_pkginfo}"
  61. - COMMAND juce::juceaide pkginfo "${juce_kind_string}" "${this_output_pkginfo}"
  62. + COMMAND juceaide60 pkginfo "${juce_kind_string}" "${this_output_pkginfo}"
  63. VERBATIM)
  64. set(output_folder "$<TARGET_BUNDLE_CONTENT_DIR:${dest_target}>")
  65. @@ -1187,7 +1187,7 @@ function(_juce_add_resources_rc source_target dest_target)
  66. set(resource_rc_file "${juce_library_code}/resources.rc")
  67. add_custom_command(OUTPUT "${resource_rc_file}"
  68. - COMMAND juce::juceaide rcfile "${input_info_file}" "${resource_rc_file}"
  69. + COMMAND juceaide60 rcfile "${input_info_file}" "${resource_rc_file}"
  70. ${dependency}
  71. VERBATIM)