Skip to content

Commit

Permalink
Tweaks for fixing JUCE support
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Nov 7, 2024
1 parent c9412fd commit b942ded
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins-dep/package/juce-6.0/toolchainfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
set(CROSSCOMPILING TRUE)
set(CROSSCOMPILING_EMULATOR qemu-arm-static -L "${TARGET_DIR}")
endif()

set(JUCE_AUDIOPROCESSOR_NO_GUI TRUE)
set(JUCE_MOD_BUILD TRUE)
3 changes: 3 additions & 0 deletions plugins-dep/package/juce-6.1/toolchainfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
set(CROSSCOMPILING TRUE)
set(CROSSCOMPILING_EMULATOR qemu-arm-static -L "${TARGET_DIR}")
endif()

set(JUCE_AUDIOPROCESSOR_NO_GUI TRUE)
set(JUCE_MOD_BUILD TRUE)
13 changes: 13 additions & 0 deletions plugins-dep/package/juce-7.0/05_always-generate-lv2-helper.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4262a9852..4f2dcfa6b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -163,7 +163,7 @@ install(FILES "${JUCE_BINARY_DIR}/JUCEConfigVersion.cmake"
"${JUCE_CMAKE_UTILS_DIR}/juce_LinuxSubprocessHelper.cpp"
DESTINATION "${JUCE_INSTALL_DESTINATION}")

-if(("${CMAKE_SOURCE_DIR}" STREQUAL "${JUCE_SOURCE_DIR}") AND (NOT JUCE_BUILD_HELPER_TOOLS))
+if("${CMAKE_SOURCE_DIR}" STREQUAL "${JUCE_SOURCE_DIR}")
_juce_add_lv2_manifest_helper_target()

if(TARGET juce_lv2_helper)
2 changes: 2 additions & 0 deletions plugins-dep/package/juce-7.0/juce-7.0.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ define HOST_JUCE_7_0_POST_INSTALL_JUCEAIDE
endef

define JUCE_7_0_INSTALL_STAGING_CMDS
$(INSTALL) -d $(STAGING_DIR)/usr/bin/$(JUCE_7_0_VERSION_PROJECT)
$(INSTALL) -d $(STAGING_DIR)/usr/include
$(INSTALL) -d $(STAGING_DIR)/usr/lib/cmake
cp $(HOST_DIR)/usr/bin/juceaide70 $(STAGING_DIR)/usr/bin/
cp $(HOST_DIR)/usr/bin/$(JUCE_7_0_VERSION_PROJECT)/juce_lv2_helper $(STAGING_DIR)/usr/bin/$(JUCE_7_0_VERSION_PROJECT)/
cp -r $(HOST_DIR)/usr/include/$(JUCE_7_0_VERSION_PROJECT) $(STAGING_DIR)/usr/include/
cp -r $(HOST_DIR)/usr/lib/cmake/$(JUCE_7_0_VERSION_PROJECT) $(STAGING_DIR)/usr/lib/cmake/
ln -sf JUCEConfig.cmake $(STAGING_DIR)/usr/lib/cmake/$(JUCE_7_0_VERSION_PROJECT)/$(JUCE_7_0_VERSION_PROJECT)Config.cmake
Expand Down
3 changes: 3 additions & 0 deletions plugins-dep/package/juce-7.0/toolchainfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
set(CROSSCOMPILING TRUE)
set(CROSSCOMPILING_EMULATOR qemu-arm-static -L "${TARGET_DIR}")
endif()

set(JUCE_AUDIOPROCESSOR_NO_GUI TRUE)
set(JUCE_MOD_BUILD TRUE)

0 comments on commit b942ded

Please sign in to comment.