Skip to content

Commit

Permalink
Add JUCE_DONT_AUTO_OPEN_MIDI_DEVICES_ON_MOBILE to stop JUCE's brutal …
Browse files Browse the repository at this point in the history
…behavior.

context: atsushieno/aap-juce#38
  • Loading branch information
atsushieno committed Mar 15, 2023
1 parent c672306 commit 76bde8b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions aap-juce-support.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58f9aff..894a3ea 100644
index 58f9aff..6217cdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ juce_add_plugin(Hera
Expand All @@ -11,7 +11,7 @@ index 58f9aff..894a3ea 100644
IS_SYNTH TRUE
NEEDS_MIDI_INPUT TRUE
NEEDS_MIDI_OUTPUT FALSE
@@ -147,3 +147,38 @@ target_link_libraries(Hera
@@ -147,3 +147,40 @@ target_link_libraries(Hera
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
target_compile_options(Hera PRIVATE "-Wall")
endif()
Expand Down Expand Up @@ -39,6 +39,8 @@ index 58f9aff..894a3ea 100644
+set(oboe_lib "oboe")
+set(CMAKE_CXX_FLAGS_RELEASE "-O3")
+
+add_compile_definitions([[JUCE_DONT_AUTO_OPEN_MIDI_DEVICES_ON_MOBILE=1]])
+
+target_link_libraries(Hera
+ PRIVATE
+ ${log}
Expand All @@ -50,3 +52,9 @@ index 58f9aff..894a3ea 100644
+
+endif (ANDROID)
+# <-- end JUCEAAP specific
diff --git a/Thirdparty/JUCE b/Thirdparty/JUCE
--- a/Thirdparty/JUCE
+++ b/Thirdparty/JUCE
@@ -1 +1 @@
-Subproject commit 7c797c8105c2d41872e6e8d08972624f0afd335d
+Subproject commit 7c797c8105c2d41872e6e8d08972624f0afd335d-dirty

0 comments on commit 76bde8b

Please sign in to comment.