16 Commits

Author SHA1 Message Date
MeFisto94
90d3b69bd1 Build Android Natives (OpenAL, Vorbis, TextureLoading) on Travis (#1171)
* First attempt at building android-natives.

*  Use OpenJDK because native build is broken without

* Try OpenJDK 10

* Try openJDK 9

* Try openJDK11 again but "enable" the EE Module

* OpenJDK 11 has no Java EE Module anymore.

* Try to fix Android Header Generation

* Fix invalid flag error with javac by removing empty quotes

* Try to fix build of decode.

* Remove jni generated headers from the repository.

* Adjust .gitignore as those header files won't appear at that location anymore

* Fix Android Build: Fill the jme3-android-native headers during the build of jme3-android. This works because jme3-android-native already depends on jme3-android.

Due to technical reasons, the headers share the same location and thus the include directives have been adjusted slightly.

* Copy jni headers to the jni directory.

* Adjust the path slightly

* Try to silence android sdk's license print out

* Also fix openAL

* Solve task name conflict

* Really silence license now

* Tasks seem shared but Strings are not...

* Only build Android-Native

* Trying to reduce the amount of dependencies needed.

* Remove even more dependencies

* Even more removal

* Prepare Deployment

* Fix Deployment

* Cleanup: Remove feature branch from branches for travis.

* Revert a few unnecessary things

* Removed NDK Comments.
2019-09-14 11:26:18 -07:00
shadowislord
4e04f4629a Native tremor decoder is now built in release mode 2014-11-16 12:59:49 -05:00
shadowislord
91715c4a48 Add support for URA, or Unified Renderer Architecture for audio
* Unified all renderers into common class 'ALAudioRenderer'
 * LWJGL and Android now implement the AL / ALC / EFX interfaces to provide a common OpenAL backend for jME
 * Added support for OpenAL Soft "Pause Device" extension, which allows the engine to pause the context while running in the background (currently requires OpenAL soft 1.16 and thus is Android only feature)
2014-11-15 15:15:50 -05:00
shadowislord
d7a152e9a8 TremorAndroid: properly set the 'LIMIT_TO_64kHz' define 2014-11-12 21:56:28 -05:00
shadowislord
ba91da8db4 Tremor decoder now working on Android
* fixed issue where FileDesc_read() would cause a stack overflow
 * fixed incorrect NativeVorbisFile field values
 * properly indicate that streaming is not supported yet
2014-11-12 21:47:36 -05:00
shadowislord
2556f67a15 Implemented the rest of the missing functions in NativeVorbisFile 2014-11-11 23:24:29 -05:00
shadowislord
891ffa175d More work on vorbis decoder
* added support for decoding from a section of a file descriptor (needed if decoding from an asset inside APK)
 * implemented seek function
2014-11-11 19:11:52 -05:00
shadowislord
5f0c2035c1 android native improvements
* rename jme_stbi -> jme_decode, which is a new native library that will handle image and audio decoding in native code
 * add a special version of tremor designed to run on android
 * adjust the build process to handle these changes
2014-11-10 21:52:04 -05:00
shadowislord
a015e0836f Remove commented out code since it will not be used anymore 2014-11-08 17:23:44 -05:00
shadowislord
7057e9cb18 Android native image loader rewritten from scratch
* Now supports reading directly from Java InputStream instead of having to read image file into memory first
 * Optimized native code - reduced unneccessary memory copies
2014-11-08 17:18:37 -05:00
shadowislord
883ff7da71 Apply same fixes from OpenAL Soft to STB image loader.
Also make sure it works with the latest version from the website (which is downloaded automatically).
2014-11-04 22:19:18 -05:00
shadowislord
756497fb92 Specify TARGET_PLATFORM properly (:= instead of =) 2014-11-04 22:18:19 -05:00
shadowislord
393009ec2d Fix OpenAL Soft for Android
* Upgrade to latest OpenAL Soft (1.16)
 * Don't specify TARGET_PLATFORM on command line as that causes weird issues
 * Specify target platform via APP_PLATFORM in Application.mk and TARGET_PLATFORM in Android.mk
2014-11-04 22:09:01 -05:00
iwgeric
ee8e42f921 add native android lib for loading png and gif files. Does not premultiply. Uses stb_image (http://www.nothings.org/stb_image.c) 2014-03-24 00:47:08 -04:00
iwgeric
f5c841aac5 reorganize build of Android OpenAL Soft lib 2014-03-24 00:11:38 -04:00
Normen Hansen
a16857c8f4 switch to gradle layout 2014-03-21 02:32:11 +01:00