DCurrent / openbor

OpenBOR is the ultimate 2D side scrolling engine for beat em' ups, shooters, and more!
http://www.chronocrash.com
BSD 3-Clause "New" or "Revised" License
927 stars 124 forks source link

Add Gradle build support for Android #135

Closed haxpor closed 5 years ago

haxpor commented 5 years ago

Pull Request

General Description

Added gradle build support as ant is not a recommended way going forward to build for Android related stuff. As well, usually ant build cannot be done as build.xml is removed from NDK newer version, this means ant build system might have to relied on older version of NDK.

Refactored and slightly improve Android support as seen in platform activity file + provided with code comment for what happens, see SDLActivity.java.

README file for detail on the subject, how to, and others are included.

At last, common source/header and pre-built library files are sym-link from existing android/ directory which is based on ant build system to not pollute code base and make it easier to maintain going forward.

DCurrent commented 5 years ago

This looks good @haxpor, but I saw in the forum there were issues compiling on Windows. I'd like to get @msmalik681 and @Plombo to weigh in on this before I approve since they know more about the Android port. Guys, mind having a look?

msmalik681 commented 5 years ago

I will report back soon.

Plombo commented 5 years ago

I haven't looked through it yet, but I just wanted to say thanks for doing this. I ended up doing basically this about a month ago, but my own work was sloppy enough that I wasn't comfortable pushing it.