-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more JUCE GUI support implementation code.
Now it can render JUCE GUI on the remote SurfaceView. Inputs still does not work though.
- Loading branch information
1 parent
3f351d1
commit 07d6a30
Showing
3 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/modules/juce_core/native/juce_Threads_android.cpp b/modules/juce_core/native/juce_Threads_android.cpp | ||
index efbf3a9f6..099e67fb5 100644 | ||
--- a/modules/juce_core/native/juce_Threads_android.cpp | ||
+++ b/modules/juce_core/native/juce_Threads_android.cpp | ||
@@ -269,7 +269,7 @@ private: | ||
|
||
//============================================================================== | ||
#if JUCE_MODULE_AVAILABLE_juce_events && JUCE_ANDROID | ||
-void juce_juceEventsAndroidStartApp(); | ||
+extern "C" void juce_juceEventsAndroidStartApp(); | ||
#endif | ||
|
||
void Thread::initialiseJUCE (void* jniEnv, void* context) | ||
@@ -303,7 +303,7 @@ void Thread::initialiseJUCE (void* jniEnv, void* context) | ||
JuceActivityWatcher::getInstance(); | ||
|
||
#if JUCE_MODULE_AVAILABLE_juce_events && JUCE_ANDROID | ||
- juce_juceEventsAndroidStartApp(); | ||
+ //juce_juceEventsAndroidStartApp(); | ||
#endif | ||
} | ||
} | ||
diff --git a/modules/juce_events/native/juce_Messaging_android.cpp b/modules/juce_events/native/juce_Messaging_android.cpp | ||
index 8062840f2..84f1c7679 100644 | ||
--- a/modules/juce_events/native/juce_Messaging_android.cpp | ||
+++ b/modules/juce_events/native/juce_Messaging_android.cpp | ||
@@ -288,8 +288,8 @@ private: | ||
//============================================================================== | ||
File juce_getExecutableFile(); | ||
|
||
-void juce_juceEventsAndroidStartApp(); | ||
-void juce_juceEventsAndroidStartApp() | ||
+extern "C" void juce_juceEventsAndroidStartApp(); | ||
+extern "C" void juce_juceEventsAndroidStartApp() | ||
{ | ||
auto dllPath = juce_getExecutableFile().getFullPathName(); | ||
auto addr = reinterpret_cast<juce::JUCEApplicationBase*(*)()> (DynamicLibrary (dllPath) |