GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames
MIT License
1.67k stars 1.56k forks source link

Android Studio update #380

Closed elementc closed 7 years ago

elementc commented 7 years ago

I know that we prefer smallish PRs, but I am cleaning up after a lot of changes that happened between #273 / #278 which kinda called for me to pull in stuff that wasn't ready for primetime while we waited for better NDK support in android studio. Well, better NDK support in android studio is out!

This PR brings support for the latest version of Android Studio, 2.3.3, including the new C++ debugger (!) and a much simplified build system called ExternalNativeBuild. It also cleans out some cruft from library dependencies that seemed to have been erroneously committed during the original push to add android support to T2D, in particular a bunch of debug symbols from the android build of openAL. We support android in x86, x86-64, and armeabi-v7a. arm64 is probably attainable if anyone wants to build the libs.

@yurembo pointed out in #278 that this only works for android studio on mac/linux due to some commands with different names on windows. I continue to lack a windows box to attempt to correct this on, so I hope that this PR is acceptable as it was last time, with the understanding that windows support may need to come in a future PR.

greenfire27 commented 7 years ago

Thanks! I'm sure all the android users will be grateful.

dottools commented 7 years ago

Looks good. When I have the chance I'll try it out on Windows. And if necessary I'll PR changes to make it work.