Android: Removed all unnecessary dependencies on C++.

C++ is a bit of a minefield on Android. Much functionality still doesn't work, and Android can't decide on which C++ standard library to use, so it provides 3 different ones, all of which are incompatible with each other. (It looks like clang is coming too which will add a new compiler and a 4th standard library.)

As middleware, SDL might be distributed as a binary and intermixed with other projects already using C++. If C++ is intermixed in a bad way, bad things will happen. Removing dependencies on C++ will avoid this problem and downstream users won't have to worry/care.

--HG--
rename : src/core/android/SDL_android.cpp => src/core/android/SDL_android.c
rename : src/main/android/SDL_android_main.cpp => src/main/android/SDL_android_main.c
This commit is contained in:
Eric Wing 2013-07-22 02:51:45 -07:00
parent e3b9fb7542
commit a99edf3519
5 changed files with 343 additions and 285 deletions

View file

@ -28,10 +28,10 @@ android-project/src/org/libsdl/app/SDLActivity.java
The Java code loads your game code, the SDL shared library, and
dispatches to native functions implemented in the SDL library:
src/SDL_android.cpp
src/SDL_android.c
Your project must include some glue code that starts your main() routine:
src/main/android/SDL_android_main.cpp
src/main/android/SDL_android_main.c
================================================================================