Build SDL2 and hidapi as shared library

This commit is contained in:
Benau
2021-10-04 11:41:04 +08:00
parent db03304cf1
commit 4db68a3f10
2 changed files with 26 additions and 11 deletions

View File

@@ -272,11 +272,15 @@ public class SuperTuxKartActivity extends SDLActivity
hideKeyboardNative(false/*clear_text*/);
}
// ------------------------------------------------------------------------
/* STK statically link SDL2. */
/* SDL manually dlopen main to allow unload after main thread exit. */
protected String[] getLibraries()
{
return new String[]{ "main" };
return new String[]{ "hidapi", "SDL2" };
}
// ------------------------------------------------------------------------
protected String getMainSharedObject()
{
return getContext().getApplicationInfo().nativeLibraryDir + "/libmain.so";
}
// ------------------------------------------------------------------------
public void showKeyboard(final int type, final int y)